forked from enlightenment/enlightenment
accurately set menu radio item in client vdesk Move to... submenu
T478
This commit is contained in:
parent
7cc9e7db3b
commit
12ce306457
|
@ -937,14 +937,12 @@ _e_border_menu_cb_sendto_pre(void *data, E_Menu *m __UNUSED__, E_Menu_Item *mi)
|
||||||
E_Menu *subm;
|
E_Menu *subm;
|
||||||
E_Menu_Item *submi;
|
E_Menu_Item *submi;
|
||||||
E_Border *bd;
|
E_Border *bd;
|
||||||
E_Desk *desk_cur;
|
|
||||||
E_Zone *zone;
|
E_Zone *zone;
|
||||||
Eina_List *l = NULL;
|
Eina_List *l = NULL;
|
||||||
char buf[128];
|
char buf[128];
|
||||||
int zones, i;
|
int zones, i;
|
||||||
|
|
||||||
bd = data;
|
bd = data;
|
||||||
desk_cur = e_desk_current_get(bd->zone);
|
|
||||||
zones = eina_list_count(bd->zone->container->zones);
|
zones = eina_list_count(bd->zone->container->zones);
|
||||||
|
|
||||||
subm = e_menu_new();
|
subm = e_menu_new();
|
||||||
|
@ -979,7 +977,7 @@ _e_border_menu_cb_sendto_pre(void *data, E_Menu *m __UNUSED__, E_Menu_Item *mi)
|
||||||
#ifdef DESKMIRROR_TEST
|
#ifdef DESKMIRROR_TEST
|
||||||
e_menu_item_icon_file_set(submi, "sup");
|
e_menu_item_icon_file_set(submi, "sup");
|
||||||
#endif
|
#endif
|
||||||
if ((bd->zone == zone) && (desk_cur == desk))
|
if ((bd->zone == zone) && (!bd->iconic) && (bd->desk == desk))
|
||||||
e_menu_item_toggle_set(submi, 1);
|
e_menu_item_toggle_set(submi, 1);
|
||||||
else
|
else
|
||||||
e_menu_item_callback_set(submi, _e_border_menu_cb_sendto, desk);
|
e_menu_item_callback_set(submi, _e_border_menu_cb_sendto, desk);
|
||||||
|
|
Loading…
Reference in New Issue