forked from AuroraMiddleware/gtk
Initialize the allocation to avoid compiler warnings
2008-06-20 Johan Dahlin <jdahlin@async.com.br> * gtk/gtkwidget.c (gtk_widget_get_allocation): Initialize the allocation to avoid compiler warnings svn path=/trunk/; revision=20647
This commit is contained in:
parent
493914fa7a
commit
02fbfecda2
@ -4,9 +4,8 @@
|
||||
|
||||
* gtk/gtk.symbols: Add all newly added accessors so abicheck.sh passes
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_get_allocation): Remove unused variable
|
||||
and check if the widget is a GtkWidget subclass, not the uninitialized
|
||||
allocation.
|
||||
* gtk/gtkwidget.c (gtk_widget_get_allocation): Initialize the
|
||||
allocation to avoid compiler warnings
|
||||
|
||||
2008-06-20 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
|
@ -9899,7 +9899,8 @@ gtk_widget_get_has_tooltip (GtkWidget *widget)
|
||||
GtkAllocation
|
||||
gtk_widget_get_allocation (GtkWidget *widget)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), widget);
|
||||
static GtkAllocation allocation = { 0 };
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), allocation);
|
||||
|
||||
return widget->allocation;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user