summaryrefslogtreecommitdiff
path: root/mate-dictionary/src/gdict-app.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-01-25 13:41:13 -0800
committerStefano Karapetsas <[email protected]>2013-01-25 13:41:13 -0800
commitbbf4c3447a09a5e4be8307e3df3b3405781bead2 (patch)
treebc924a2c5961e629a55bd046765bc7c45e2b5ad0 /mate-dictionary/src/gdict-app.c
parent3f783bbd74e1f94e97f91829480b32b05b6480c8 (diff)
parentcc8a689bdeb46b3c9fe8247a72b05c8d97762474 (diff)
downloadmate-utils-bbf4c3447a09a5e4be8307e3df3b3405781bead2.tar.bz2
mate-utils-bbf4c3447a09a5e4be8307e3df3b3405781bead2.tar.xz
Merge pull request #18 from bhull2010/master
Port mate-dictionary to Gsettings
Diffstat (limited to 'mate-dictionary/src/gdict-app.c')
-rw-r--r--mate-dictionary/src/gdict-app.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/mate-dictionary/src/gdict-app.c b/mate-dictionary/src/gdict-app.c
index 646fda3f..20a1ae06 100644
--- a/mate-dictionary/src/gdict-app.c
+++ b/mate-dictionary/src/gdict-app.c
@@ -320,7 +320,7 @@ gdict_look_up_word_and_quit (GdictApp *app)
void
gdict_init (int *argc, char ***argv)
{
- GError *mateconf_error, *err = NULL;
+ GError *err = NULL;
GOptionContext *context;
gchar *loader_path;
gchar **lookup_words = NULL;
@@ -391,20 +391,8 @@ gdict_init (int *argc, char ***argv)
exit (1);
}
-
- mateconf_error = NULL;
- singleton->mateconf_client = mateconf_client_get_default ();
- mateconf_client_add_dir (singleton->mateconf_client,
- GDICT_MATECONF_DIR,
- MATECONF_CLIENT_PRELOAD_ONELEVEL,
- &mateconf_error);
- if (mateconf_error)
- {
- g_warning ("Unable to access MateConf: %s\n", mateconf_error->message);
-
- g_error_free (mateconf_error);
- g_object_unref (singleton->mateconf_client);
- }
+
+ singleton->settings = g_settings_new ("org.mate.dictionary");
/* add user's path for fetching dictionary sources */
singleton->loader = gdict_source_loader_new ();