gtk+ r20644 - in trunk: . gtk



Author: johan
Date: Fri Jun 20 14:19:22 2008
New Revision: 20644
URL: http://svn.gnome.org/viewvc/gtk+?rev=20644&view=rev

Log:
2008-06-20  Johan Dahlin  <jdahlin async com br>

    * gtk/gtkwidget.c (gtk_widget_get_allocation): Remove unused variable
    and check if the widget is a GtkWidget subclass, not the uninitialized
    allocation.



Modified:
   trunk/ChangeLog
   trunk/gtk/gtkwidget.c

Modified: trunk/gtk/gtkwidget.c
==============================================================================
--- trunk/gtk/gtkwidget.c	(original)
+++ trunk/gtk/gtkwidget.c	Fri Jun 20 14:19:22 2008
@@ -9899,8 +9899,7 @@
 GtkAllocation
 gtk_widget_get_allocation (GtkWidget *widget)
 {
-  GtkAllocation allocation;
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), allocation);
+  g_return_val_if_fail (GTK_IS_WIDGET (widget), widget);
 
   return widget->allocation;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]