Remove unused variable and check if the widget is a GtkWidget subclass,

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.


svn path=/trunk/; revision=20644
This commit is contained in:
Johan Dahlin 2008-06-20 14:19:22 +00:00 committed by Johan Dahlin
parent f87182ac43
commit c4aa58f9bc
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.
2008-06-20 Michael Natterer <mitch@imendio.com>
* gtk/gtkaccellabel.h

View File

@ -9899,8 +9899,7 @@ gtk_widget_get_has_tooltip (GtkWidget *widget)
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;
}