removed buglet on the initial style_set emission.
This commit is contained in:
parent
68a90caf45
commit
91c1c8dddb
3 changed files with 5 additions and 1 deletions
|
|
@ -64,6 +64,8 @@ static void
|
|||
gtk_drawing_area_init (GtkDrawingArea *darea)
|
||||
{
|
||||
GTK_WIDGET_SET_FLAGS (darea, GTK_BASIC);
|
||||
|
||||
darea->draw_data = NULL;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ typedef struct _GtkDrawingAreaClass GtkDrawingAreaClass;
|
|||
struct _GtkDrawingArea
|
||||
{
|
||||
GtkWidget widget;
|
||||
|
||||
gpointer draw_data;
|
||||
};
|
||||
|
||||
struct _GtkDrawingAreaClass
|
||||
|
|
|
|||
|
|
@ -2406,7 +2406,7 @@ gtk_widget_set_rc_style (GtkWidget *widget)
|
|||
{
|
||||
g_assert (initial_emission == TRUE); /* FIXME: remove this line */
|
||||
|
||||
gtk_widget_set_style_internal (widget, new_style, TRUE);
|
||||
gtk_widget_set_style_internal (widget, widget->style, TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue