Commit 9f3d23a9 authored by Javier Jardón's avatar Javier Jardón Committed by Tristan Van Berkom

Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_RC_STYLE)

https://bugzilla.gnome.org/show_bug.cgi?id=69872
parent 5c2c742c
......@@ -6467,7 +6467,7 @@ gtk_widget_set_style (GtkWidget *widget,
initial_emission = !gtk_widget_has_rc_style (widget) && !GTK_WIDGET_USER_STYLE (widget);
GTK_WIDGET_UNSET_FLAGS (widget, GTK_RC_STYLE);
GTK_OBJECT_FLAGS (widget) &= ~(GTK_RC_STYLE);
GTK_PRIVATE_SET_FLAG (widget, GTK_USER_STYLE);
gtk_widget_set_style_internal (widget, style, initial_emission);
......@@ -6510,7 +6510,7 @@ gtk_widget_reset_rc_style (GtkWidget *widget)
initial_emission = !gtk_widget_has_rc_style (widget) && !GTK_WIDGET_USER_STYLE (widget);
GTK_PRIVATE_UNSET_FLAG (widget, GTK_USER_STYLE);
GTK_WIDGET_SET_FLAGS (widget, GTK_RC_STYLE);
GTK_OBJECT_FLAGS (widget) |= GTK_RC_STYLE;
if (gtk_widget_has_screen (widget))
new_style = gtk_rc_get_style (widget);
......
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