Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_fm.c e_bg.c 


Log Message:
Support menu icons for the context menus.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_fm.c,v
retrieving revision 1.216
retrieving revision 1.217
diff -u -3 -r1.216 -r1.217
--- e_fm.c      14 Oct 2007 16:06:51 -0000      1.216
+++ e_fm.c      14 Oct 2007 16:09:51 -0000      1.217
@@ -6942,7 +6942,8 @@
             md->handler = handler;
             mi = e_menu_item_new(mn);
             e_menu_item_label_set(mi, handler->label);
-            /* TODO: Add Icon */
+            if (handler->icon_group)
+              e_util_menu_item_edje_icon_set(mi, handler->icon_group);
             e_menu_item_callback_set(mi, _e_fm2_icon_menu_item_cb, md);
          }
      }
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_bg.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- e_bg.c      14 Oct 2007 16:06:51 -0000      1.31
+++ e_bg.c      14 Oct 2007 16:09:51 -0000      1.32
@@ -18,7 +18,8 @@
    Evas_List *l = NULL;
 
    /* Register mime handler */
-   bg_hdl = e_fm2_mime_handler_new(_("Set As Background"), NULL, 
+   bg_hdl = e_fm2_mime_handler_new(_("Set As Background"), 
+                                  "enlightenment/background", 
                                   e_bg_handler_set, NULL, 
                                   e_bg_handler_test, NULL);
    e_fm2_mime_handler_glob_add(bg_hdl, "*.edj");



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to