Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_menu.c 


Log Message:
- there can be things other then menus packed into a menu bar (spacers,
  separators etc) so verify we have a menu before checking out the popup

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_menu.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- ewl_menu.c  7 Jan 2006 15:49:18 -0000       1.22
+++ ewl_menu.c  7 Jan 2006 16:05:04 -0000       1.23
@@ -156,7 +156,9 @@
                bar = EWL_CONTAINER(menu->menubar_parent);
                ewl_container_child_iterate_begin(bar);
                while ((sub = EWL_MENU(ewl_container_child_next(bar)))) {
-                       if ((sub != EWL_MENU(w)) && (sub->base.popup) 
+                       if ((sub != EWL_MENU(w)) 
+                                       && ewl_widget_type_is(EWL_WIDGET(sub), 
"menu")
+                                       && (sub->base.popup) 
                                        && VISIBLE(sub->base.popup)) {
                                hide_menu = sub;
                                vis++;




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to