Manually deal with gtk+ theme changes now that the theme thumbnailing code
2007-06-09 Denis Washington <denisw@svn.gnome.org> * appearance-style.c: (theme_name_changed): Manually deal with gtk+ theme changes now that the theme thumbnailing code uses the default GtkSettings again. svn path=/trunk/; revision=7721
This commit is contained in:
parent
3b1d45c537
commit
c5a8051080
2 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-06-09 Denis Washington <denisw@svn.gnome.org>
|
||||
|
||||
* appearance-style.c: (theme_name_changed):
|
||||
Manually deal with gtk+ theme changes now that the theme thumbnailing
|
||||
code uses the default GtkSettings again.
|
||||
|
||||
2007-06-10 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* appearance-style.c: (style_init), (check_color_schemes_enabled):
|
||||
|
|
|
@ -457,8 +457,19 @@ theme_name_changed (GObject *settings,
|
|||
GParamSpec *pspec,
|
||||
AppearanceData *data)
|
||||
{
|
||||
gchar *current_theme, *new_theme;
|
||||
|
||||
/* manually update GtkSettings to new gtk+ theme. */
|
||||
g_object_get (settings, "gtk-theme-name", ¤t_theme, NULL);
|
||||
new_theme = gconf_client_get_string (data->client, gconf_keys[GTK_THEMES], NULL);
|
||||
|
||||
if (strcmp (current_theme, new_theme) != 0)
|
||||
g_object_set (settings, "gtk-theme-name", new_theme, NULL);
|
||||
|
||||
g_free (current_theme);
|
||||
g_free (new_theme);
|
||||
|
||||
check_color_schemes_enabled (GTK_SETTINGS (settings), data);
|
||||
/*gconf_client_set_string (data->client, gconf_keys[COLOR_SCHEME], "", NULL);*/
|
||||
update_color_buttons_from_settings (GTK_SETTINGS (settings), data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue