Commit 8a3fe789 authored by Tristan Van Berkom's avatar Tristan Van Berkom

Fixed calculation to get deepest wrapped glade widget (bug 539924 - fix by


	* gladeui/glade-design-layout.c: Fixed calculation to get deepest
	  wrapped glade widget (bug 539924 - fix by Pavel Kostyuchenko).


svn path=/trunk/; revision=1906
parent 18e1bcf1
2008-09-16 Tristan Van Berkom <tvb@gnome.org>
* gladeui/glade-design-layout.c: Fixed calculation to get deepest
wrapped glade widget (bug 539924 - fix by Pavel Kostyuchenko).
2008-09-15 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in:
......
......@@ -274,12 +274,16 @@ glade_design_layout_deepest_gwidget_at_position (GtkContainer *toplevel,
gtk_container_forall (container, (GtkCallback)
glade_design_layout_find_inside_container, &data);
if (data.found && GTK_IS_CONTAINER (data.found))
ret_widget = glade_design_layout_deepest_gwidget_at_position
(toplevel, GTK_CONTAINER (data.found), top_x, top_y);
else if (data.found)
ret_widget = glade_widget_get_from_gobject (data.found);
else
if (data.found)
{
if (GTK_IS_CONTAINER (data.found))
ret_widget = glade_design_layout_deepest_gwidget_at_position
(toplevel, GTK_CONTAINER (data.found), top_x, top_y);
else
ret_widget = glade_widget_get_from_gobject (data.found);
}
if (!ret_widget)
ret_widget = glade_widget_get_from_gobject (container);
return ret_widget;
......
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