diff options
author | Diego Escalante Urrelo <descalante@igalia.com> | 2010-07-25 07:59:55 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2010-10-08 17:09:11 +0800 |
commit | 5df7af9e3041102a5f5601d60faa11c38b48de75 (patch) | |
tree | fe0306b87e0874a8541a082fe844f4a487331161 /lib/ephy-file-chooser.c | |
parent | 60d08f64c2466ce8eda20d832239ec6defc9ef06 (diff) | |
download | gsoc2013-epiphany-5df7af9e3041102a5f5601d60faa11c38b48de75.tar gsoc2013-epiphany-5df7af9e3041102a5f5601d60faa11c38b48de75.tar.gz gsoc2013-epiphany-5df7af9e3041102a5f5601d60faa11c38b48de75.tar.bz2 gsoc2013-epiphany-5df7af9e3041102a5f5601d60faa11c38b48de75.tar.lz gsoc2013-epiphany-5df7af9e3041102a5f5601d60faa11c38b48de75.tar.xz gsoc2013-epiphany-5df7af9e3041102a5f5601d60faa11c38b48de75.tar.zst gsoc2013-epiphany-5df7af9e3041102a5f5601d60faa11c38b48de75.zip |
gsettings: port epiphany to gsettings
Adds our own schemas, a migration file and removes old gconf API and files.
Bug #624485
Diffstat (limited to 'lib/ephy-file-chooser.c')
-rw-r--r-- | lib/ephy-file-chooser.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/ephy-file-chooser.c b/lib/ephy-file-chooser.c index 2fd9a7d3e..fe85eee4f 100644 --- a/lib/ephy-file-chooser.c +++ b/lib/ephy-file-chooser.c @@ -22,10 +22,10 @@ #include "ephy-file-chooser.h" #include "ephy-file-helpers.h" -#include "eel-gconf-extensions.h" #include "ephy-state.h" #include "ephy-gui.h" #include "ephy-debug.h" +#include "ephy-settings.h" #include "ephy-stock-icons.h" #include "ephy-string.h" @@ -64,7 +64,8 @@ current_folder_changed_cb (GtkFileChooser *chooser, EphyFileChooser *dialog) dir = gtk_file_chooser_get_current_folder (chooser); - eel_gconf_set_path (dialog->priv->persist_key, dir); + g_settings_set_string (EPHY_SETTINGS_STATE, + dialog->priv->persist_key, dir); g_free (dir); } @@ -86,7 +87,10 @@ file_chooser_response_cb (GtkWidget *widget, dir = g_path_get_dirname (filename); if (dir != NULL) - eel_gconf_set_path (dialog->priv->persist_key, dir); + g_settings_set_string + (EPHY_SETTINGS_STATE, + dialog->priv->persist_key, + dir); g_free (dir); g_free (filename); @@ -143,7 +147,7 @@ ephy_file_chooser_set_persist_key (EphyFileChooser *dialog, const char *key) dialog->priv->persist_key = g_strdup (key); - dir = eel_gconf_get_string (key); + dir = g_settings_get_string (EPHY_SETTINGS_STATE, key); if (dir != NULL) { /* FIXME: Maybe we will find a better way to do this when the |