Commit cf0348e4 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

prefs: update theme when gtk-theme-name changes

parent e6cf7fd3
......@@ -838,6 +838,25 @@ init_gtk_decoration_layout (void)
gtk_decoration_layout_changed (settings, NULL, NULL);
}
static void
gtk_theme_name_changed (GtkSettings *settings,
GParamSpec *pspec,
gpointer user_data)
{
queue_changed (META_PREF_THEME_NAME);
}
static void
init_gtk_theme_name (void)
{
GtkSettings *settings;
settings = gtk_settings_get_default ();
g_signal_connect (settings, "notify::gtk-theme-name",
G_CALLBACK (gtk_theme_name_changed), NULL);
}
/****************************************************************************/
/* Initialisation. */
/****************************************************************************/
......@@ -884,6 +903,7 @@ meta_prefs_init (void)
init_workspace_names ();
init_gtk_decoration_layout ();
init_gtk_theme_name ();
}
/****************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment