diff options
author | monsta <[email protected]> | 2016-05-26 14:19:40 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-05-26 14:19:40 +0300 |
commit | 072da32f99166bcaf932c4401826825e8155d0d8 (patch) | |
tree | 238b590b2dfba94282a14580d1a146b00bce3a90 /src | |
parent | fd07010c4321d18ba3b183753e89dd70e2b756b9 (diff) | |
download | mate-terminal-072da32f99166bcaf932c4401826825e8155d0d8.tar.bz2 mate-terminal-072da32f99166bcaf932c4401826825e8155d0d8.tar.xz |
use dconf directly instead of wrapper functions from libmate-desktop
Diffstat (limited to 'src')
-rw-r--r-- | src/terminal-app.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/terminal-app.c b/src/terminal-app.c index e3e23d0..495405d 100644 --- a/src/terminal-app.c +++ b/src/terminal-app.c @@ -24,6 +24,7 @@ #include <errno.h> #include <glib.h> +#include <dconf.h> #include "terminal-intl.h" @@ -36,7 +37,6 @@ #include "terminal-util.h" #include "profile-editor.h" #include "terminal-encoding.h" -#include <libmate-desktop/mate-dconf.h> #include <libmate-desktop/mate-gsettings.h> #include <string.h> #include <stdlib.h> @@ -327,12 +327,14 @@ terminal_app_delete_profile (TerminalApp *app, mate_gsettings_remove_all_from_strv (app->settings_global, PROFILE_LIST_KEY, profile_name); /* And remove the profile directory */ - if (!mate_dconf_recursive_reset (profile_dir, &error)) + DConfClient *client = dconf_client_new (); + if (!dconf_client_write_sync (client, profile_dir, NULL, NULL, NULL, &error)) { g_warning ("Failed to recursively unset %s: %s\n", profile_dir, error->message); g_error_free (error); } + g_object_unref (client); g_free (profile_dir); } |