cleanups for screen_send_by action, no functional changes

SVN revision: 74038
This commit is contained in:
Mike Blumenkrantz 2012-07-18 06:52:43 +00:00
parent b528baa483
commit 17a2461427
1 changed files with 27 additions and 33 deletions

View File

@ -1676,20 +1676,17 @@ ACT_FN_GO(screen_send_to, )
ACT_FN_GO(screen_send_by, )
{
E_Zone *zone;
E_Zone *zone, *zone2;
int scr = 0;
zone = _e_actions_zone_get(obj);
if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
if (zone)
{
if (params)
{
int scr = 0;
if (sscanf(params, "%i", &scr) == 1)
{
E_Zone *zone2 = NULL;
if (!zone) return;
if (!params) return;
errno = 0;
scr = strtol(params, NULL, 10);
if (errno) return;
if (eina_list_count(e_manager_list()) > 1)
{
scr += zone->container->num;
@ -1712,9 +1709,6 @@ ACT_FN_GO(screen_send_by, )
e_desk_last_focused_focus(e_desk_current_get(zone2));
}
}
}
}
}
#define ZONE_DESK_ACTION(con_num, zone_num, zone, act) \
E_Zone * zone; \