summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-05-23 09:16:30 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-05-23 10:45:24 +0100
commit25c67a8556de9fe8b3f825033d444922fe328efc (patch)
tree2409287a9002ba31f69cbb3a5c616395736f346d
parent48cd1c1598715a07b6658e2d05a0ee5dac77ce94 (diff)
downloadenlightenment-25c67a8556de9fe8b3f825033d444922fe328efc.tar.gz
fix gadman gadget move-to menus
-rw-r--r--src/modules/gadman/e_mod_gadman.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/gadman/e_mod_gadman.c b/src/modules/gadman/e_mod_gadman.c
index 97aa0d9bda..764acfb7af 100644
--- a/src/modules/gadman/e_mod_gadman.c
+++ b/src/modules/gadman/e_mod_gadman.c
@@ -115,14 +115,14 @@ gadman_init(E_Module *m)
/* create and register "desktop" location */
location = Man->location[GADMAN_LAYER_BG] = e_gadcon_location_new(_("Desktop"), E_GADCON_SITE_DESKTOP,
- _e_gadman_client_add, NULL,
+ _e_gadman_client_add, (intptr_t*)(long)GADMAN_LAYER_BG,
_e_gadman_client_remove, NULL);
e_gadcon_location_set_icon_name(location, "preferences-desktop");
e_gadcon_location_register(location);
/* create and register "desktop hover" location */
location = Man->location[GADMAN_LAYER_TOP] = e_gadcon_location_new(_("Desktop Hover"), E_GADCON_SITE_DESKTOP,
- _e_gadman_client_add, NULL,
+ _e_gadman_client_add, (intptr_t*)(long)GADMAN_LAYER_TOP,
_e_gadman_client_remove, NULL);
e_gadcon_location_set_icon_name(location, "preferences-desktop");
e_gadcon_location_register(location);
@@ -1509,9 +1509,9 @@ on_hide_stop(void *data __UNUSED__, Evas_Object *o __UNUSED__, const char *em __
}
static int
-_e_gadman_client_add(void *data __UNUSED__, E_Gadcon_Client *gcc, const E_Gadcon_Client_Class *cc)
+_e_gadman_client_add(void *data, E_Gadcon_Client *gcc, const E_Gadcon_Client_Class *cc)
{
- return !!gadman_gadget_add(cc, gcc, GADMAN_LAYER_BG);
+ return !!gadman_gadget_add(cc, gcc, (intptr_t)data);
}
static void