From 800fbc513fd59643f93aebcf0f132bfc011c76fe Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Thu, 11 Feb 2010 09:27:05 +0100 Subject: [PATCH] Allow calling gtk_widget_style_attach() only when realized --- gtk/gtkwidget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 2c8608191f..a9674f7d28 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -6424,6 +6424,7 @@ void gtk_widget_style_attach (GtkWidget *widget) { g_return_if_fail (GTK_IS_WIDGET (widget)); + g_return_if_fail (GTK_WIDGET_REALIZED (widget)); widget->style = gtk_style_attach (widget->style, widget->window); }