[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[E-devel] e gadcon menu patch



imho shelf menu should be in a submenu

http://oooo.zapto.org/httpup/e17_shelf_menu2.jpg

attached a little patch
--- e_gadcon.c	2006-06-17 17:09:15.732181512 +0200
+++ e_gadcon_new.c	2006-06-17 17:07:00.914676888 +0200
@@ -1011,21 +1011,23 @@
    e_menu_item_check_set(mi, 1);
    if (gcc->resizable) e_menu_item_toggle_set(mi, 1);
    e_menu_item_callback_set(mi, _e_gadcon_client_cb_menu_resizable, gcc);
-
-   mi = e_menu_item_new(menu);
-   e_menu_item_separator_set(mi, 1);
    
    mi = e_menu_item_new(menu);
    e_menu_item_label_set(mi, _("Remove this gadget"));
    e_util_menu_item_edje_icon_set(mi, "enlightenment/remove");
    e_menu_item_callback_set(mi, _e_gadcon_client_cb_menu_remove, gcc);
 
+   mi = e_menu_item_new(menu);
+   e_menu_item_separator_set(mi, 1);
+
    if (gcc->gadcon->menu_attach.func)
      {
-	mi = e_menu_item_new(menu);
-	e_menu_item_separator_set(mi, 1);
-	
-	gcc->gadcon->menu_attach.func(gcc->gadcon->menu_attach.data, menu);
+	mn = e_menu_new();
+	gcc->gadcon->menu_attach.func(gcc->gadcon->menu_attach.data, mn);
+
+        mi = e_menu_item_new(menu);
+        e_menu_item_label_set(mi, _("Shelf"));
+        e_menu_item_submenu_set(mi, mn);
      }
 }