diff options
author | Marcel Dijkstra <[email protected]> | 2013-01-17 20:51:56 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-01-17 20:55:23 +0100 |
commit | 46c4c36e0aa6244b292e647061d90c3ab6312f90 (patch) | |
tree | 77778b8e5fbf75baf1603261797b08937d9b9955 /src/terminal-window.c | |
parent | 7d6b297873d9ccd0117d2d508d642d479295582b (diff) | |
download | mate-terminal-46c4c36e0aa6244b292e647061d90c3ab6312f90.tar.bz2 mate-terminal-46c4c36e0aa6244b292e647061d90c3ab6312f90.tar.xz |
Migrate to GSettings
Diffstat (limited to 'src/terminal-window.c')
-rw-r--r-- | src/terminal-window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c index cd10b59..b33e33c 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -3204,7 +3204,7 @@ confirm_close_window_or_tab (TerminalWindow *window, { TerminalWindowPrivate *priv = window->priv; GtkWidget *dialog; - MateConfClient *client; + GSettings *settings; gboolean do_confirm; int n_tabs; @@ -3215,9 +3215,9 @@ confirm_close_window_or_tab (TerminalWindow *window, GTK_RESPONSE_DELETE_EVENT); } - client = mateconf_client_get_default (); - do_confirm = mateconf_client_get_bool (client, CONF_GLOBAL_PREFIX "/confirm_window_close", NULL); - g_object_unref (client); + settings = g_settings_new (CONF_GLOBAL_SCHEMA); + do_confirm = g_settings_get_boolean (settings, "confirm-window-close"); + g_object_unref (settings); if (!do_confirm) return FALSE; |