#include <Elementary.h>
-#include "../../elementary_config.h"
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
#ifdef HAVE_ELEMENTARY_EWEATHER
static Eina_Module *module[2];
static void
-_first_city_cb(void *data, Evas_Object *o, void *event_info)
+_first_city_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
{
if (!current) return;
current = 0;
}
static void
-_second_city_cb(void *data, Evas_Object *o, void *event_info)
+_second_city_cb(void *dat __UNUSED__, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
{
if (current) return;
current = 1;
elm_flip_go(fl, ELM_FLIP_ROTATE_XZ_CENTER_AXIS);
}
-static void _apply_cb(void *data, Evas_Object *o, void *event_info)
+static void _apply_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
{
EWeather *eweather = eweather_object_eweather_get(weather[current]);
-
+
if (module[current])
eweather_plugin_set(eweather, module[current]);
eweather_code_set(eweather, elm_entry_entry_get(en));
}
static void
-_hover_select_cb(void *data, Evas_Object *obj, void *event_info)
+_hover_select_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
EWeather *eweather = eweather_object_eweather_get(weather[0]);
module[0] = eweather_plugin_search(eweather, elm_hoversel_item_label_get(event_info));
-
+
eweather = eweather_object_eweather_get(weather[1]);
module[1] = eweather_plugin_search(eweather, elm_hoversel_item_label_get(event_info));
printf("%p %p\n", module[0], module[1]);
#endif
void
-test_weather(void *data, Evas_Object *obj, void *event_info)
+test_weather(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg;
#ifdef HAVE_ELEMENTARY_EWEATHER
Eina_Array_Iterator it;
Eina_Array *array;
Eina_Module *m;
- int i;
+ unsigned int i;
#endif
win = elm_win_add(NULL, "weather", ELM_WIN_BASIC);
module[0] = NULL;
weather[0] = eweather_object_add(evas_object_evas_get(win));
- eweather = eweather_object_eweather_get(weather[0]);
evas_object_size_hint_weight_set(weather[0], EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(weather[0], -1.0, -1.0);
elm_flip_content_front_set(fl, weather[0]);
evas_object_show(hv);
array = eweather_plugins_list_get(eweather);
-
+
EINA_ARRAY_ITER_NEXT(array, i, m, it)
elm_hoversel_item_add(hv, eweather_plugin_name_get(eweather, i), NULL, ELM_ICON_NONE, _hover_select_cb, NULL);
-
+
en = elm_entry_add(win);
elm_entry_line_wrap_set(en, 0);
elm_entry_single_line_set(en, EINA_TRUE);