#include <Elementary.h>
+#ifdef HAVE_CONFIG_H
+# include "elementary_config.h"
+#endif
#ifndef ELM_LIB_QUICKLAUNCH
typedef struct _Testitem
{
static int rotate_with_resize = 0;
static void
-my_bt_38_alpha_on(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_alpha_on(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Evas_Object *bg = evas_object_data_get(win, "bg");
}
static void
-my_bt_38_alpha_off(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_alpha_off(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
Evas_Object *bg = evas_object_data_get(win, "bg");
}
static void
-my_ck_38_resize(void *data, Evas_Object *obj, void *event_info)
+my_ck_38_resize(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
// Evas_Object *win = data;
rotate_with_resize = elm_check_state_get(obj);
}
static void
-my_bt_38_rot_0(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_rot_0(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
if (rotate_with_resize)
}
static void
-my_bt_38_rot_90(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_rot_90(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
if (rotate_with_resize)
}
static void
-my_bt_38_rot_180(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_rot_180(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
if (rotate_with_resize)
}
static void
-my_bt_38_rot_270(void *data, Evas_Object *obj, void *event_info)
+my_bt_38_rot_270(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win = data;
if (rotate_with_resize)
}
static void
-my_win_move(void *data, Evas_Object *obj, void *event_info)
+my_win_move(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Coord x, y;
elm_win_screen_position_get(obj, &x, &y);
}
static void
-_win_resize(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_win_resize(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Coord w, h;
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
}
static void
-_win_foc_in(void *data, Evas *e, void *event_info)
+_win_foc_in(void *data __UNUSED__, Evas *e __UNUSED__, void *event_info __UNUSED__)
{
printf("FOC IN\n");
}
static void
-_win_foc_out(void *data, Evas *e, void *event_info)
+_win_foc_out(void *data __UNUSED__, Evas *e __UNUSED__, void *event_info __UNUSED__)
{
printf("FOC OUT\n");
}
static void
-_close_win(void *data, Evas *e, void *event_info)
+_close_win(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_del(data);
}
void
-test_win_state(void *data, Evas_Object *obj, void *event_info)
+test_win_state(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *sl, *bx, *bx2, *bt, *ck;
- win = elm_win_add(NULL, "window-state", ELM_WIN_BASIC);
+ win = elm_win_add(NULL, "window-states", ELM_WIN_BASIC);
elm_win_title_set(win, "Window States");
evas_object_smart_callback_add(win, "moved", my_win_move, NULL);
evas_object_event_callback_add(win, EVAS_CALLBACK_RESIZE, _win_resize, NULL);
}
void
-test_win_state2(void *data, Evas_Object *obj, void *event_info)
+test_win_state2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Evas_Object *win, *bg, *sl, *bx, *bx2, *bt, *ck;
char buf[PATH_MAX];
- win = elm_win_add(NULL, "window-state2", ELM_WIN_BASIC);
+ win = elm_win_add(NULL, "window-states2", ELM_WIN_BASIC);
elm_win_override_set(win, 1);
evas_object_smart_callback_add(win, "moved", my_win_move, NULL);
evas_object_event_callback_add(win, EVAS_CALLBACK_RESIZE, _win_resize, NULL);