summaryrefslogtreecommitdiff
path: root/src/gs-theme-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-theme-manager.c')
-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