From 3739586e986af2822255c18427e016dee538268f Mon Sep 17 00:00:00 2001 From: Monsta Date: Mon, 2 Mar 2015 16:57:42 +0300 Subject: mate-thumbnail: 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-desktop/pull/162 --- libmate-desktop/mate-desktop-thumbnail.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libmate-desktop/mate-desktop-thumbnail.c b/libmate-desktop/mate-desktop-thumbnail.c index 734334b..37de54e 100644 --- a/libmate-desktop/mate-desktop-thumbnail.c +++ b/libmate-desktop/mate-desktop-thumbnail.c @@ -840,9 +840,7 @@ mate_desktop_thumbnail_factory_init (MateDesktopThumbnailFactory *factory) #endif priv->settings = g_settings_new ("org.mate.thumbnailers"); - priv->disabled = g_settings_get_boolean (priv->settings, "disable-all"); - if (!priv->disabled) - priv->disabled_types = g_settings_get_strv (priv->settings, "disable"); + g_signal_connect (priv->settings, "changed::disable-all", G_CALLBACK (external_thumbnailers_disabled_all_changed_cb), factory); @@ -850,6 +848,11 @@ mate_desktop_thumbnail_factory_init (MateDesktopThumbnailFactory *factory) G_CALLBACK (external_thumbnailers_disabled_changed_cb), factory); + priv->disabled = g_settings_get_boolean (priv->settings, "disable-all"); + + if (!priv->disabled) + priv->disabled_types = g_settings_get_strv (priv->settings, "disable"); + if (!priv->disabled) mate_desktop_thumbnail_factory_load_thumbnailers (factory); } -- cgit v1.2.1