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

[E-devel] e17 "send to desktop" menu patch



o Ooo !

Here is a small patch to display wich desk is current in "send to
desktop" menu :)

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

laurent 'kiwi'
--- e_int_border_menu.c	2006-06-30 23:54:46.661936256 +0200
+++ Me_int_border_menu.c	2006-06-30 23:49:45.606703608 +0200
@@ -706,9 +706,11 @@
    E_Menu *subm;
    E_Menu_Item *submi;
    E_Border *bd;
+   E_Desk *desk_cur;
    int i;
 
    bd = data;
+   desk_cur = e_desk_current_get(bd->zone);
 
    subm = e_menu_new();
    e_object_data_set(E_OBJECT(subm), bd);
@@ -721,6 +723,9 @@
 	desk = bd->zone->desks[i];
 	submi = e_menu_item_new(subm);
 	e_menu_item_label_set(submi, desk->name);
+        e_menu_item_radio_set(submi, 1);
+        e_menu_item_radio_group_set(submi, 2);
+        e_menu_item_toggle_set(submi, (desk_cur == desk ? 1 : 0));
 	e_menu_item_callback_set(submi, _e_border_menu_cb_sendto, desk);
      }
 }