summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-11-02 18:11:21 +0100
committerraveit65 <[email protected]>2021-11-15 14:10:09 +0100
commit2eb98cf8eb707ff23b6457d0eb45979b42ee52cd (patch)
tree045fc3fca63f91b5629b18590fd4da94873fa240
parentec813dffa59d30fa30ab3e4932095337b5813132 (diff)
downloadmate-screensaver-2eb98cf8eb707ff23b6457d0eb45979b42ee52cd.tar.bz2
mate-screensaver-2eb98cf8eb707ff23b6457d0eb45979b42ee52cd.tar.xz
gs-theme-manager: reload on menu_tree changed
-rw-r--r--src/gs-theme-manager.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gs-theme-manager.c b/src/gs-theme-manager.c
index 6033563..da622a9 100644
--- a/src/gs-theme-manager.c
+++ b/src/gs-theme-manager.c
@@ -393,11 +393,25 @@ get_themes_tree (void)
}
static void
+on_applications_changed (MateMenuTree *menu_tree)
+{
+ GError *error = NULL;
+
+ if (!matemenu_tree_load_sync (menu_tree, &error)) {
+ g_debug ("Load matemenu tree got error: %s\n", error->message);
+ g_error_free (error);
+ }
+}
+
+static void
gs_theme_manager_init (GSThemeManager *theme_manager)
{
theme_manager->priv = gs_theme_manager_get_instance_private (theme_manager);
theme_manager->priv->menu_tree = get_themes_tree ();
+ g_signal_connect (theme_manager->priv->menu_tree, "changed",
+ G_CALLBACK (on_applications_changed),
+ NULL);
}
static void