mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
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:
parent
f87182ac43
commit
c4aa58f9bc
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user