summaryrefslogtreecommitdiff
path: root/src/dlg-password.c
diff options
context:
space:
mode:
authorraveit <[email protected]>2012-11-05 17:14:51 +0100
committerraveit <[email protected]>2012-11-05 17:14:51 +0100
commite06e9b088a12dd098e11110f7d0d77ab8032e4eb (patch)
tree40a96b1b0e2ccd44771f5000e374e1920764ae59 /src/dlg-password.c
parent8f8784ba4ebcd8eb099c4e119a9a8d5a349efd61 (diff)
downloadengrampa-e06e9b088a12dd098e11110f7d0d77ab8032e4eb.tar.bz2
engrampa-e06e9b088a12dd098e11110f7d0d77ab8032e4eb.tar.xz
Port to gsettings
Diffstat (limited to 'src/dlg-password.c')
-rw-r--r--src/dlg-password.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/dlg-password.c b/src/dlg-password.c
index 738022d..cd2a3f8 100644
--- a/src/dlg-password.c
+++ b/src/dlg-password.c
@@ -24,7 +24,6 @@
#include <string.h>
#include <gtk/gtk.h>
#include "fr-window.h"
-#include "mateconf-utils.h"
#include "gtk-utils.h"
#include "preferences.h"
@@ -63,7 +62,13 @@ response_cb (GtkWidget *dialog,
g_free (password);
encrypt_header = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (data->pw_encrypt_header_checkbutton));
- eel_mateconf_set_boolean (PREF_ENCRYPT_HEADER, encrypt_header);
+ {
+ GSettings *settings;
+
+ settings = g_settings_new (ENGRAMPA_SCHEMA_GENERAL);
+ g_settings_set_boolean (settings, PREF_GENERAL_ENCRYPT_HEADER, encrypt_header);
+ g_object_unref (settings);
+ }
fr_window_set_encrypt_header (data->window, encrypt_header);
break;
default: