forked from enlightenment/efl
examples: Fix most trivial warnings
This fixes all warnings for "make examples" for: -Wunused-parameter -Wshadow -Wformat-security -Wenum-conversion Some remaining warnings include: -Wdeprecated-delcarations
This commit is contained in:
parent
a71b770bbc
commit
bcf3ce8428
|
@ -404,8 +404,8 @@ main(int argc, char **argv)
|
|||
|
||||
if (line_delm_slice.len)
|
||||
{
|
||||
Eina_Slice s = line_delm_slice;
|
||||
efl_io_writer_write(dialer, &s, NULL);
|
||||
Eina_Slice sw = line_delm_slice;
|
||||
efl_io_writer_write(dialer, &sw, NULL);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -426,8 +426,8 @@ main(int argc, char **argv)
|
|||
|
||||
if (line_delm_slice.len)
|
||||
{
|
||||
Eina_Slice s = line_delm_slice;
|
||||
efl_io_writer_write(dialer, &s, NULL);
|
||||
Eina_Slice sw = line_delm_slice;
|
||||
efl_io_writer_write(dialer, &sw, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,18 +36,6 @@ _phone_entry_free_cb(void *data)
|
|||
free(data);
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
_phone_book_foreach_cb(const Eina_Hash *phone_book EINA_UNUSED, const void *key,
|
||||
void *data, void *fdata EINA_UNUSED)
|
||||
{
|
||||
const char *name = key;
|
||||
const char *number = data;
|
||||
printf("%s: %s\n", name, number);
|
||||
|
||||
// Return EINA_FALSE to stop this callback from being called
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc EINA_UNUSED, const char *argv[] EINA_UNUSED)
|
||||
{
|
||||
|
|
|
@ -103,7 +103,7 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
|||
print_person(base);
|
||||
print_person((person *)sub);
|
||||
|
||||
print_pilot(base); //BAD
|
||||
print_pilot((pilot *)base); //BAD: fails (C cast prevents GCC warning)
|
||||
print_pilot(sub);
|
||||
|
||||
eina_shutdown();
|
||||
|
|
|
@ -87,16 +87,16 @@ _xml_tag_cb(void *data, Eina_Simple_XML_Type type, const char *content,
|
|||
{
|
||||
if (tag_login == EINA_TRUE)
|
||||
{
|
||||
snprintf(buffer, sizeof(buffer), content);
|
||||
strncat(str, "<", 1);
|
||||
strncat(str, buffer, sizeof(buffer));
|
||||
strncat(str, "> ", 2);
|
||||
eina_strlcpy(buffer, content, sizeof(buffer));
|
||||
eina_strlcat(str, "<", 1);
|
||||
eina_strlcat(str, buffer, sizeof(str));
|
||||
eina_strlcat(str, "> ", 2);
|
||||
tag_login = EINA_FALSE;
|
||||
}
|
||||
else if (tag_message == EINA_TRUE)
|
||||
{
|
||||
snprintf(buffer, sizeof(buffer), content);
|
||||
strncat(str, buffer, sizeof(buffer));
|
||||
eina_strlcpy(buffer, content, sizeof(buffer));
|
||||
eina_strlcat(str, buffer, sizeof(str));
|
||||
tag_message = EINA_FALSE;
|
||||
eina_array_push(array, strdup(str));
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <Eio.h>
|
||||
#include <Ecore.h>
|
||||
|
||||
void leave(Efl_Io_Manager *job)
|
||||
void leave(Efl_Io_Manager *job EINA_UNUSED)
|
||||
{
|
||||
ecore_main_loop_quit();
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <Eio.h>
|
||||
#include <Ecore.h>
|
||||
|
||||
void error_cb(void *data, const Efl_Event *ev)
|
||||
void error_cb(void *data EINA_UNUSED, const Efl_Event *ev)
|
||||
{
|
||||
Efl_Future_Event_Failure *failure = ev->info;
|
||||
const char *msg = eina_error_msg_get(failure->error);
|
||||
|
|
|
@ -14,6 +14,7 @@ void error_cb(void *data, const Efl_Event *ev)
|
|||
Efl_Future_Event_Failure *failure = ev->info;
|
||||
const char *msg = eina_error_msg_get(failure->error);
|
||||
Efl_Io_Manager *job = data;
|
||||
(void) job;
|
||||
|
||||
EINA_LOG_ERR("error: %s", msg);
|
||||
|
||||
|
@ -23,6 +24,7 @@ void error_cb(void *data, const Efl_Event *ev)
|
|||
void done_closing_cb(void *data, const Efl_Event *ev EINA_UNUSED)
|
||||
{
|
||||
Efl_Io_Manager *job = data;
|
||||
(void) job;
|
||||
|
||||
printf("%s closed all files.\n", __FUNCTION__);
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ main(int argc, char const *argv[])
|
|||
if (argc > 1)
|
||||
path = argv[1];
|
||||
|
||||
Ecore_Job *job = ecore_job_add(&monitor_stuff, path);
|
||||
ecore_job_add(&monitor_stuff, path);
|
||||
|
||||
ecore_main_loop_begin();
|
||||
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
|
||||
#include <Elementary.h>
|
||||
|
||||
static void _pos_selected_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
static void _pos_selected_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info)
|
||||
{
|
||||
printf("Selection: %s\n", (char *)event_info);
|
||||
printf("Label selected: %s\n", elm_actionslider_selected_label_get(obj));
|
||||
}
|
||||
|
||||
static void
|
||||
_position_change_magnetic_cb(void *data, Evas_Object * obj, void *event_info)
|
||||
_position_change_magnetic_cb(void *data EINA_UNUSED, Evas_Object * obj, void *event_info)
|
||||
{
|
||||
if (!strcmp((char *)event_info, "left"))
|
||||
elm_actionslider_magnet_pos_set(obj, ELM_ACTIONSLIDER_LEFT);
|
||||
|
@ -19,7 +19,7 @@ _position_change_magnetic_cb(void *data, Evas_Object * obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_magnet_enable_disable_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_magnet_enable_disable_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info)
|
||||
{
|
||||
if (!strcmp((char *)event_info, "left"))
|
||||
elm_actionslider_magnet_pos_set(obj, ELM_ACTIONSLIDER_CENTER);
|
||||
|
@ -28,7 +28,7 @@ _magnet_enable_disable_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *as;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include <Elementary.hh>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main (int argc, char *argv[])
|
||||
elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include <sstream>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main (int argc, char *argv[])
|
||||
elm_main (int argc EINA_UNUSED, char **args EINA_UNUSED)
|
||||
{
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bg;
|
||||
char buf[PATH_MAX];
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
static void
|
||||
_cb_radio_changed(void *data, Evas_Object *obj, void *event)
|
||||
_cb_radio_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *o_bg = data;
|
||||
|
||||
|
@ -13,7 +13,7 @@ _cb_radio_changed(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_cb_overlay_changed(void *data, Evas_Object *obj, void *event)
|
||||
_cb_overlay_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *o_bg = data;
|
||||
|
||||
|
@ -33,7 +33,7 @@ _cb_overlay_changed(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_cb_color_changed(void *data, Evas_Object *obj, void *event)
|
||||
_cb_color_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *o_bg = data;
|
||||
double val = 0.0;
|
||||
|
@ -50,7 +50,7 @@ _cb_color_changed(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win;
|
||||
Evas_Object *box, *hbox, *o_bg;
|
||||
|
|
|
@ -11,7 +11,7 @@ typedef struct
|
|||
} Transitions_Data;
|
||||
|
||||
static void
|
||||
_add_cb(void *data, Evas_Object *obj, void *ev)
|
||||
_add_cb(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *btn;
|
||||
Eina_List *children;
|
||||
|
@ -31,14 +31,14 @@ _add_cb(void *data, Evas_Object *obj, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_clear_cb(void *data, Evas_Object *obj, void *ev)
|
||||
_clear_cb(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
Transitions_Data *tdata = data;
|
||||
elm_box_clear(tdata->box);
|
||||
}
|
||||
|
||||
static void
|
||||
_unpack_cb(void *data, Evas_Object *obj, void *ev)
|
||||
_unpack_cb(void *data, Evas_Object *obj, void *ev EINA_UNUSED)
|
||||
{
|
||||
Transitions_Data *tdata = data;
|
||||
elm_box_unpack(tdata->box, obj);
|
||||
|
@ -67,7 +67,7 @@ _test_box_transition_change(void *data)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char *argv[])
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bigbox, *bx, *bt;
|
||||
static Transitions_Data tdata = {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
void
|
||||
_bla(void *data, Evas_Object *obj, void *event_info)
|
||||
_bla(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
static unsigned char corner = 0;
|
||||
++corner;
|
||||
|
@ -16,7 +16,7 @@ _bla(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bubble, *label, *icon;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <Elementary.hh>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main (int argc, char *argv[])
|
||||
elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
|
||||
|
||||
|
|
|
@ -4,13 +4,14 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
static void
|
||||
on_click(void *data, Evas_Object *obj, void *event_info)
|
||||
on_click(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
elm_exit();
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win = NULL;
|
||||
Evas_Object *btn = NULL;
|
||||
|
|
|
@ -17,7 +17,8 @@ typedef struct
|
|||
} App_Data;
|
||||
|
||||
static void
|
||||
_btn_cursors_release_cb(void *data, Evas_Object *btn, void *ev)
|
||||
_btn_cursors_release_cb(void *data, Evas_Object *btn EINA_UNUSED,
|
||||
void *ev EINA_UNUSED)
|
||||
{
|
||||
App_Data *app = data;
|
||||
elm_object_part_content_set(app->mid, "icon", app->icon_still);
|
||||
|
@ -25,7 +26,7 @@ _btn_cursors_release_cb(void *data, Evas_Object *btn, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_btn_cursors_move_cb(void *data, Evas_Object *btn, void *ev)
|
||||
_btn_cursors_move_cb(void *data, Evas_Object *btn, void *ev EINA_UNUSED)
|
||||
{
|
||||
App_Data *app = data;
|
||||
double ax, ay;
|
||||
|
@ -69,7 +70,7 @@ _btn_cursors_move_cb(void *data, Evas_Object *btn, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_btn_options_cb(void *data, Evas_Object *btn, void *ev)
|
||||
_btn_options_cb(void *data, Evas_Object *btn, void *ev EINA_UNUSED)
|
||||
{
|
||||
char *ptr;
|
||||
double t;
|
||||
|
@ -97,7 +98,7 @@ _btn_options_cb(void *data, Evas_Object *btn, void *ev)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char *argv[])
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *box, *box2, *btn, *icon;
|
||||
static App_Data data;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <Elementary.hh>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main (int argc, char *argv[])
|
||||
elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ _format_month_year(struct tm *format_time)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main (int argc, char *argv[])
|
||||
elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <Elementary.hh>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main (int argc, char *argv[])
|
||||
elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Efl_Time min, max;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#define SECS_DAY 86400
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main (int argc, char *argv[])
|
||||
elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
struct tm selected_time;
|
||||
time_t current_time;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <Elementary.hh>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main (int argc, char *argv[])
|
||||
elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *cal;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ _format_month_year(struct tm *format_time)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *cal;
|
||||
const char *weekdays[] =
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *cal;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#define SECS_DAY 86400
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *cal, *cal2;
|
||||
struct tm selected_time;
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
static void
|
||||
_print_cal_info_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_print_cal_info_cb(void *data EINA_UNUSED, Evas_Object *obj,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
int year_min, year_max;
|
||||
Eina_Bool sel_enabled;
|
||||
|
@ -37,7 +38,7 @@ _print_cal_info_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *cal;
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#define SECS_DAY 86400
|
||||
|
||||
static void
|
||||
_btn_clear_cb(void *data, Evas_Object *btn, void *ev)
|
||||
_btn_clear_cb(void *data, Evas_Object *btn EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *cal = data;
|
||||
elm_calendar_marks_clear(cal);
|
||||
|
@ -21,7 +21,7 @@ _btn_clear_cb(void *data, Evas_Object *btn, void *ev)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bt, *bx, *cal;
|
||||
Elm_Calendar_Mark *mark;
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
static void
|
||||
_print(void *data, Evas_Object *obj, void *event_info)
|
||||
_print(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
printf("check %smarked\n", *((Eina_Bool*)data) ? "" : "un");
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *cb, *cb2, *icon;
|
||||
Eina_Bool value;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <Elementary.hh>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main (int argc, char *argv[])
|
||||
elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *ck;
|
||||
unsigned int digedit;
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
static Eina_Bool _btn_large = EINA_FALSE;
|
||||
|
||||
static void
|
||||
_swallow_btn_cb(void *data, Evas_Object *btn, void *event_info)
|
||||
_swallow_btn_cb(void *data, Evas_Object *btn, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *layout = data;
|
||||
|
||||
|
@ -49,7 +49,8 @@ _swallow_btn_cb(void *data, Evas_Object *btn, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_size_changed_cb(void *data, Evas_Object *layout, const char *emission, const char *source)
|
||||
_size_changed_cb(void *data EINA_UNUSED, Evas_Object *layout,
|
||||
const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *edje;
|
||||
Evas_Coord w, h;
|
||||
|
@ -75,7 +76,7 @@ _button_create(Evas_Object *parent, const char *label)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *btn, *layout, *tbl_items[6];
|
||||
const char *labels[] = {"One", "Two", "Three", "Four", "Five", "Six"};
|
||||
|
|
|
@ -8,7 +8,7 @@ static void _colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_i
|
|||
static void _colorpalette_longpressed_cb(void *data, Evas_Object *obj, void *event_info);
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *cs, *rect, *bx, *fr;
|
||||
|
||||
|
@ -62,7 +62,7 @@ elm_main(int argc, char **argv)
|
|||
ELM_MAIN()
|
||||
|
||||
static void
|
||||
_change_color(void *data, Evas_Object *obj, void *event_info)
|
||||
_change_color(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
int r, g, b, a;
|
||||
elm_colorselector_color_get(obj, &r, &g, &b, &a);
|
||||
|
@ -72,7 +72,8 @@ _change_color(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_colorpalette_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
int r = 0, g = 0, b = 0 ,a = 0;
|
||||
Elm_Object_Item *color_it = (Elm_Object_Item *) event_info;
|
||||
|
@ -83,7 +84,8 @@ _colorpalette_clicked_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_colorpalette_longpressed_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_colorpalette_longpressed_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
int r = 0,g = 0,b = 0 ,a = 0;
|
||||
Elm_Object_Item *color_it = (Elm_Object_Item *) event_info;
|
||||
|
|
|
@ -74,7 +74,7 @@ gl_filter_get(void *data, Evas_Object *obj EINA_UNUSED, void *key)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc EINA_UNUSED, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bg;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *btn, *bx, *en;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *conform, *btn, *bx, *en;
|
||||
|
||||
|
|
|
@ -6,13 +6,15 @@
|
|||
static int list_mouse_down = 0;
|
||||
|
||||
static void
|
||||
_dismissed_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_dismissed_cb(void *data EINA_UNUSED, Evas_Object *obj,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
evas_object_del(obj);
|
||||
}
|
||||
|
||||
static void
|
||||
_ctxpopup_item_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_ctxpopup_item_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
printf("ctxpopup item selected: %s\n", elm_object_item_text_get(event_info));
|
||||
}
|
||||
|
@ -26,7 +28,7 @@ Elm_Object_Item *item_new(Evas_Object *ctxpopup, const char * label, const char
|
|||
}
|
||||
|
||||
static void
|
||||
_list_item_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_list_item_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info)
|
||||
{
|
||||
Evas_Object *ctxpopup;
|
||||
Elm_Object_Item *it;
|
||||
|
@ -54,7 +56,7 @@ _list_item_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_list_item_cb2(void *data, Evas_Object *obj, void *event_info)
|
||||
_list_item_cb2(void *data EINA_UNUSED, Evas_Object *obj, void *event_info)
|
||||
{
|
||||
Evas_Object *ctxpopup;
|
||||
Elm_Object_Item *it;
|
||||
|
@ -100,7 +102,7 @@ _win_del(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *list;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char *argv[])
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *datetime;
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
/* Callback function when a day is clicked. */
|
||||
static void _changed_cb(void* data, Evas_Object* obj, void* event_info)
|
||||
static void _changed_cb(void *data EINA_UNUSED, Evas_Object *obj,
|
||||
void *event_info)
|
||||
{
|
||||
char buf[256];
|
||||
Elm_Dayselector_Day day;
|
||||
|
@ -38,7 +39,7 @@ static void _changed_cb(void* data, Evas_Object* obj, void* event_info)
|
|||
/* End of clicked callback */
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *dayselector;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *ds;
|
||||
unsigned int i;
|
||||
|
|
|
@ -22,7 +22,7 @@ _ds_selected_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
|||
}
|
||||
|
||||
static void
|
||||
_add_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_add_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *ds_it;
|
||||
Evas_Object *ds = data;
|
||||
|
@ -34,7 +34,8 @@ _add_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_add_ic_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_add_ic_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *ds_it;
|
||||
Evas_Object *ic, *ds = data;
|
||||
|
@ -49,14 +50,15 @@ _add_ic_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_sel_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_sel_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
Elm_Object_Item *ds_it = event_info;
|
||||
printf("Selected label: %s\n", elm_object_item_text_get(ds_it));
|
||||
}
|
||||
|
||||
static void
|
||||
_add_func_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_add_func_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *ds_it;
|
||||
Evas_Object *ds = data;
|
||||
|
@ -68,7 +70,7 @@ _add_func_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_sel_data_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_sel_data_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
char *content = data;
|
||||
Elm_Object_Item *ds_it = event_info;
|
||||
|
@ -77,13 +79,15 @@ _sel_data_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_free_data(void *data, Evas_Object *obj, void *event_info)
|
||||
_free_data(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
free(data);
|
||||
}
|
||||
|
||||
static void
|
||||
_add_data_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_add_data_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *ds_it;
|
||||
Evas_Object *ds = data;
|
||||
|
@ -102,7 +106,7 @@ _add_data_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_del_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_ds_it;
|
||||
Evas_Object *ds = data;
|
||||
|
@ -112,7 +116,7 @@ _del_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_unselect_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_unselect_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_ds_it;
|
||||
Evas_Object *ds = data;
|
||||
|
@ -122,7 +126,7 @@ _unselect_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_print_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_print_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
const Eina_List *l, *items;
|
||||
Elm_Object_Item *ds_it;
|
||||
|
@ -134,14 +138,14 @@ _print_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_clear_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_clear_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *ds = data;
|
||||
elm_diskselector_clear(ds);
|
||||
}
|
||||
|
||||
static void
|
||||
_select_first_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_select_first_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *first_ds_it;
|
||||
Evas_Object *ds = data;
|
||||
|
@ -152,7 +156,7 @@ _select_first_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_select_last_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_select_last_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *last_ds_it;
|
||||
Evas_Object *ds = data;
|
||||
|
@ -163,7 +167,7 @@ _select_last_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_select_next_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_select_next_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_ds_it, *next_ds_it;
|
||||
Evas_Object *ds = data;
|
||||
|
@ -177,7 +181,7 @@ _select_next_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_select_prev_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_select_prev_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_ds_it, *prev_ds_it;
|
||||
Evas_Object *ds = data;
|
||||
|
@ -191,7 +195,7 @@ _select_prev_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *hbx, *ds, *bt;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ static pthread_t thread_id;
|
|||
// BEGIN - code running in my custom pthread instance
|
||||
//
|
||||
static void *
|
||||
my_thread_run(void *arg)
|
||||
my_thread_run(void *arg EINA_UNUSED)
|
||||
{
|
||||
double t = 0.0;
|
||||
|
||||
|
@ -47,13 +47,13 @@ my_thread_new(void)
|
|||
|
||||
// on window delete - cancel thread then delete window and exit mainloop
|
||||
static void
|
||||
del(void *data, Evas_Object *obj, void *event_info)
|
||||
del(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
exit(0);
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *o;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ static pthread_t thread_id;
|
|||
// BEGIN - code running in my custom pthread instance
|
||||
//
|
||||
static void *
|
||||
my_thread_run(void *arg)
|
||||
my_thread_run(void *arg EINA_UNUSED)
|
||||
{
|
||||
double t = 0.0;
|
||||
|
||||
|
@ -63,13 +63,13 @@ my_thread_mainloop_code(void *data)
|
|||
|
||||
// on window delete - cancel thread then delete window and exit mainloop
|
||||
static void
|
||||
del(void *data, Evas_Object *obj, void *event_info)
|
||||
del(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
exit(0);
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *o;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ static pthread_t thread_id;
|
|||
// BEGIN - code running in my custom pthread instance
|
||||
//
|
||||
static void *
|
||||
my_thread_run(void *arg)
|
||||
my_thread_run(void *arg EINA_UNUSED)
|
||||
{
|
||||
double t = 0.0;
|
||||
|
||||
|
@ -65,13 +65,13 @@ my_thread_mainloop_code(void *data)
|
|||
|
||||
// on window delete - cancel thread then delete window and exit mainloop
|
||||
static void
|
||||
del(void *data, Evas_Object *obj, void *event_info)
|
||||
del(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
exit(0);
|
||||
elm_exit();
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *o;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ static int th_exit = 0;
|
|||
// BEGIN - code running in my custom pthread instance
|
||||
//
|
||||
static void *
|
||||
my_thread_run(void *arg)
|
||||
my_thread_run(void *arg EINA_UNUSED)
|
||||
{
|
||||
double t = 0.0;
|
||||
|
||||
|
@ -76,7 +76,7 @@ my_thread_mainloop_code(void *data)
|
|||
|
||||
// just test cancelling the thread
|
||||
static void
|
||||
down(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
||||
down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
pthread_mutex_lock(&th_lock);
|
||||
th_exit = 1;
|
||||
|
@ -85,7 +85,7 @@ down(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
|
||||
// on window delete - cancel thread then delete window and exit mainloop
|
||||
static void
|
||||
del(void *data, Evas_Object *obj, void *event_info)
|
||||
del(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
pthread_mutex_lock(&th_lock);
|
||||
th_exit = 1;
|
||||
|
@ -95,7 +95,7 @@ del(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *o;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ struct info
|
|||
// BEGIN - code running in my custom thread instance
|
||||
//
|
||||
static void
|
||||
th_do(void *data, Ecore_Thread *th)
|
||||
th_do(void *data EINA_UNUSED, Ecore_Thread *th)
|
||||
{
|
||||
double t = 0.0;
|
||||
|
||||
|
@ -44,7 +44,7 @@ th_do(void *data, Ecore_Thread *th)
|
|||
// END - code running in my custom thread instance
|
||||
|
||||
static void // when mainloop gets feedback from worker
|
||||
th_feedback(void *data, Ecore_Thread *th, void *msg)
|
||||
th_feedback(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED, void *msg)
|
||||
{
|
||||
struct info *inf = msg;
|
||||
evas_object_move(rect, inf->x - 50, inf->y - 50);
|
||||
|
@ -52,13 +52,13 @@ th_feedback(void *data, Ecore_Thread *th, void *msg)
|
|||
}
|
||||
|
||||
// BONUS (optional): called after th_do returns and has NOT been cancelled
|
||||
static void th_end(void *data, Ecore_Thread *th) { printf("thread ended\n"); }
|
||||
static void th_end(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED) { printf("thread ended\n"); }
|
||||
// BONUS (optional): called in mainloop AFTER thread has finished cancelling
|
||||
static void th_cancel(void *data, Ecore_Thread *th) { printf("thread cancelled\n"); }
|
||||
static void th_cancel(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED) { printf("thread cancelled\n"); }
|
||||
|
||||
// just test cancelling the thread worker
|
||||
static void
|
||||
down(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
||||
down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (thr) ecore_thread_cancel(thr);
|
||||
thr = NULL;
|
||||
|
@ -66,7 +66,7 @@ down(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
|
||||
// on window delete - cancel thread then delete window and exit mainloop
|
||||
static void
|
||||
del(void *data, Evas_Object *obj, void *event_info)
|
||||
del(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (thr) ecore_thread_cancel(thr);
|
||||
thr = NULL;
|
||||
|
@ -75,7 +75,7 @@ del(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *o;
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ th_end(void *data, Ecore_Thread *th)
|
|||
}
|
||||
|
||||
static void // if the thread is cancelled - free pix, keep obj tho
|
||||
th_cancel(void *data, Ecore_Thread *th)
|
||||
th_cancel(void *data, Ecore_Thread *th EINA_UNUSED)
|
||||
{
|
||||
struct info *inf = data;
|
||||
|
||||
|
@ -122,7 +122,7 @@ anim(void *data)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *o;
|
||||
Ecore_Thread *th;
|
||||
|
|
|
@ -33,7 +33,7 @@ _edit_buffer_insert(Evas_Object *e, const char *text)
|
|||
}
|
||||
|
||||
static void
|
||||
_it_sel_cb(void *data, Evas_Object *obj, void *event)
|
||||
_it_sel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event)
|
||||
{
|
||||
App_Inwin_Data *aid = data;
|
||||
Elm_Object_Item *gg_it = event;
|
||||
|
@ -44,7 +44,8 @@ _it_sel_cb(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static char *
|
||||
_emo_label_get(void *data, Evas_Object *obj, const char *part)
|
||||
_emo_label_get(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
const char *part EINA_UNUSED)
|
||||
{
|
||||
return strdup(data);
|
||||
}
|
||||
|
@ -66,7 +67,7 @@ _emo_content_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static void
|
||||
_emo_del(void *data, Evas_Object *obj)
|
||||
_emo_del(void *data, Evas_Object *obj EINA_UNUSED)
|
||||
{
|
||||
free(data);
|
||||
}
|
||||
|
@ -111,7 +112,7 @@ _page_grid_add(Evas_Object *parent, App_Inwin_Data *aid)
|
|||
}
|
||||
|
||||
static void
|
||||
_btn_insert_cb(void *data, Evas_Object *obj, void *event)
|
||||
_btn_insert_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
|
||||
{
|
||||
App_Inwin_Data *aid = data;
|
||||
const char *size[] = {
|
||||
|
@ -134,7 +135,7 @@ _btn_insert_cb(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_width_changed_cb(void *data, Evas_Object *obj, void *event)
|
||||
_width_changed_cb(void *data, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
App_Inwin_Data *aid = data;
|
||||
|
||||
|
@ -142,7 +143,7 @@ _width_changed_cb(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_height_changed_cb(void *data, Evas_Object *obj, void *event)
|
||||
_height_changed_cb(void *data, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
App_Inwin_Data *aid = data;
|
||||
|
||||
|
@ -292,7 +293,8 @@ _page_settings_add(Evas_Object *parent, App_Inwin_Data *aid)
|
|||
}
|
||||
|
||||
static void
|
||||
_insert_cancel_cb(void *data, Evas_Object *obj, void *event)
|
||||
_insert_cancel_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event EINA_UNUSED)
|
||||
{
|
||||
App_Inwin_Data *aid = data;
|
||||
|
||||
|
@ -300,13 +302,15 @@ _insert_cancel_cb(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_inwin_del_cb(void *data, Evas *e, Evas_Object *obj, void *event)
|
||||
_inwin_del_cb(void *data, Evas *e EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
|
||||
{
|
||||
free(data);
|
||||
}
|
||||
|
||||
static void
|
||||
_image_insert_cb(void *data, Evas_Object *obj, void *event)
|
||||
_image_insert_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event EINA_UNUSED)
|
||||
{
|
||||
App_Data *ad = data;
|
||||
App_Inwin_Data *aid;
|
||||
|
@ -372,7 +376,7 @@ _image_insert_cb(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_format_change_cb(void *data, Evas_Object *obj, void *event)
|
||||
_format_change_cb(void *data, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
App_Data *ad = data;
|
||||
char fmt_open[5], fmt_close[6];
|
||||
|
@ -433,7 +437,7 @@ all_done:
|
|||
}
|
||||
|
||||
static void
|
||||
_autosave_change_cb(void *data, Evas_Object *obj, void *event)
|
||||
_autosave_change_cb(void *data, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
App_Data *ad = data;
|
||||
Eina_Bool state = elm_check_state_get(obj);
|
||||
|
@ -443,7 +447,8 @@ _autosave_change_cb(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_edit_dblclick_cb(void *data, Evas_Object *obj, void *event)
|
||||
_edit_dblclick_cb(void *data EINA_UNUSED, Evas_Object *obj,
|
||||
void *event EINA_UNUSED)
|
||||
{
|
||||
int current_cursor;
|
||||
|
||||
|
@ -478,7 +483,8 @@ _edit_dblclick_cb(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_edit_tplclick_cb(void *data, Evas_Object *obj, void *event)
|
||||
_edit_tplclick_cb(void *data EINA_UNUSED, Evas_Object *obj,
|
||||
void *event EINA_UNUSED)
|
||||
{
|
||||
elm_entry_cursor_line_begin_set(obj);
|
||||
elm_entry_cursor_selection_begin(obj);
|
||||
|
@ -487,7 +493,7 @@ _edit_tplclick_cb(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char *argv[])
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *box, *tb, *en, *o, *icon;
|
||||
App_Data app;
|
||||
|
|
|
@ -483,25 +483,25 @@ zoom_factor_set(double new_zoom_factor)
|
|||
}
|
||||
|
||||
static void
|
||||
zoom_in_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
zoom_in_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
zoom_factor_set(zoom_factor + 1);
|
||||
}
|
||||
|
||||
static void
|
||||
zoom_out_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
zoom_out_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
zoom_factor_set(zoom_factor - 1);
|
||||
}
|
||||
|
||||
static void
|
||||
zoom_to_2d_map_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
zoom_to_2d_map_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
double s, t;
|
||||
double lon, lat;
|
||||
|
@ -524,9 +524,9 @@ zoom_to_2d_map_cb(void *data,
|
|||
}
|
||||
|
||||
static void
|
||||
zoom_to_3d_map_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
zoom_to_3d_map_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (map_dimension_state == MAP_DIMENSION_STATE_3D) return;
|
||||
|
||||
|
@ -578,9 +578,9 @@ submenu_info_add(Elm_Object_Item *parent)
|
|||
}
|
||||
|
||||
static void
|
||||
map_zoom_change_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
map_zoom_change_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
int cur_zoom_factor;
|
||||
|
||||
|
@ -595,8 +595,8 @@ map_zoom_change_cb(void *data,
|
|||
}
|
||||
|
||||
static void
|
||||
map_mouse_down_cb(void *data,
|
||||
Evas *e,
|
||||
map_mouse_down_cb(void *data EINA_UNUSED,
|
||||
Evas *e EINA_UNUSED,
|
||||
Evas_Object *o,
|
||||
void *event_info)
|
||||
{
|
||||
|
@ -658,8 +658,8 @@ map_mouse_down_cb(void *data,
|
|||
}
|
||||
|
||||
static void
|
||||
mouse_down_cb(void *data,
|
||||
Evas *e,
|
||||
mouse_down_cb(void *data EINA_UNUSED,
|
||||
Evas *e EINA_UNUSED,
|
||||
Evas_Object *o,
|
||||
void *event_info)
|
||||
{
|
||||
|
@ -730,9 +730,9 @@ mouse_down_cb(void *data,
|
|||
}
|
||||
|
||||
static void
|
||||
mouse_move_cb(void *data,
|
||||
Evas *e,
|
||||
Evas_Object *o,
|
||||
mouse_move_cb(void *data EINA_UNUSED,
|
||||
Evas *e EINA_UNUSED,
|
||||
Evas_Object *o EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
Evas_Event_Mouse_Move *ev = event_info;
|
||||
|
@ -771,8 +771,8 @@ mouse_move_cb(void *data,
|
|||
}
|
||||
|
||||
static void
|
||||
mouse_up_cb(void *data,
|
||||
Evas *e,
|
||||
mouse_up_cb(void *data EINA_UNUSED,
|
||||
Evas *e EINA_UNUSED,
|
||||
Evas_Object *o,
|
||||
void *event_info)
|
||||
{
|
||||
|
@ -822,9 +822,9 @@ mouse_up_cb(void *data,
|
|||
}
|
||||
|
||||
static void
|
||||
mouse_wheel_cb(void *data,
|
||||
Evas *e,
|
||||
Evas_Object *o,
|
||||
mouse_wheel_cb(void *data EINA_UNUSED,
|
||||
Evas *e EINA_UNUSED,
|
||||
Evas_Object *o EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
Evas_Event_Mouse_Wheel *ev = event_info;
|
||||
|
@ -1009,8 +1009,8 @@ mesh_setup(void)
|
|||
|
||||
static void
|
||||
hoversel_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
elm_map_source_set(map, ELM_MAP_SOURCE_TYPE_TILE, (char *)data);
|
||||
zoom_factor_set(zoom_factor);
|
||||
|
@ -1032,9 +1032,9 @@ hoversel_setup(Evas_Object *parent)
|
|||
}
|
||||
|
||||
static void
|
||||
rotation_toggle_changed_cb(void *data,
|
||||
rotation_toggle_changed_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
/* Stop rotating earth. */
|
||||
if (animator)
|
||||
|
@ -1067,9 +1067,9 @@ rotation_toggle_setup(Evas_Object *parent)
|
|||
}
|
||||
|
||||
static void
|
||||
light_toggle_changed_cb(void *data,
|
||||
light_toggle_changed_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (elm_check_state_get(obj))
|
||||
{
|
||||
|
@ -1104,9 +1104,9 @@ light_toggle_setup(Evas_Object *parent)
|
|||
|
||||
|
||||
static void
|
||||
slider_changed_cb(void *data,
|
||||
slider_changed_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
double new_zoom_factor = ROUND(elm_slider_value_get(obj));
|
||||
|
||||
|
@ -1133,7 +1133,7 @@ zoom_slider_setup(Evas_Object *parent)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
|
||||
|
|
|
@ -244,7 +244,7 @@ _scene_setup(Scene_Data *data)
|
|||
}
|
||||
|
||||
int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Scene_Data data;
|
||||
|
||||
|
|
|
@ -231,8 +231,8 @@ _play_scene(void *data,
|
|||
evas_canvas3d_node_scale_set(d->mesh_node, 1.0, 1.0, 1.0);
|
||||
}
|
||||
|
||||
int
|
||||
elm_main(int argc, char **argv)
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Scene_Data data;
|
||||
|
||||
|
|
|
@ -72,8 +72,9 @@ _promise_then(void *data, const Efl_Event *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_promise_error(void *data, const Efl_Event* err)
|
||||
_promise_error(void *data EINA_UNUSED, const Efl_Event* err EINA_UNUSED)
|
||||
{
|
||||
printf("Promise error!\n");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -125,7 +126,7 @@ _thumb_error_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UN
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Efl_Model_Test_Filemvc_Data priv;
|
||||
Evas_Object *win, *panes, *bxr, *genlist, *vpanes;
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
static void /* hook on the sole smart callback */
|
||||
_file_chosen(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
_file_chosen(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
Evas_Object *entry = data;
|
||||
const char *file = event_info;
|
||||
|
@ -29,9 +27,8 @@ _file_chosen(void *data,
|
|||
|
||||
/* toggle inwin mode */
|
||||
static void
|
||||
_inwin_mode_toggle(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
_inwin_mode_toggle(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs_bt = data;
|
||||
Eina_Bool old_val = elm_fileselector_button_inwin_mode_get(fs_bt);
|
||||
|
@ -41,9 +38,8 @@ _inwin_mode_toggle(void *data,
|
|||
}
|
||||
|
||||
static void
|
||||
_current_sel_toggle(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
_current_sel_toggle(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs_bt = data;
|
||||
Eina_Bool old_val = elm_fileselector_is_save_get(fs_bt);
|
||||
|
@ -55,8 +51,8 @@ _current_sel_toggle(void *data,
|
|||
|
||||
static void
|
||||
_folder_only_toggle(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs_bt = data;
|
||||
Eina_Bool old_val = elm_fileselector_folder_only_get(fs_bt);
|
||||
|
@ -66,9 +62,8 @@ _folder_only_toggle(void *data,
|
|||
}
|
||||
|
||||
static void
|
||||
_expandable_toggle(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
_expandable_toggle(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs_bt = data;
|
||||
Eina_Bool old_val = elm_fileselector_expandable_get(fs_bt);
|
||||
|
@ -78,8 +73,7 @@ _expandable_toggle(void *data,
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc,
|
||||
char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *vbox, *hbox, *ic, *ck, *fs_bt, *en, *lb, *sep;
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
/* hook on the file,chosen smart callback */
|
||||
static void
|
||||
_file_chosen(void *data,
|
||||
Evas_Object *obj,
|
||||
_file_chosen(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
const char *file = event_info;
|
||||
|
@ -28,8 +28,8 @@ _file_chosen(void *data,
|
|||
/* toggle inwin mode */
|
||||
static void
|
||||
_inwin_mode_toggle(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs_entry = data;
|
||||
Eina_Bool old_val = elm_fileselector_entry_inwin_mode_get(fs_entry);
|
||||
|
@ -40,8 +40,8 @@ _inwin_mode_toggle(void *data,
|
|||
|
||||
static void
|
||||
_current_sel_toggle(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs_entry = data;
|
||||
Eina_Bool old_val = elm_fileselector_is_save_get(fs_entry);
|
||||
|
@ -53,8 +53,8 @@ _current_sel_toggle(void *data,
|
|||
|
||||
static void
|
||||
_folder_only_toggle(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs_entry = data;
|
||||
Eina_Bool old_val = elm_fileselector_folder_only_get(fs_entry);
|
||||
|
@ -65,8 +65,8 @@ _folder_only_toggle(void *data,
|
|||
|
||||
static void
|
||||
_expandable_toggle(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs_entry = data;
|
||||
Eina_Bool old_val = elm_fileselector_expandable_get(fs_entry);
|
||||
|
@ -76,8 +76,8 @@ _expandable_toggle(void *data,
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc,
|
||||
char **argv)
|
||||
elm_main(int argc EINA_UNUSED,
|
||||
char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *vbox, *hbox, *ic, *ck, *fs_entry, *sep;
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
/* 'done' cb */
|
||||
static void
|
||||
_fs_done(void *data,
|
||||
Evas_Object *obj,
|
||||
_fs_done(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
const char *selected = event_info;
|
||||
|
@ -29,8 +29,8 @@ _fs_done(void *data,
|
|||
|
||||
/* 'selected' cb */
|
||||
static void
|
||||
_fs_selected(void *data,
|
||||
Evas_Object *obj,
|
||||
_fs_selected(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
const char *selected = event_info;
|
||||
|
@ -41,8 +41,8 @@ _fs_selected(void *data,
|
|||
|
||||
static void
|
||||
_is_save_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs = data;
|
||||
Eina_Bool old_val = elm_fileselector_is_save_get(fs);
|
||||
|
@ -55,8 +55,8 @@ _is_save_clicked(void *data,
|
|||
|
||||
static void
|
||||
_folder_only_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs = data;
|
||||
Eina_Bool old_val = elm_fileselector_folder_only_get(fs);
|
||||
|
@ -69,8 +69,8 @@ _folder_only_clicked(void *data,
|
|||
|
||||
static void
|
||||
_expandable_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs = data;
|
||||
Eina_Bool old_val = elm_fileselector_expandable_get(fs);
|
||||
|
@ -83,8 +83,8 @@ _expandable_clicked(void *data,
|
|||
|
||||
static void
|
||||
_sel_get_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs = data;
|
||||
printf("Current selection is: %s\n", elm_fileselector_selected_get(fs));
|
||||
|
@ -92,8 +92,8 @@ _sel_get_clicked(void *data,
|
|||
|
||||
static void
|
||||
_path_get_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *fs = data;
|
||||
printf("Current selection's directory path is: %s\n",
|
||||
|
@ -101,8 +101,8 @@ _path_get_clicked(void *data,
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc,
|
||||
char **argv)
|
||||
elm_main(int argc EINA_UNUSED,
|
||||
char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *fs, *vbox, *buttons_bx, *bt, *sep, *bx;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ _cleanup_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Efl_Model_Test_Fileview_Data priv;
|
||||
Evas_Object *win = NULL;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
static void _change_interaction(void *data, Evas_Object *obj, void *event_info);
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *rect, *rect2, *flip, *radio, *radio2, *radio3;
|
||||
|
||||
|
@ -78,7 +78,7 @@ elm_main(int argc, char **argv)
|
|||
ELM_MAIN()
|
||||
|
||||
static void
|
||||
_change_interaction(void *data, Evas_Object *obj, void *event_info)
|
||||
_change_interaction(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
elm_flip_interaction_set(data, elm_radio_state_value_get(obj));
|
||||
elm_flip_go(data, ELM_FLIP_ROTATE_XZ_CENTER_AXIS);
|
||||
|
|
|
@ -22,8 +22,8 @@ static const char *commands = \
|
|||
|
||||
void /* unselect the item shown in the flip selector */
|
||||
_unsel_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *it;
|
||||
Evas_Object *fp = data;
|
||||
|
@ -34,8 +34,8 @@ _unsel_cb(void *data,
|
|||
|
||||
void /* delete the item shown in the flip selector */
|
||||
_del_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *it;
|
||||
Evas_Object *fp = data;
|
||||
|
@ -45,25 +45,25 @@ _del_cb(void *data,
|
|||
}
|
||||
|
||||
void /* underflow callback */
|
||||
_underflow_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
_underflow_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
fprintf(stdout, "Underflow!\n");
|
||||
}
|
||||
|
||||
void /* overflow callback */
|
||||
_overflow_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
_overflow_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
fprintf(stdout, "Overflow!\n");
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
_on_keydown(void *data,
|
||||
Evas_Object *object,
|
||||
Evas_Object *src,
|
||||
Evas_Object *object EINA_UNUSED,
|
||||
Evas_Object *src EINA_UNUSED,
|
||||
Evas_Callback_Type type,
|
||||
void *event_info)
|
||||
{
|
||||
|
@ -123,7 +123,7 @@ _on_keydown(void *data,
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
unsigned int i;
|
||||
Evas_Object *win, *bx, *fp, *bt;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win;
|
||||
Evas_Object *f1, *r1, *f2, *r2, *f3, *r3, *f4, *r4;
|
||||
|
|
|
@ -21,51 +21,51 @@ struct test_data
|
|||
struct test_data d = {NULL, EINA_TRUE, EINA_TRUE};
|
||||
|
||||
static void
|
||||
_btn_enabled_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event)
|
||||
_btn_enabled_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event EINA_UNUSED)
|
||||
{
|
||||
elm_object_disabled_set(d.btn, !d.btn_enabled);
|
||||
}
|
||||
|
||||
static void
|
||||
/* focus callback */
|
||||
_btn_focus_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event)
|
||||
_btn_focus_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event EINA_UNUSED)
|
||||
{
|
||||
elm_object_focus_set(d.btn, EINA_TRUE);
|
||||
}
|
||||
|
||||
static void
|
||||
/* unfocus callback */
|
||||
_btn_unfocus_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event)
|
||||
_btn_unfocus_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event EINA_UNUSED)
|
||||
{
|
||||
elm_object_focus_set(d.btn, EINA_FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
/* focus allow callback */
|
||||
_btn_focus_allow_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event)
|
||||
_btn_focus_allow_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event EINA_UNUSED)
|
||||
{
|
||||
elm_object_focus_allow_set(d.btn, d.btn_gets_focus);
|
||||
}
|
||||
|
||||
static void /* scaling callback */
|
||||
_btn_scale_cb(void *data,
|
||||
_btn_scale_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj,
|
||||
void *event)
|
||||
void *event EINA_UNUSED)
|
||||
{
|
||||
elm_object_scale_set(d.btn, elm_slider_value_get(obj));
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc,
|
||||
char **argv)
|
||||
elm_main(int argc EINA_UNUSED,
|
||||
char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *box, *frame, *check, *b, *slider;
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ static Evas_Object *before_bt, *after_bt;
|
|||
static void
|
||||
_horizontal_grid(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *grid = data;
|
||||
|
||||
|
@ -47,7 +47,7 @@ _horizontal_grid(void *data,
|
|||
static void
|
||||
_always_select_change(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *grid = data;
|
||||
Eina_Bool always = elm_check_state_get(obj);
|
||||
|
@ -65,7 +65,7 @@ _always_select_change(void *data,
|
|||
static void
|
||||
_bouncing_change(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *grid = data;
|
||||
Eina_Bool bounce = elm_check_state_get(obj);
|
||||
|
@ -80,7 +80,7 @@ _bouncing_change(void *data,
|
|||
static void
|
||||
_multi_change(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *grid = data;
|
||||
Eina_Bool multi = elm_check_state_get(obj);
|
||||
|
@ -106,7 +106,7 @@ _multi_change(void *data,
|
|||
static void
|
||||
_no_sel_change(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *grid = data;
|
||||
Eina_Bool no_sel = elm_check_state_get(obj);
|
||||
|
@ -123,7 +123,7 @@ _no_sel_change(void *data,
|
|||
/* item selection callback */
|
||||
static void
|
||||
_grid_sel(void *data,
|
||||
Evas_Object *obj,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
unsigned int x, y;
|
||||
|
@ -150,8 +150,8 @@ _item_new(void)
|
|||
/* "insert before" callback */
|
||||
static void
|
||||
_before_bt_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Example_Item *it;
|
||||
Evas_Object *grid = data;
|
||||
|
@ -168,8 +168,8 @@ _before_bt_clicked(void *data,
|
|||
/* "insert after" callback */
|
||||
static void
|
||||
_after_bt_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Example_Item *it;
|
||||
Evas_Object *grid = data;
|
||||
|
@ -186,8 +186,8 @@ _after_bt_clicked(void *data,
|
|||
/* prepend an item */
|
||||
static void
|
||||
_prepend_bt_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Example_Item *it;
|
||||
Evas_Object *grid = data;
|
||||
|
@ -199,8 +199,8 @@ _prepend_bt_clicked(void *data,
|
|||
/* append an item */
|
||||
static void
|
||||
_append_bt_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *grid = data;
|
||||
Example_Item *it = _item_new();
|
||||
|
@ -211,8 +211,8 @@ _append_bt_clicked(void *data,
|
|||
/* delete items */
|
||||
static void
|
||||
_clear_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
elm_gengrid_clear(data);
|
||||
|
||||
|
@ -222,8 +222,8 @@ _clear_cb(void *data,
|
|||
/* bring in 1st item */
|
||||
static void
|
||||
_bring_1st_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *gg_it = elm_gengrid_first_item_get(data);
|
||||
|
||||
|
@ -235,8 +235,8 @@ _bring_1st_clicked(void *data,
|
|||
/* show last item */
|
||||
static void
|
||||
_show_last_clicked(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *gg_it = elm_gengrid_last_item_get(data);
|
||||
|
||||
|
@ -248,8 +248,8 @@ _show_last_clicked(void *data,
|
|||
/* disable selected item */
|
||||
static void
|
||||
_toggle_disabled_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *gg_it = elm_gengrid_selected_item_get(data);
|
||||
|
||||
|
@ -263,7 +263,7 @@ _toggle_disabled_cb(void *data,
|
|||
static void
|
||||
_size_changed(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *grid = data;
|
||||
int size = elm_spinner_value_get(obj);
|
||||
|
@ -273,8 +273,8 @@ _size_changed(void *data,
|
|||
|
||||
/* item double click callback */
|
||||
static void
|
||||
_double_click(void *data,
|
||||
Evas_Object *obj,
|
||||
_double_click(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
fprintf(stdout, "Double click on item with handle %p\n", event_info);
|
||||
|
@ -282,8 +282,8 @@ _double_click(void *data,
|
|||
|
||||
/* item long press callback */
|
||||
static void
|
||||
_long_pressed(void *data,
|
||||
Evas_Object *obj,
|
||||
_long_pressed(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
fprintf(stdout, "Long press on item with handle %p\n", event_info);
|
||||
|
@ -292,8 +292,8 @@ _long_pressed(void *data,
|
|||
/* label fetching callback */
|
||||
static char *
|
||||
_grid_label_get(void *data,
|
||||
Evas_Object *obj,
|
||||
const char *part)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
const char *part EINA_UNUSED)
|
||||
{
|
||||
const Example_Item *it = data;
|
||||
char buf[256];
|
||||
|
@ -338,9 +338,9 @@ _grid_content_get(void *data,
|
|||
|
||||
/* state fetching callback */
|
||||
static Eina_Bool
|
||||
_grid_state_get(void *data,
|
||||
Evas_Object *obj,
|
||||
const char *part)
|
||||
_grid_state_get(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
const char *part EINA_UNUSED)
|
||||
{
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
@ -348,7 +348,7 @@ _grid_state_get(void *data,
|
|||
/* deletion callback */
|
||||
static void
|
||||
_grid_del(void *data,
|
||||
Evas_Object *obj)
|
||||
Evas_Object *obj EINA_UNUSED)
|
||||
{
|
||||
Example_Item *it = data;
|
||||
|
||||
|
@ -358,9 +358,9 @@ _grid_del(void *data,
|
|||
|
||||
/* scrolling animation stopped callback */
|
||||
static void
|
||||
_grid_scroll_stopped_cb(void *data,
|
||||
_grid_scroll_stopped_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
int h_pagenumber = 0, v_pagenumber = 0;
|
||||
elm_scroller_current_page_get(obj, &h_pagenumber, &v_pagenumber);
|
||||
|
@ -372,7 +372,7 @@ _grid_scroll_stopped_cb(void *data,
|
|||
static void
|
||||
_h_align_change_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
double v_align;
|
||||
double val = elm_slider_value_get(obj);
|
||||
|
@ -386,7 +386,7 @@ _h_align_change_cb(void *data,
|
|||
static void
|
||||
_v_align_change_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
double h_align;
|
||||
double val = elm_slider_value_get(obj);
|
||||
|
@ -401,7 +401,7 @@ _v_align_change_cb(void *data,
|
|||
static void
|
||||
_page_change_cb(void *data,
|
||||
Evas_Object *obj,
|
||||
void *event_info)
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
double val = elm_slider_value_get(obj);
|
||||
|
||||
|
@ -411,8 +411,8 @@ _page_change_cb(void *data,
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc,
|
||||
char **argv)
|
||||
elm_main(int argc EINA_UNUSED,
|
||||
char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *grid, *bx, *hbx_1, *hbx_2, *hbx_3, *bt, *ck, *sl, *sp;
|
||||
Eina_Bool bounce;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
static Elm_Genlist_Item_Class *_itc = NULL;
|
||||
|
||||
static char *
|
||||
_item_label_get(void *data, Evas_Object *obj, const char *part)
|
||||
_item_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED)
|
||||
{
|
||||
char buf[256];
|
||||
snprintf(buf, sizeof(buf), "Item # %i", (int)(long)data);
|
||||
|
@ -16,7 +16,7 @@ _item_label_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static Evas_Object *
|
||||
_item_content_get(void *data, Evas_Object *obj, const char *part)
|
||||
_item_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part)
|
||||
{
|
||||
Evas_Object *ic = elm_icon_add(obj);
|
||||
|
||||
|
@ -35,7 +35,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win;
|
||||
Evas_Object *list;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
static Elm_Genlist_Item_Class *_itc = NULL;
|
||||
|
||||
static char *
|
||||
_item_label_get(void *data, Evas_Object *obj, const char *part)
|
||||
_item_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED)
|
||||
{
|
||||
time_t t = (time_t)ecore_time_unix_get();
|
||||
char buf[256];
|
||||
|
@ -27,7 +27,7 @@ _item_label_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static Evas_Object *
|
||||
_item_content_get(void *data, Evas_Object *obj, const char *part)
|
||||
_item_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part)
|
||||
{
|
||||
Evas_Object *ic = elm_icon_add(obj);
|
||||
|
||||
|
@ -46,7 +46,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_show_status_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_show_status_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
Evas_Coord x, y, w, h, mx, my;
|
||||
|
@ -79,14 +79,14 @@ _show_status_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_realize_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_realize_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
elm_genlist_realized_items_update(list);
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *box, *hbox;
|
||||
Evas_Object *list, *btn;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
static Elm_Genlist_Item_Class *_itc = NULL;
|
||||
|
||||
static char *
|
||||
_item_label_get(void *data, Evas_Object *obj, const char *part)
|
||||
_item_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part)
|
||||
{
|
||||
time_t t = (time_t)ecore_time_unix_get();
|
||||
char buf[256];
|
||||
|
@ -28,7 +28,7 @@ _item_label_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static Evas_Object *
|
||||
_item_content_get(void *data, Evas_Object *obj, const char *part)
|
||||
_item_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part)
|
||||
{
|
||||
Evas_Object *ic = elm_icon_add(obj);
|
||||
|
||||
|
@ -72,7 +72,7 @@ _genlist_fill(Evas_Object *list)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *box;
|
||||
Evas_Object *list;
|
||||
|
|
|
@ -10,7 +10,7 @@ static Elm_Genlist_Item_Class *_itc_group = NULL;
|
|||
static int nitems = 0;
|
||||
|
||||
static char *
|
||||
_item_label_get(void *data, Evas_Object *obj, const char *part)
|
||||
_item_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part)
|
||||
{
|
||||
time_t t = (time_t)ecore_time_unix_get();
|
||||
char buf[256];
|
||||
|
@ -30,7 +30,7 @@ _item_label_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static Evas_Object *
|
||||
_item_content_get(void *data, Evas_Object *obj, const char *part)
|
||||
_item_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part)
|
||||
{
|
||||
Evas_Object *ic = elm_icon_add(obj);
|
||||
|
||||
|
@ -49,7 +49,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static char *
|
||||
_group_label_get(void *data, Evas_Object *obj, const char *part)
|
||||
_group_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED)
|
||||
{
|
||||
char buf[256];
|
||||
int i = (int)(long)data;
|
||||
|
@ -60,7 +60,7 @@ _group_label_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static Evas_Object *
|
||||
_group_content_get(void *data, Evas_Object *obj, const char *part)
|
||||
_group_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part)
|
||||
{
|
||||
Evas_Object *ic = elm_icon_add(obj);
|
||||
|
||||
|
@ -72,7 +72,7 @@ _group_content_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static void
|
||||
_append_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_append_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
|
||||
|
@ -84,7 +84,7 @@ _append_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_prepend_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_prepend_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
|
||||
|
@ -96,7 +96,7 @@ _prepend_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_insert_before_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_insert_before_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
|
||||
|
@ -111,7 +111,7 @@ _insert_before_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_insert_after_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_insert_after_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
|
||||
|
@ -126,7 +126,7 @@ _insert_after_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_next_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_next_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
|
||||
|
@ -139,7 +139,7 @@ _next_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_prev_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_prev_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
|
||||
|
@ -152,7 +152,7 @@ _prev_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_bring_in_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_bring_in_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *glit = data;
|
||||
if (!glit) return;
|
||||
|
@ -161,7 +161,7 @@ _bring_in_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_show_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_show_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *glit = data;
|
||||
if (!glit) return;
|
||||
|
@ -170,7 +170,7 @@ _show_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_middle_in_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_middle_in_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *glit = data;
|
||||
if (!glit) return;
|
||||
|
@ -179,7 +179,7 @@ _middle_in_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_middle_show_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_middle_show_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *glit = data;
|
||||
if (!glit) return;
|
||||
|
@ -188,7 +188,7 @@ _middle_show_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_top_in_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_top_in_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *glit = data;
|
||||
if (!glit) return;
|
||||
|
@ -197,7 +197,7 @@ _top_in_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_top_show_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_top_show_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *glit = data;
|
||||
if (!glit) return;
|
||||
|
@ -206,7 +206,7 @@ _top_show_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_realize_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_realize_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
|
||||
|
@ -232,7 +232,7 @@ _button_add(Evas_Object *list, Evas_Object *box, const char *label, Evas_Smart_C
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *box, *fbox;
|
||||
Evas_Object *list;
|
||||
|
|
|
@ -18,7 +18,7 @@ static Elm_Genlist_Item_Class *_itfav = NULL;
|
|||
static int nitems = 0;
|
||||
|
||||
static char *
|
||||
_item_label_get(void *data, Evas_Object *obj, const char *part)
|
||||
_item_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part)
|
||||
{
|
||||
char buf[256] = {0};
|
||||
Node_Data *d = data;
|
||||
|
@ -30,7 +30,7 @@ _item_label_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static Evas_Object *
|
||||
_item_content_get(void *data, Evas_Object *obj, const char *part)
|
||||
_item_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part)
|
||||
{
|
||||
Evas_Object *ic = elm_icon_add(obj);
|
||||
|
||||
|
@ -49,7 +49,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static char *
|
||||
_parent_label_get(void *data, Evas_Object *obj, const char *part)
|
||||
_parent_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part EINA_UNUSED)
|
||||
{
|
||||
char buf[256];
|
||||
Node_Data *d = data;
|
||||
|
@ -61,7 +61,7 @@ _parent_label_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static Evas_Object *
|
||||
_parent_content_get(void *data, Evas_Object *obj, const char *part)
|
||||
_parent_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part)
|
||||
{
|
||||
Evas_Object *ic = elm_icon_add(obj);
|
||||
|
||||
|
@ -73,7 +73,7 @@ _parent_content_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static char *
|
||||
_favorite_label_get(void *data, Evas_Object *obj, const char *part)
|
||||
_favorite_label_get(void *data, Evas_Object *obj EINA_UNUSED, const char *part)
|
||||
{
|
||||
char buf[256] = {0};
|
||||
Node_Data *d = data;
|
||||
|
@ -85,7 +85,7 @@ _favorite_label_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static Evas_Object *
|
||||
_favorite_content_get(void *data, Evas_Object *obj, const char *part)
|
||||
_favorite_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part)
|
||||
{
|
||||
Evas_Object *ic = elm_icon_add(obj);
|
||||
|
||||
|
@ -97,7 +97,7 @@ _favorite_content_get(void *data, Evas_Object *obj, const char *part)
|
|||
}
|
||||
|
||||
static void
|
||||
_append_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_append_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
Elm_Object_Item *glit, *parent = NULL;
|
||||
|
@ -127,7 +127,7 @@ _append_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_favorite_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_favorite_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
|
||||
|
@ -150,7 +150,7 @@ _favorite_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_add_child_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_add_child_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
|
||||
|
@ -210,7 +210,7 @@ _clear_list(Node_Data *d)
|
|||
}
|
||||
|
||||
static void
|
||||
_del_item_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_del_item_cb(void *data, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *list = data;
|
||||
Elm_Object_Item *glit = elm_genlist_selected_item_get(list);
|
||||
|
@ -235,7 +235,7 @@ _del_item_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_expand_request_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_expand_request_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
|
||||
{
|
||||
Elm_Object_Item *glit = event_info;
|
||||
printf("expand request on item: %p\n", event_info);
|
||||
|
@ -243,7 +243,7 @@ _expand_request_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_contract_request_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_contract_request_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
|
||||
{
|
||||
Elm_Object_Item *glit = event_info;
|
||||
printf("contract request on item: %p\n", event_info);
|
||||
|
@ -251,7 +251,7 @@ _contract_request_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_expanded_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_expanded_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
|
||||
{
|
||||
Eina_List *l;
|
||||
Elm_Object_Item *glit = event_info;
|
||||
|
@ -282,7 +282,7 @@ _expanded_cb(void *data, Evas_Object *o, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_contracted_cb(void *data, Evas_Object *o, void *event_info)
|
||||
_contracted_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
|
||||
{
|
||||
Elm_Object_Item *glit = event_info;
|
||||
elm_genlist_item_subitems_clear(glit);
|
||||
|
@ -305,7 +305,7 @@ _button_add(Evas_Object *list, Evas_Object *box, const char *label, Evas_Smart_C
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *box, *fbox;
|
||||
Evas_Object *list;
|
||||
|
|
|
@ -224,21 +224,21 @@ _anim(void *data)
|
|||
}
|
||||
|
||||
static void
|
||||
_on_done(void *data, Evas_Object *obj, void *event_info)
|
||||
_on_done(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
evas_object_del((Evas_Object*)data);
|
||||
elm_exit();
|
||||
}
|
||||
|
||||
static void
|
||||
_del(void *data, Evas *evas, Evas_Object *obj, void *event_info)
|
||||
_del(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Ecore_Animator *ani = evas_object_data_get(obj, "ani");
|
||||
ecore_animator_del(ani);
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *bt, *gl;
|
||||
Ecore_Animator *ani;
|
||||
|
|
|
@ -4,19 +4,19 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
static void
|
||||
_show_hover(void *data, Evas_Object *obj, void *event_info)
|
||||
_show_hover(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
evas_object_show(data);
|
||||
}
|
||||
|
||||
static void
|
||||
_hide_hover(void *data, Evas_Object *obj, void *event_info)
|
||||
_hide_hover(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
evas_object_hide(data);
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bt, *bt2, *rect, *rect2, *rect3, *hover;
|
||||
|
||||
|
|
|
@ -8,14 +8,14 @@ static void _free(void *data, Evas_Object *obj, void *event_info);
|
|||
static void _add_item(void *data, Evas_Object *obj, void *event_info);
|
||||
|
||||
static void
|
||||
_clear_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_clear_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (!data) return;
|
||||
elm_hoversel_clear((Evas_Object *)data);
|
||||
}
|
||||
|
||||
static void
|
||||
_reverse_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_reverse_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (!data) return;
|
||||
elm_object_mirrored_set(data, !elm_object_mirrored_get (data));
|
||||
|
@ -25,7 +25,7 @@ _reverse_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
|
||||
Eina_Bool is_eng = EINA_TRUE;
|
||||
static void
|
||||
_arabic_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_arabic_btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (!data) return;
|
||||
is_eng = !is_eng;
|
||||
|
@ -35,7 +35,7 @@ _arabic_btn_clicked_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *rect, *hoversel, *btn = NULL;
|
||||
|
||||
|
@ -94,7 +94,7 @@ elm_main(int argc, char **argv)
|
|||
ELM_MAIN()
|
||||
|
||||
static void
|
||||
_print_items(void *data, Evas_Object *obj, void *event_info)
|
||||
_print_items(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
const Eina_List *items = elm_hoversel_items_get(obj);
|
||||
const Eina_List *l;
|
||||
|
@ -105,7 +105,7 @@ _print_items(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_add_item(void *data, Evas_Object *obj, void *event_info)
|
||||
_add_item(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
static int num = 0;
|
||||
char *str = malloc(sizeof(char) * 11);
|
||||
|
@ -122,7 +122,7 @@ _add_item(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_free(void *data, Evas_Object *obj, void *event_info)
|
||||
_free(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
free(data);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <Elementary.hh>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main (int argc, char *argv[])
|
||||
elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *icon;
|
||||
const char *path, *group, *name;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *image;
|
||||
char buf[PATH_MAX];
|
||||
|
|
|
@ -18,7 +18,7 @@ static const char *dict[] = \
|
|||
};
|
||||
|
||||
static void
|
||||
_index_item_del(void *data, Evas_Object *obj, void *event_info)
|
||||
_index_item_del(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
fprintf(stdout, "Deleting index node (%s). Comparing index "
|
||||
"item data reported via callback with the one returned by "
|
||||
|
@ -30,7 +30,7 @@ _index_item_del(void *data, Evas_Object *obj, void *event_info)
|
|||
|
||||
/* delete an index item */
|
||||
static void
|
||||
_item_del(void *data, Evas_Object *obj, void *event_info)
|
||||
_item_del(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *it = elm_index_selected_item_get(data, 0);
|
||||
|
||||
|
@ -45,14 +45,14 @@ _item_del(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_item_del_all(void *data, Evas_Object *obj, void *event_info)
|
||||
_item_del_all(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
elm_index_item_clear(data);
|
||||
elm_index_level_go(data, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
_active_set(void *data, Evas_Object *obj, void *event_info)
|
||||
_active_set(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Eina_Bool disabled = elm_index_autohide_disabled_get(data);
|
||||
elm_index_autohide_disabled_set(data, !disabled);
|
||||
|
@ -63,13 +63,13 @@ _active_set(void *data, Evas_Object *obj, void *event_info)
|
|||
|
||||
/* "delay,changed" hook */
|
||||
static void
|
||||
_index_changed(void *data, Evas_Object *obj, void *event_info)
|
||||
_index_changed(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
elm_list_item_bring_in(elm_object_item_data_get(event_info));
|
||||
}
|
||||
|
||||
static void
|
||||
_index_selected(void *data, Evas_Object *obj, void *event_info)
|
||||
_index_selected(void *data EINA_UNUSED, Evas_Object *obj, void *event_info)
|
||||
{
|
||||
Elm_Object_Item *lit = event_info;
|
||||
|
||||
|
@ -80,7 +80,7 @@ _index_selected(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *hbox, *vbox, *bt, *sep, *list, *id;
|
||||
Elm_Object_Item *lit;
|
||||
|
|
|
@ -24,8 +24,8 @@ static const char *items[] =
|
|||
};
|
||||
|
||||
static void
|
||||
_index_changed(void *data,
|
||||
Evas_Object *obj,
|
||||
_index_changed(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
Elm_Object_Item *item = elm_object_item_data_get(event_info);
|
||||
|
@ -34,15 +34,15 @@ _index_changed(void *data,
|
|||
|
||||
static char *
|
||||
_grid_label_get(void *data,
|
||||
Evas_Object *obj,
|
||||
const char *part)
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
const char *part EINA_UNUSED)
|
||||
{
|
||||
int idx = (int)(uintptr_t)data;
|
||||
return strdup(items[idx]);
|
||||
}
|
||||
|
||||
Evas_Object *
|
||||
_grid_content_get(void *data,
|
||||
_grid_content_get(void *data EINA_UNUSED,
|
||||
Evas_Object *obj,
|
||||
const char *part)
|
||||
{
|
||||
|
@ -80,8 +80,8 @@ _index_icmp(const void *data1,
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc,
|
||||
char **argv)
|
||||
elm_main(int argc EINA_UNUSED,
|
||||
char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *grid, *idx;
|
||||
Elm_Object_Item *gg_it;
|
||||
|
|
|
@ -12,7 +12,7 @@ static const char *styles[] = {
|
|||
static int current_style = 0;
|
||||
|
||||
static void
|
||||
_inwin_hide(void *data, Evas_Object *obj, void *event)
|
||||
_inwin_hide(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
if (inwin)
|
||||
{
|
||||
|
@ -24,7 +24,7 @@ _inwin_hide(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_inwin_destroy(void *data, Evas_Object *obj, void *event)
|
||||
_inwin_destroy(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
if (inwin)
|
||||
{
|
||||
|
@ -37,7 +37,7 @@ _inwin_destroy(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_btn_click_cb(void *data, Evas_Object *obj, void *event)
|
||||
_btn_click_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *o, *parent;
|
||||
|
||||
|
@ -85,7 +85,7 @@ _btn_click_cb(void *data, Evas_Object *obj, void *event)
|
|||
}
|
||||
|
||||
static void
|
||||
_win_del_cb(void *data, Evas_Object *obj, void *event)
|
||||
_win_del_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event EINA_UNUSED)
|
||||
{
|
||||
if (inwin)
|
||||
{
|
||||
|
@ -109,7 +109,7 @@ _screenshot_hack_cb(void *data)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char *argv[])
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *box, *o;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *label, *label2, *label3, *label4, *label5, *label6;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
static int _box_buttons = 0;
|
||||
|
||||
static void
|
||||
_tbl_btn_cb(void *data, Evas_Object *btn, void *event_info)
|
||||
_tbl_btn_cb(void *data, Evas_Object *btn, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *layout = data;
|
||||
|
||||
|
@ -20,7 +20,7 @@ _tbl_btn_cb(void *data, Evas_Object *btn, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_box_btn_cb(void *data, Evas_Object *btn, void *event_info)
|
||||
_box_btn_cb(void *data, Evas_Object *btn, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *layout = data;
|
||||
Evas_Object *item;
|
||||
|
@ -38,7 +38,7 @@ _box_btn_cb(void *data, Evas_Object *btn, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_swallow_btn_cb(void *data, Evas_Object *btn, void *event_info)
|
||||
_swallow_btn_cb(void *data, Evas_Object *btn EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *layout = data;
|
||||
Evas_Object *item;
|
||||
|
@ -50,7 +50,7 @@ _swallow_btn_cb(void *data, Evas_Object *btn, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *icon, *icon2, *bt, *bt2, *layout;
|
||||
Evas_Object *clk;
|
||||
|
|
|
@ -15,7 +15,7 @@ struct _App {
|
|||
};
|
||||
|
||||
static void
|
||||
_signal_cb(void *data, Evas_Object *o, const char *emission, const char *source)
|
||||
_signal_cb(void *data, Evas_Object *o, const char *emission, const char *source EINA_UNUSED)
|
||||
{
|
||||
struct _App *app = data;
|
||||
Evas_Object *icon = elm_object_part_content_get(o, "elm.swallow.content");
|
||||
|
@ -36,7 +36,7 @@ _signal_cb(void *data, Evas_Object *o, const char *emission, const char *source)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *layout, *icon;
|
||||
struct _App app;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
static Eina_Bool _btn_large = EINA_FALSE;
|
||||
|
||||
static void
|
||||
_swallow_btn_cb(void *data, Evas_Object *btn, void *event_info)
|
||||
_swallow_btn_cb(void *data, Evas_Object *btn, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *layout = data;
|
||||
|
||||
|
@ -28,7 +28,7 @@ _swallow_btn_cb(void *data, Evas_Object *btn, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_size_changed_cb(void *data, Evas_Object *layout, const char *emission, const char *source)
|
||||
_size_changed_cb(void *data EINA_UNUSED, Evas_Object *layout, const char *emission EINA_UNUSED, const char *source EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *edje;
|
||||
Evas_Coord w, h;
|
||||
|
@ -40,7 +40,7 @@ _size_changed_cb(void *data, Evas_Object *layout, const char *emission, const ch
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *btn, *layout;
|
||||
char buf[PATH_MAX];
|
||||
|
|
|
@ -48,7 +48,7 @@ _list_selected_cb(void *data EINA_UNUSED, const Efl_Event *event)
|
|||
|
||||
|
||||
static void
|
||||
_update_cb(void *data, Evas_Object *obj, void *ev)
|
||||
_update_cb(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
Layout_Model_Data *priv = data;
|
||||
|
||||
|
@ -80,7 +80,7 @@ _label_init(Evas_Object *win, Evas_Object *box, const char *text)
|
|||
|
||||
|
||||
static void
|
||||
_signal_cb(void *data,
|
||||
_signal_cb(void *data EINA_UNUSED,
|
||||
Evas_Object *obj EINA_UNUSED,
|
||||
const char *emission,
|
||||
const char *source)
|
||||
|
@ -89,7 +89,7 @@ _signal_cb(void *data,
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Layout_Model_Data *priv;
|
||||
Evas_Object *win, *panes, *bxr, *genlist;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *li;
|
||||
unsigned int i;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *li;
|
||||
unsigned int i;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
static int counter = 3;
|
||||
|
||||
static void
|
||||
_prepend_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_prepend_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *list_it;
|
||||
Evas_Object *li = data;
|
||||
|
@ -28,7 +28,7 @@ _prepend_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_add_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_add_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *list_it;
|
||||
Evas_Object *li = data;
|
||||
|
@ -42,7 +42,7 @@ _add_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_add_ic_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_add_ic_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *list_it;
|
||||
Evas_Object *ic, *li = data;
|
||||
|
@ -60,14 +60,14 @@ _add_ic_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_sel_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_sel_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
Elm_Object_Item *list_it = event_info;
|
||||
printf("Selected label: %s\n", elm_object_item_text_get(list_it));
|
||||
}
|
||||
|
||||
static void
|
||||
_add_func_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_add_func_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *list_it;
|
||||
Evas_Object *li = data;
|
||||
|
@ -81,7 +81,7 @@ _add_func_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_sel_data_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_sel_data_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
char *content = data;
|
||||
Elm_Object_Item *list_it = event_info;
|
||||
|
@ -90,13 +90,13 @@ _sel_data_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_free_data(void *data, Evas_Object *obj, void *event_info)
|
||||
_free_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
free(data);
|
||||
}
|
||||
|
||||
static void
|
||||
_add_data_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_add_data_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *list_it;
|
||||
Evas_Object *li = data;
|
||||
|
@ -116,7 +116,7 @@ _add_data_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_del_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_item;
|
||||
Evas_Object *li = data;
|
||||
|
@ -127,7 +127,7 @@ _del_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_unselect_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_unselect_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_item;
|
||||
Evas_Object *li = data;
|
||||
|
@ -137,7 +137,7 @@ _unselect_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_print_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_print_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
const Eina_List *l, *items;
|
||||
Elm_Object_Item *list_it;
|
||||
|
@ -149,14 +149,14 @@ _print_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_clear_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_clear_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *li = data;
|
||||
elm_list_clear(li);
|
||||
}
|
||||
|
||||
static void
|
||||
_select_next_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_select_next_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_item, *next_item;
|
||||
Evas_Object *li = data;
|
||||
|
@ -170,7 +170,7 @@ _select_next_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_insert_after_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_insert_after_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_item, *list_it;
|
||||
Evas_Object *li = data;
|
||||
|
@ -188,7 +188,7 @@ _insert_after_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_select_prev_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_select_prev_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_item, *prev_item;
|
||||
Evas_Object *li = data;
|
||||
|
@ -202,7 +202,7 @@ _select_prev_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_insert_before_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_insert_before_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_item, *list_it;
|
||||
Evas_Object *li = data;
|
||||
|
@ -220,7 +220,7 @@ _insert_before_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_set_separator_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_set_separator_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_item;
|
||||
Evas_Object *li = data;
|
||||
|
@ -232,7 +232,7 @@ _set_separator_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_disable_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_disable_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Elm_Object_Item *selected_item;
|
||||
Evas_Object *li = data;
|
||||
|
@ -243,7 +243,7 @@ _disable_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *hbx, *li, *bt;
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ _position_changed(void *data, int ev_type, void *event)
|
|||
#endif
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char *argv[])
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
#ifdef ELM_ELOCATION
|
||||
Elocation_Address *address;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
static void
|
||||
_bt_zoom_in(void *data, Evas_Object *obj, void *ev)
|
||||
_bt_zoom_in(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
int zoom;
|
||||
elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_MANUAL);
|
||||
|
@ -21,7 +21,7 @@ _bt_zoom_in(void *data, Evas_Object *obj, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_out(void *data, Evas_Object *obj, void *ev)
|
||||
_bt_zoom_out(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
int zoom;
|
||||
elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_MANUAL);
|
||||
|
@ -30,13 +30,13 @@ _bt_zoom_out(void *data, Evas_Object *obj, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_fit(void *data, Evas_Object *obj, void *event_info)
|
||||
_bt_zoom_fit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_AUTO_FIT);
|
||||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_fill(void *data, Evas_Object *obj, void *event_info)
|
||||
_bt_zoom_fill(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_AUTO_FILL);
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ _nasty_hack(void *data)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *map, *box, *bt;
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ _box_get(Evas_Object *obj, Overlay_Data *data)
|
|||
}
|
||||
|
||||
static void
|
||||
_overlay_cb(void *data, Evas_Object *map, void *ev)
|
||||
_overlay_cb(void *data EINA_UNUSED, Evas_Object *map, void *ev)
|
||||
{
|
||||
printf("Overlay clicked\n");
|
||||
Elm_Map_Overlay *overlay = ev;
|
||||
|
@ -105,7 +105,7 @@ _overlay_cb(void *data, Evas_Object *map, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_in(void *data, Evas_Object *obj, void *ev)
|
||||
_bt_zoom_in(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *map = data;
|
||||
int zoom;
|
||||
|
@ -116,7 +116,7 @@ _bt_zoom_in(void *data, Evas_Object *obj, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_out(void *data, Evas_Object *obj, void *ev)
|
||||
_bt_zoom_out(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *map = data;
|
||||
int zoom;
|
||||
|
@ -127,14 +127,14 @@ _bt_zoom_out(void *data, Evas_Object *obj, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_fit(void *data, Evas_Object *obj, void *event_info)
|
||||
_bt_zoom_fit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *map = data;
|
||||
elm_map_zoom_mode_set(map, ELM_MAP_ZOOM_MODE_AUTO_FIT);
|
||||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_fill(void *data, Evas_Object *obj, void *event_info)
|
||||
_bt_zoom_fill(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *map = data;
|
||||
elm_map_zoom_mode_set(map, ELM_MAP_ZOOM_MODE_AUTO_FILL);
|
||||
|
@ -154,7 +154,7 @@ _nasty_hack(void *data)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *map, *box, *bt;
|
||||
Eina_List *ovls = NULL;
|
||||
|
|
|
@ -23,7 +23,7 @@ typedef struct _Example_Data
|
|||
static Example_Data example_data;
|
||||
|
||||
static void
|
||||
_route_loaded(void *data, Evas_Object *obj, void *ev)
|
||||
_route_loaded(void *data, Evas_Object *obj, void *ev EINA_UNUSED)
|
||||
{
|
||||
Example_Data *exam_data = data;
|
||||
|
||||
|
@ -32,7 +32,7 @@ _route_loaded(void *data, Evas_Object *obj, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_name_loaded(void *data, Evas_Object *obj, void *ev)
|
||||
_name_loaded(void *data, Evas_Object *obj, void *ev EINA_UNUSED)
|
||||
{
|
||||
Example_Data *exam_data = data;
|
||||
Evas_Object *map = obj;
|
||||
|
@ -51,7 +51,7 @@ _name_loaded(void *data, Evas_Object *obj, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_bt_route(void *data, Evas_Object *obj, void *ev)
|
||||
_bt_route(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
Example_Data *exam_data = data;
|
||||
Evas_Object *map;
|
||||
|
@ -67,7 +67,7 @@ _bt_route(void *data, Evas_Object *obj, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_in(void *data, Evas_Object *obj, void *ev)
|
||||
_bt_zoom_in(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
int zoom;
|
||||
elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_MANUAL);
|
||||
|
@ -76,7 +76,7 @@ _bt_zoom_in(void *data, Evas_Object *obj, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_out(void *data, Evas_Object *obj, void *ev)
|
||||
_bt_zoom_out(void *data, Evas_Object *obj EINA_UNUSED, void *ev EINA_UNUSED)
|
||||
{
|
||||
int zoom;
|
||||
elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_MANUAL);
|
||||
|
@ -85,13 +85,13 @@ _bt_zoom_out(void *data, Evas_Object *obj, void *ev)
|
|||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_fit(void *data, Evas_Object *obj, void *event_info)
|
||||
_bt_zoom_fit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_AUTO_FIT);
|
||||
}
|
||||
|
||||
static void
|
||||
_bt_zoom_fill(void *data, Evas_Object *obj, void *event_info)
|
||||
_bt_zoom_fill(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
elm_map_zoom_mode_set(data, ELM_MAP_ZOOM_MODE_AUTO_FILL);
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ _nasty_hack(void *data)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *map, *box, *bt, *entry;
|
||||
|
||||
|
|
|
@ -11,28 +11,28 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
static void
|
||||
_enabled_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_enabled_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *mb = data;
|
||||
elm_mapbuf_enabled_set(mb, elm_check_state_get(obj));
|
||||
}
|
||||
|
||||
static void
|
||||
_alpha_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_alpha_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *mb = data;
|
||||
elm_mapbuf_alpha_set(mb, elm_check_state_get(obj));
|
||||
}
|
||||
|
||||
static void
|
||||
_smooth_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_smooth_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *mb = data;
|
||||
elm_mapbuf_smooth_set(mb, elm_check_state_get(obj));
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *hbx, *tg, *ck, *mb, *tb, *ic;
|
||||
unsigned int i, j;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
static void
|
||||
_del_it(void *data, Evas_Object *obj, void *event_info)
|
||||
_del_it(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
const Eina_List *l;
|
||||
Elm_Object_Item *menu_it = elm_menu_first_item_get(data);
|
||||
|
@ -14,7 +14,7 @@ _del_it(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_show(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
||||
_show(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
Evas_Event_Mouse_Down *ev = event_info;
|
||||
elm_menu_move(data, ev->canvas.x, ev->canvas.y);
|
||||
|
@ -22,7 +22,7 @@ _show(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *menu, *button, *rect;
|
||||
Elm_Object_Item *menu_it, *menu_it1;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
void
|
||||
_btn_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_btn_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *nf = data, *btn;
|
||||
if (!nf) return;
|
||||
|
@ -17,7 +17,7 @@ _btn_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *nf, *btn;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
static void _hide(void *data, Evas_Object *obj, void *event_info);
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *notify, *content;
|
||||
|
||||
|
@ -65,7 +65,7 @@ elm_main(int argc, char **argv)
|
|||
ELM_MAIN()
|
||||
|
||||
static void
|
||||
_hide(void *data, Evas_Object *obj, void *event_info)
|
||||
_hide(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
evas_object_hide(obj);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bx, *panel, *content;
|
||||
|
||||
|
|
|
@ -12,25 +12,25 @@
|
|||
#include <Elementary.h>
|
||||
|
||||
static void
|
||||
_press(void *data, Evas_Object *obj, void *event_info)
|
||||
_press(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
printf("Pressed\n");
|
||||
}
|
||||
|
||||
static void
|
||||
_unpress(void *data, Evas_Object *obj, void *event_info)
|
||||
_unpress(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
printf("Unpressed, size : %f\n", elm_panes_content_left_size_get(obj));
|
||||
}
|
||||
|
||||
static void
|
||||
_clicked(void *data, Evas_Object *obj, void *event_info)
|
||||
_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
printf("Clicked\n");
|
||||
}
|
||||
|
||||
static void
|
||||
_clicked_double(void *data, Evas_Object *obj, void *event_info)
|
||||
_clicked_double(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
static double size = 0.0;
|
||||
double tmp_size = 0.0;
|
||||
|
@ -50,7 +50,7 @@ _clicked_double(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *panes, *panes_h, *bt;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ struct _Orient_Data
|
|||
};
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *obj, *photocam, *menu;
|
||||
Orient_Data *orient_data;
|
||||
|
@ -111,7 +111,7 @@ elm_main(int argc, char **argv)
|
|||
ELM_MAIN()
|
||||
|
||||
static void
|
||||
_bring_in(void *data, Evas_Object *obj, void *event_info)
|
||||
_bring_in(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
int w, h;
|
||||
elm_photocam_image_size_get(obj, &w, &h);
|
||||
|
@ -119,7 +119,7 @@ _bring_in(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_fit(void *data, Evas_Object *obj, void *event_info)
|
||||
_fit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
int x, y, w, h;
|
||||
elm_photocam_image_region_get(data, &x, &y, &w, &h);
|
||||
|
@ -128,20 +128,20 @@ _fit(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_unfit(void *data, Evas_Object *obj, void *event_info)
|
||||
_unfit(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
elm_photocam_zoom_mode_set(data, ELM_PHOTOCAM_ZOOM_MODE_MANUAL);
|
||||
}
|
||||
|
||||
static void
|
||||
_zoom(void *data, Evas_Object *obj, void *event_info)
|
||||
_zoom(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
double z = elm_slider_value_get(obj) * 8;
|
||||
elm_photocam_zoom_set(data, z);
|
||||
}
|
||||
|
||||
static void
|
||||
_orient(void *data, Evas_Object *obj, void *event_info)
|
||||
_orient(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *mn = data;
|
||||
if (!mn) return;
|
||||
|
@ -150,7 +150,7 @@ _orient(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_orient_do(void *data, Evas_Object *obj, void *event_info)
|
||||
_orient_do(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||
{
|
||||
Orient_Data *orient_data = data;
|
||||
if (!orient_data) return;
|
||||
|
|
|
@ -7,7 +7,7 @@ static void _block_clicked(void *data, Evas_Object *obj, void *event_info);
|
|||
static void _timeout(void *data, Evas_Object *obj, void *event_info);
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *popup, *content;
|
||||
|
||||
|
@ -39,14 +39,14 @@ elm_main(int argc, char **argv)
|
|||
ELM_MAIN()
|
||||
|
||||
static void
|
||||
_block_clicked(void *data, Evas_Object *obj,
|
||||
void *event_info)
|
||||
_block_clicked(void *data EINA_UNUSED, Evas_Object *obj,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
evas_object_hide(obj);
|
||||
}
|
||||
|
||||
static void
|
||||
_timeout(void *data, Evas_Object *obj, void *event_info)
|
||||
_timeout(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
evas_object_hide(obj);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
static void _response_cb(void *data, Evas_Object *obj, void *event_info);
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *popup, *btn1, *btn2, *btn3, *icon1;
|
||||
char buf[256];
|
||||
|
@ -70,8 +70,8 @@ elm_main(int argc, char **argv)
|
|||
ELM_MAIN()
|
||||
|
||||
static void
|
||||
_response_cb(void *data, Evas_Object *obj,
|
||||
void *event_info)
|
||||
_response_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
evas_object_del(data);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ static void _item_selected_cb(void *data, Evas_Object *obj, void *event_info);
|
|||
static void _response_cb(void *data, Evas_Object *obj, void *event_info);
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *popup, *btn1, *btn2, *icon1;
|
||||
Elm_Object_Item *popup_it1;
|
||||
|
@ -79,15 +79,15 @@ elm_main(int argc, char **argv)
|
|||
ELM_MAIN()
|
||||
|
||||
static void
|
||||
_item_selected_cb(void *data, Evas_Object *obj,
|
||||
_item_selected_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info)
|
||||
{
|
||||
printf("popup item selected: %s\n", elm_object_item_text_get(event_info));
|
||||
}
|
||||
|
||||
static void
|
||||
_response_cb(void *data, Evas_Object *obj,
|
||||
void *event_info)
|
||||
_response_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||
void *event_info EINA_UNUSED)
|
||||
{
|
||||
evas_object_hide(data);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ _elm_prefs_data_change(void *data)
|
|||
}
|
||||
|
||||
static void
|
||||
_page_saved_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_page_saved_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
const char *page = event_info;
|
||||
|
||||
|
@ -40,7 +40,7 @@ _page_saved_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_page_loaded_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_page_loaded_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
const char *page = event_info;
|
||||
|
||||
|
@ -48,7 +48,7 @@ _page_loaded_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
static void
|
||||
_item_changed_cb(void *data, Evas_Object *obj, void *event_info)
|
||||
_item_changed_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
|
||||
{
|
||||
const char *item = event_info;
|
||||
|
||||
|
@ -56,7 +56,7 @@ _item_changed_cb(void *data, Evas_Object *obj, void *event_info)
|
|||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc, char **argv)
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *prefs, *notify, *label;
|
||||
Elm_Prefs_Data *prefs_data;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue