Commit f5dfec96 authored by Tristan Van Berkom's avatar Tristan Van Berkom

- Now child menu items are selectable (fixed event handling for widgets that are

	    not in the logical hierarchy)


svn path=/trunk/; revision=1512
parent d1f73bbe
......@@ -11,9 +11,11 @@
* gladeui/glade-utils.c: Made glade_util_queue_draw_nodes --> glade_util_draw_selection_nodes()
(without the idle timeout now)
* gladeui/glade-widget.c, gladeui/glade-placeholder.c: Use glade_util_draw_selection_nodes(),
(selection wasnt being drawn on some widgets, now it's working and there's less "flicker"
when drag/resizing widgets too).
* gladeui/glade-widget.c, gladeui/glade-placeholder.c:
- Use glade_util_draw_selection_nodes(), (selection wasnt being drawn on some widgets,
now it's working and there's less "flicker" when drag/resizing widgets too).
- Now child menu items are selectable (fixed event handling for widgets that are
not in the logical hierarchy)
* gladeui/glade-project.c: Dont add objects to a project that already contains the said object.
......
......@@ -3332,9 +3332,16 @@ glade_widget_event_private (GtkWidget *widget,
GtkWidget *layout = widget;
/* Find the parenting layout container */
while (!GLADE_IS_DESIGN_LAYOUT (layout))
while (layout && !GLADE_IS_DESIGN_LAYOUT (layout))
layout = layout->parent;
/* Event outside the logical heirarchy, could be a menuitem
* or other such popup window, we'll presume to send it directly
* to the GladeWidget that connected here.
*/
if (!layout)
return glade_widget_event (gwidget, event);
/* Let the parenting GladeDesignLayout decide which GladeWidget to
* marshall this event to.
*/
......
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