Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_context_menu.c 


Log Message:
make the context menu offset themable

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_context_menu.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_context_menu.c  17 Mar 2007 08:55:38 -0000      1.6
+++ ewl_context_menu.c  22 Mar 2007 19:29:12 -0000      1.7
@@ -51,6 +51,7 @@
 ewl_context_menu_init(Ewl_Context_Menu *cm)
 {
        Ewl_Widget *w;
+       int oh, ov;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR_RET("cm", cm, FALSE);
@@ -66,6 +67,9 @@
        ewl_object_alignment_set(EWL_OBJECT(w),
                                 EWL_FLAG_ALIGN_LEFT | EWL_FLAG_ALIGN_TOP);
        ewl_popup_type_set(EWL_POPUP(cm), EWL_POPUP_TYPE_MOUSE);
+       oh = ewl_theme_data_int_get(w, "/context_menu/hoffset");
+       ov = ewl_theme_data_int_get(w, "/context_menu/voffset");
+       ewl_popup_offset_set(EWL_POPUP(cm), oh, ov);
 
        ewl_context_menu_container_set(cm, NULL);
 



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to