summaryrefslogtreecommitdiff
path: root/mate-dictionary/src/gdict-source-dialog.c
diff options
context:
space:
mode:
authorBrent Hull <[email protected]>2013-01-25 02:39:32 -0500
committerBrent Hull <[email protected]>2013-01-25 02:39:32 -0500
commit1acc3477eeb71505d68b66ac7aa4a796f86fe69c (patch)
treec4c7950e24d8393980b41c6bd649c450e628a6f2 /mate-dictionary/src/gdict-source-dialog.c
parent3f783bbd74e1f94e97f91829480b32b05b6480c8 (diff)
downloadmate-utils-1acc3477eeb71505d68b66ac7aa4a796f86fe69c.tar.bz2
mate-utils-1acc3477eeb71505d68b66ac7aa4a796f86fe69c.tar.xz
Port mate-dictionary (and applet) to Gsettings (main program based on GNOME patch)
Diffstat (limited to 'mate-dictionary/src/gdict-source-dialog.c')
-rw-r--r--mate-dictionary/src/gdict-source-dialog.c13
1 files changed, 5 insertions, 8 deletions
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 <glib/gi18n.h>
-#include <mateconf/mateconf-client.h>
+#include <gio/gio.h>
#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;