Commit 861ce243 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

* plugins/gtk+/glade-gtk.c: Fixed warnings from glade_gtk_box_get_first_blank() when

	  project closes.
parent 3cee50bb
2011-01-16 Tristan Van Berkom <tristanvb@openismus.com>
* plugins/gtk+/glade-gtk.c: Fixed warnings from glade_gtk_box_get_first_blank() when
project closes.
2011-01-15 Emilio Pozuelo Monfort <pochu27@gmail.com>
* plugins/gtk+/Makefile.am: Don't install .in files.
......
......@@ -1606,10 +1606,13 @@ glade_gtk_box_get_first_blank (GtkBox * box)
if ((gwidget = glade_widget_get_from_gobject (widget)) != NULL)
{
gint gwidget_position;
gint gwidget_position = 0;
GladeProperty *property =
glade_widget_get_pack_property (gwidget, "position");
gwidget_position = g_value_get_int (glade_property_inline_value (property));
/* property can be NULL here when project is closing */
if (property)
gwidget_position = g_value_get_int (glade_property_inline_value (property));
if (gwidget_position > position)
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment