Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_iconbox.c 


Log Message:
Hide the menu properly

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_iconbox.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- ewl_iconbox.c       17 Oct 2005 15:27:48 -0000      1.34
+++ ewl_iconbox.c       18 Oct 2005 11:26:22 -0000      1.35
@@ -162,6 +162,7 @@
        ewl_object_fill_policy_set(EWL_OBJECT(ib->ewl_iconbox_menu_floater), 
EWL_FLAG_FILL_FILL);
 
 
+       
        /* Get the context menu ready */
        ib->ewl_iconbox_context_menu = ewl_imenu_new();
        ewl_menu_item_text_set(EWL_MENU_ITEM(ib->ewl_iconbox_context_menu), "");
@@ -860,17 +861,23 @@
        if (ev->button == 3 /* Confirm that this is not an icon event */ && 
(ib->xdown != ev->x && ib->ydown != ev->y)) {
                /*printf ("Context menu: %d,%d\n", ev->x, ev->y);*/
 
-               ewl_widget_show(ib->ewl_iconbox_menu_floater);
-               ewl_widget_show(ib->ewl_iconbox_context_menu);
-               ewl_widget_show(ib->ewl_iconbox_view_menu);
+               //ewl_widget_show(ib->ewl_iconbox_menu_floater);
+               //ewl_widget_show(ib->ewl_iconbox_context_menu);
+               //ewl_widget_show(ib->ewl_iconbox_view_menu);
+               
ewl_floater_follow_set(EWL_FLOATER(ib->ewl_iconbox_menu_floater), 
ib->ewl_iconbox_pane_inner);
                
                
ewl_floater_position_set(EWL_FLOATER(ib->ewl_iconbox_menu_floater), ev->x-ibx + 
abs(px-ibx), ev->y-iby +abs(py-iby));
                ewl_callback_call(EWL_WIDGET(ib->ewl_iconbox_context_menu), 
EWL_CALLBACK_SELECT);
        } else if (ev->button == 1 /* Confirm that this is not an icon event */ 
&& (ib->xdown != ev->x && ib->ydown != ev->y)) {
                /*Make sure the context menu is invisible*/
-               ewl_widget_hide(ib->ewl_iconbox_menu_floater);
-               ewl_widget_hide(ib->ewl_iconbox_context_menu);
-               ewl_widget_hide(ib->ewl_iconbox_view_menu);
+               
+               //ewl_widget_hide(ib->ewl_iconbox_context_menu);
+               //ewl_widget_hide(ib->ewl_iconbox_menu_floater);
+               //ewl_widget_hide(ib->ewl_iconbox_view_menu);
+               //
+               
ewl_widget_hide(EWL_MENU_ITEM(ib->ewl_iconbox_context_menu_item)->inmenu);
+               
+               
ewl_floater_follow_set(EWL_FLOATER(ib->ewl_iconbox_menu_floater), NULL);
                
                ewl_object_custom_size_set(EWL_OBJECT(ib->select), 1, 1);
                




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to