diff options
author | Brent Hull <[email protected]> | 2013-01-25 02:39:32 -0500 |
---|---|---|
committer | Brent Hull <[email protected]> | 2013-01-25 02:39:32 -0500 |
commit | 1acc3477eeb71505d68b66ac7aa4a796f86fe69c (patch) | |
tree | c4c7950e24d8393980b41c6bd649c450e628a6f2 /mate-dictionary/src/gdict-app.c | |
parent | 3f783bbd74e1f94e97f91829480b32b05b6480c8 (diff) | |
download | mate-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-app.c')
-rw-r--r-- | mate-dictionary/src/gdict-app.c | 18 |
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 (); |