Commit 3b3307b9 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Carlos Garnacho

Use gtk_style_context_reset_widgets() instead of gtk_rc_reset_styles()

parent a8c8c23c
......@@ -796,7 +796,7 @@ icon_size_settings_changed (GtkSettings *settings,
{
icon_size_set_all_from_settings (settings);
gtk_rc_reset_styles (settings);
gtk_style_context_reset_widgets (_gtk_settings_get_screen (settings));
}
static void
......
......@@ -606,10 +606,7 @@ reset_styles_idle (gpointer user_data)
priv = icon_theme->priv;
if (priv->screen && priv->is_screen_singleton)
{
GtkSettings *settings = gtk_settings_get_for_screen (priv->screen);
gtk_rc_reset_styles (settings);
}
gtk_style_context_reset_widgets (priv->screen);
priv->reset_styles_idle = 0;
......
......@@ -1572,18 +1572,18 @@ gtk_settings_notify (GObject *object,
* widgets with gtk_widget_style_set(), and also causes more
* recomputation than necessary.
*/
gtk_rc_reset_styles (GTK_SETTINGS (object));
gtk_style_context_reset_widgets (settings->screen);
break;
case PROP_XFT_ANTIALIAS:
case PROP_XFT_HINTING:
case PROP_XFT_HINTSTYLE:
case PROP_XFT_RGBA:
settings_update_font_options (settings);
gtk_rc_reset_styles (GTK_SETTINGS (object));
gtk_style_context_reset_widgets (settings->screen);
break;
case PROP_FONTCONFIG_TIMESTAMP:
if (settings_update_fontconfig (settings))
gtk_rc_reset_styles (GTK_SETTINGS (object));
gtk_style_context_reset_widgets (settings->screen);
break;
case PROP_CURSOR_THEME_NAME:
case PROP_CURSOR_THEME_SIZE:
......
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