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

[E-devel] patch to reach virtual desktop settings by right click on the pager



patch attached 

--
Hannes
Index: e_mod_main.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/modules/pager/e_mod_main.c,v
retrieving revision 1.190
diff -u -r1.190 e_mod_main.c
--- e_mod_main.c	24 Sep 2006 13:37:37 -0000	1.190
+++ e_mod_main.c	10 Oct 2006 00:44:14 -0000
@@ -97,6 +97,7 @@
 static void _button_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info);
 static void _menu_cb_post(void *data, E_Menu *m);
 static void _pager_inst_cb_menu_configure(void *data, E_Menu *m, E_Menu_Item *mi);
+static void _pager_inst_cb_menu_virtual_desktops_dialog(void *data, E_Menu *m, E_Menu_Item *mi);
 static void _pager_instance_drop_zone_recalc(Instance *inst);
 static int _pager_cb_event_border_resize(void *data, int type, void *event);
 static int _pager_cb_event_border_move(void *data, int type, void *event);
@@ -624,6 +625,11 @@
 	e_util_menu_item_edje_icon_set(mi, "enlightenment/configuration");
 	e_menu_item_callback_set(mi, _pager_inst_cb_menu_configure, NULL);
 	
+	mi = e_menu_item_new(mn);
+	e_menu_item_label_set(mi, _("Virtual Desktops"));
+	e_util_menu_item_edje_icon_set(mi, "enlightenment/desktops");
+	e_menu_item_callback_set(mi, _pager_inst_cb_menu_virtual_desktops_dialog, inst);
+	
 	e_gadcon_client_util_menu_items_append(inst->gcc, mn, 0);
 	
 	e_gadcon_canvas_zone_geometry_get(inst->gcc->gadcon,
@@ -656,6 +662,13 @@
    _config_pager_module(NULL);
 }
 
+static void _pager_inst_cb_menu_virtual_desktops_dialog(void *data, E_Menu *m, E_Menu_Item *mi)
+{
+   Instance *inst;
+   inst = data;
+   e_int_config_desks(inst->gcc->gadcon->zone->container);
+}
+
 static void
 _pager_instance_drop_zone_recalc(Instance *inst)
 {