diff options
author | Monsta <[email protected]> | 2015-03-02 16:57:42 +0300 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2015-03-13 15:52:12 +0100 |
commit | 3739586e986af2822255c18427e016dee538268f (patch) | |
tree | a779e0cf0a09b7ae5a597c5787902a31f7bb1ac6 | |
parent | ad86d9fe1f11ec596016c408d4735423ad858112 (diff) | |
download | mate-desktop-3739586e986af2822255c18427e016dee538268f.tar.bz2 mate-desktop-3739586e986af2822255c18427e016dee538268f.tar.xz |
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
-rw-r--r-- | libmate-desktop/mate-desktop-thumbnail.c | 9 |
1 files 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); } |