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:

committed by
Johan Dahlin

parent
493914fa7a
commit
02fbfecda2
@ -4,9 +4,8 @@
|
|||||||
|
|
||||||
* gtk/gtk.symbols: Add all newly added accessors so abicheck.sh passes
|
* gtk/gtk.symbols: Add all newly added accessors so abicheck.sh passes
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_get_allocation): Remove unused variable
|
* gtk/gtkwidget.c (gtk_widget_get_allocation): Initialize the
|
||||||
and check if the widget is a GtkWidget subclass, not the uninitialized
|
allocation to avoid compiler warnings
|
||||||
allocation.
|
|
||||||
|
|
||||||
2008-06-20 Michael Natterer <mitch@imendio.com>
|
2008-06-20 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
@ -9899,7 +9899,8 @@ gtk_widget_get_has_tooltip (GtkWidget *widget)
|
|||||||
GtkAllocation
|
GtkAllocation
|
||||||
gtk_widget_get_allocation (GtkWidget *widget)
|
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;
|
return widget->allocation;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user