summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/weather.c2
-rw-r--r--src/weather.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/weather.c b/src/weather.c
index 48fa96f..1ed66ca 100644
--- a/src/weather.c
+++ b/src/weather.c
@@ -1114,7 +1114,6 @@ _weather_gadget_created(void *data, Evas_Object *obj, void *event_info EINA_UNUS
1114 Instance *inst; 1114 Instance *inst;
1115 1115
1116 inst = data; 1116 inst = data;
1117 fprintf(stderr, "Created lolollo\n");
1118 e_gadget_configure_cb_set(inst->obj, _weather_configure_module); 1117 e_gadget_configure_cb_set(inst->obj, _weather_configure_module);
1119 evas_object_smart_callback_del_full(obj, "gadget_created", _weather_gadget_created, data); 1118 evas_object_smart_callback_del_full(obj, "gadget_created", _weather_gadget_created, data);
1120 weather_plugin_weather_add(inst); 1119 weather_plugin_weather_add(inst);
@@ -1126,7 +1125,6 @@ _weather_map_gadget_created(void *data, Evas_Object *obj, void *event_info EINA_
1126 Instance *inst; 1125 Instance *inst;
1127 1126
1128 inst = data; 1127 inst = data;
1129 fprintf(stderr, "Created lolollo\n");
1130 e_gadget_configure_cb_set(inst->obj, _weather_map_configure_module); 1128 e_gadget_configure_cb_set(inst->obj, _weather_map_configure_module);
1131 evas_object_smart_callback_del_full(obj, "gadget_created", _weather_map_gadget_created, data); 1129 evas_object_smart_callback_del_full(obj, "gadget_created", _weather_map_gadget_created, data);
1132 weather_plugin_weather_add(inst); 1130 weather_plugin_weather_add(inst);
diff --git a/src/weather.h b/src/weather.h
index 368eea5..7979ca2 100644
--- a/src/weather.h
+++ b/src/weather.h
@@ -14,7 +14,11 @@
14 14
15#ifdef HAVE_GETTEXT 15#ifdef HAVE_GETTEXT
16# include <libintl.h> 16# include <libintl.h>
17# define _(str) gettext(str) 17# ifdef WEATHER_SANDBOX
18# define _(str) gettext(str)
19# else
20# define _(str) dgettext(GADGET_NAME, str)
21# endif
18#else 22#else
19# define _(str) (str) 23# define _(str) (str)
20#endif 24#endif