summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmate-desktop/mate-desktop-thumbnail.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libmate-desktop/mate-desktop-thumbnail.c b/libmate-desktop/mate-desktop-thumbnail.c
index 4a4e5d6..02bcaf2 100644
--- a/libmate-desktop/mate-desktop-thumbnail.c
+++ b/libmate-desktop/mate-desktop-thumbnail.c
@@ -790,9 +790,7 @@ mate_desktop_thumbnail_factory_init (MateDesktopThumbnailFactory *factory)
g_mutex_init (&priv->lock);
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);
@@ -800,6 +798,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);
}