diff --git a/ChangeLog b/ChangeLog index 21b30ef4e5..bfd2895a53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-29 Matthias Clasen + + * gtk/gtkwidget.c (gtk_widget_is_composited): Fix a C99ism. (#340055, + Kazuki Iwamoto) + 2006-04-28 Matthias Clasen * gtk/gtkcellrenderertext.c (get_size): Use _static variants when diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 21b30ef4e5..bfd2895a53 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2006-04-29 Matthias Clasen + + * gtk/gtkwidget.c (gtk_widget_is_composited): Fix a C99ism. (#340055, + Kazuki Iwamoto) + 2006-04-28 Matthias Clasen * gtk/gtkcellrenderertext.c (get_size): Use _static variants when diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 542a84d688..689d6f52e2 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -5182,9 +5182,11 @@ gtk_widget_propagate_screen_changed_recurse (GtkWidget *widget, gboolean gtk_widget_is_composited (GtkWidget *widget) { + GdkScreen *screen; + g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE); - GdkScreen *screen = gtk_widget_get_screen (widget); + screen = gtk_widget_get_screen (widget); return gdk_screen_is_composited (screen); }