gtk+ r20647 - in trunk: . gtk
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20647 - in trunk: . gtk
- Date: Fri, 20 Jun 2008 14:28:09 +0000 (UTC)
Author: johan
Date: Fri Jun 20 14:28:09 2008
New Revision: 20647
URL: http://svn.gnome.org/viewvc/gtk+?rev=20647&view=rev
Log:
2008-06-20 Johan Dahlin <jdahlin async com br>
* gtk/gtkwidget.c (gtk_widget_get_allocation): Initialize the
allocation to avoid compiler warnings
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:28:09 2008
@@ -9899,7 +9899,8 @@
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]