discomfitor pushed a commit to branch master.
commit 25c67a8556de9fe8b3f825033d444922fe328efc
Author: Mike Blumenkrantz <[email protected]>
Date: Thu May 23 09:16:30 2013 +0100
fix gadman gadget move-to menus
---
src/modules/gadman/e_mod_gadman.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/modules/gadman/e_mod_gadman.c
b/src/modules/gadman/e_mod_gadman.c
index 97aa0d9..764acfb 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
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may