glade3 r1906 - in trunk: . gladeui
- From: tvb svn gnome org
- To: svn-commits-list gnome org
- Subject: glade3 r1906 - in trunk: . gladeui
- Date: Tue, 16 Sep 2008 15:01:41 +0000 (UTC)
Author: tvb
Date: Tue Sep 16 15:01:41 2008
New Revision: 1906
URL: http://svn.gnome.org/viewvc/glade3?rev=1906&view=rev
Log:
* gladeui/glade-design-layout.c: Fixed calculation to get deepest
wrapped glade widget (bug 539924 - fix by Pavel Kostyuchenko).
Modified:
trunk/ChangeLog
trunk/gladeui/glade-design-layout.c
Modified: trunk/gladeui/glade-design-layout.c
==============================================================================
--- trunk/gladeui/glade-design-layout.c (original)
+++ trunk/gladeui/glade-design-layout.c Tue Sep 16 15:01:41 2008
@@ -274,12 +274,16 @@
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]