From 1acc3477eeb71505d68b66ac7aa4a796f86fe69c Mon Sep 17 00:00:00 2001 From: Brent Hull Date: Fri, 25 Jan 2013 02:39:32 -0500 Subject: Port mate-dictionary (and applet) to Gsettings (main program based on GNOME patch) --- mate-dictionary/src/gdict-source-dialog.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'mate-dictionary/src/gdict-source-dialog.c') diff --git a/mate-dictionary/src/gdict-source-dialog.c b/mate-dictionary/src/gdict-source-dialog.c index 0bebcb22..203da54f 100644 --- a/mate-dictionary/src/gdict-source-dialog.c +++ b/mate-dictionary/src/gdict-source-dialog.c @@ -34,7 +34,7 @@ #endif #include -#include +#include #include "gdict-source-dialog.h" #include "gdict-common.h" @@ -51,9 +51,8 @@ struct _GdictSourceDialog GtkBuilder *builder; - MateConfClient *mateconf_client; - guint notify_id; - + GSettings *settings; + GdictSourceLoader *loader; GdictSource *source; gchar *source_name; @@ -499,8 +498,8 @@ gdict_source_dialog_finalize (GObject *object) { GdictSourceDialog *dialog = GDICT_SOURCE_DIALOG (object); - if (dialog->mateconf_client) - g_object_unref (dialog->mateconf_client); + if (dialog->settings) + g_object_unref (dialog->settings); if (dialog->builder) g_object_unref (dialog->builder); @@ -718,8 +717,6 @@ gdict_source_dialog_init (GdictSourceDialog *dialog) { gtk_widget_set_size_request (GTK_WIDGET (dialog), 400, 300); gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); - - gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); dialog->transport = GDICT_SOURCE_TRANSPORT_INVALID; -- cgit v1.2.1