removed buglet on the initial style_set emission.

This commit is contained in:
Tim Janik 1998-03-01 01:53:57 +00:00
parent 68a90caf45
commit 91c1c8dddb
3 changed files with 5 additions and 1 deletions

View File

@ -64,6 +64,8 @@ static void
gtk_drawing_area_init (GtkDrawingArea *darea)
{
GTK_WIDGET_SET_FLAGS (darea, GTK_BASIC);
darea->draw_data = NULL;
}

View File

@ -39,6 +39,8 @@ typedef struct _GtkDrawingAreaClass GtkDrawingAreaClass;
struct _GtkDrawingArea
{
GtkWidget widget;
gpointer draw_data;
};
struct _GtkDrawingAreaClass

View File

@ -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);
}
}
}