diff options
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; |