summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-03-12 11:43:38 +0300
committerStefano Karapetsas <[email protected]>2015-03-13 09:11:38 +0100
commit881561dba81ad07eed436397feb20e7b48994f1b (patch)
tree6caf013237b3bbd3e6450c6504381740dc798cb3
parenta0e9e89abda77fc913066fb34f37d8c9e576fde6 (diff)
downloadmate-utils-881561dba81ad07eed436397feb20e7b48994f1b.tar.bz2
mate-utils-881561dba81ad07eed436397feb20e7b48994f1b.tar.xz
baobab, gsearchtool: first connect to settings, then read them.
fixes the issue with GLib >= 2.43, https://git.gnome.org/browse/glib/commit/?id=8ff5668a458344da22d30491e3ce726d861b3619 Closes https://github.com/mate-desktop/mate-utils/pull/94
-rw-r--r--baobab/src/baobab.c16
-rw-r--r--gsearchtool/gsearchtool.c10
2 files changed, 13 insertions, 13 deletions
diff --git a/baobab/src/baobab.c b/baobab/src/baobab.c
index 253355ce..61037a5d 100644
--- a/baobab/src/baobab.c
+++ b/baobab/src/baobab.c
@@ -815,17 +815,17 @@ baobab_setup_excluded_locations (void)
{
gchar **uris;
+ g_signal_connect (baobab.prefs_settings,
+ "changed::" BAOBAB_SETTINGS_EXCLUDED_URIS,
+ G_CALLBACK (excluded_uris_changed),
+ NULL);
+
uris = g_settings_get_strv (baobab.prefs_settings,
BAOBAB_SETTINGS_EXCLUDED_URIS);
baobab_set_excluded_locations (uris);
g_strfreev (uris);
sanity_check_excluded_locations ();
-
- g_signal_connect (baobab.prefs_settings,
- "changed::" BAOBAB_SETTINGS_EXCLUDED_URIS,
- G_CALLBACK (excluded_uris_changed),
- NULL);
}
static void
@@ -847,14 +847,14 @@ baobab_setup_monitors (void)
monitor_volume ();
- enable = g_settings_get_boolean (baobab.prefs_settings,
- BAOBAB_SETTINGS_MONITOR_HOME);
-
g_signal_connect (baobab.prefs_settings,
"changed::" BAOBAB_SETTINGS_MONITOR_HOME,
G_CALLBACK (baobab_settings_monitor_home_changed),
NULL);
+ enable = g_settings_get_boolean (baobab.prefs_settings,
+ BAOBAB_SETTINGS_MONITOR_HOME);
+
monitor_home (enable);
}
diff --git a/gsearchtool/gsearchtool.c b/gsearchtool/gsearchtool.c
index 64e753d2..e6760359 100644
--- a/gsearchtool/gsearchtool.c
+++ b/gsearchtool/gsearchtool.c
@@ -2988,17 +2988,17 @@ gsearchtool_setup_gsettings_notifications (GSearchWindow * gsearch)
return;
}
+ g_signal_connect (gsearch->caja_settings,
+ "changed::click-policy",
+ G_CALLBACK (single_click_to_activate_key_changed_cb),
+ gsearch);
+
/* Get value of caja click behavior (single or double click to activate items) */
click_to_activate_pref = g_settings_get_string (gsearch->caja_settings, "click-policy");
gsearch->is_search_results_single_click_to_activate =
(strncmp (click_to_activate_pref, "single", 6) == 0) ? TRUE : FALSE;
- g_signal_connect (gsearch->caja_settings,
- "changed::click-policy",
- G_CALLBACK (single_click_to_activate_key_changed_cb),
- gsearch);
-
g_free (click_to_activate_pref);
}