summaryrefslogtreecommitdiff
path: root/src/gdict-common.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2011-01-29 17:13:09 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2011-01-29 17:13:09 +0000
commitddb5e0ba3412e4fd1b643faa75fa86294d89730e (patch)
tree49ea6c4c7f26f8adaf5eba426c697ffc62d0b839 /src/gdict-common.c
parentc78b8475d95b9a98d44e55664956ffb30e082793 (diff)
downloadgnome-dictionary-ddb5e0ba3412e4fd1b643faa75fa86294d89730e.tar.gz
dictionary: Port to GSettings
Drop the GConf dependency for the main application, and use the new GSettings API from GIO. This requires some bumping around of dependencies, like GLib and GIO, to something relatively recent. The Dictionary window state is not stored in GSettings, but in a cache file in XDG_CACHE_DIR/XDG_USER_CACHE, since it's something that we don't need changes notification on, nor we particularly rely upon.
Diffstat (limited to 'src/gdict-common.c')
-rw-r--r--src/gdict-common.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gdict-common.c b/src/gdict-common.c
index 6410a43..4503126 100644
--- a/src/gdict-common.c
+++ b/src/gdict-common.c
@@ -187,15 +187,3 @@ gdict_show_gerror_dialog (GtkWindow *parent,
g_error_free (error);
error = NULL;
}
-
-gchar *
-gdict_gconf_get_string_with_default (GConfClient *client,
- const gchar *key,
- const gchar *def)
-{
- gchar *val;
-
- val = gconf_client_get_string (client, key, NULL);
- return val ? val : g_strdup (def);
-}
-