void
-_bla(void *data, Evas_Object *obj, void *event_info)
+_bla(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
{
static unsigned char corner = 0;
++corner;
}
EAPI_MAIN int
-elm_main(int argc, char **argv)
+elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *bubble, *label, *icon;
- char buf[256];
win = elm_win_add(NULL, "bubble", ELM_WIN_BASIC);
elm_win_title_set(win, "Bubble");
#endif
static void
-on_click(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
+on_click(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
elm_exit();
}
#endif
static char *
-_format_month_year(struct tm *stime)
+_format_month_year(struct tm *format_time)
{
char buf[32];
/* abbreviates month and year */
- if (!strftime(buf, sizeof(buf), "%b %y", stime)) return NULL;
+ if (!strftime(buf, sizeof(buf), "%b %y", format_time)) return NULL;
return strdup(buf);
}
int year_min, year_max;
Eina_Bool sel_enabled;
const char **wds;
- struct tm stime;
+ struct tm sel_time;
double interval;
- if (!elm_calendar_selected_time_get(obj, &stime))
+ if (!elm_calendar_selected_time_get(obj, &sel_time))
return;
interval = elm_calendar_interval_get(obj);
printf("Day: %i, Mon: %i, Year %i, WeekDay: %i<br>\n"
"Interval: %0.2f, Year_Min: %i, Year_Max %i, Sel Enabled : %i<br>\n"
"Weekdays: %s, %s, %s, %s, %s, %s, %s<br>\n\n",
- stime.tm_mday, stime.tm_mon, stime.tm_year + 1900, stime.tm_wday,
+ sel_time.tm_mday, sel_time.tm_mon, sel_time.tm_year + 1900, sel_time.tm_wday,
interval, year_min, year_max, sel_enabled,
wds[0], wds[1], wds[2], wds[3], wds[4], wds[5], wds[6]);
}
static void _print(void *data, Evas_Object *obj, void *event_info);
EAPI_MAIN int
-elm_main(int argc, char **argv)
+elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *cb, *cb2, *icon;
Eina_Bool value;
- char buf[256];
win = elm_win_add(NULL, "check", ELM_WIN_BASIC);
elm_win_title_set(win, "Check");
ELM_MAIN()
static void
-_print(void *data, Evas_Object *obj, void *event_info)
+_print(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
printf("check %smarked\n", *((Eina_Bool*)data) ? "" : "un");
}
Evas_Object *grid;
char *theme, *emo;
Eina_List *emos, *it;
- static Elm_Gengrid_Item_Class it_class = {
- "default",
- {
- _emo_label_get,
- _emo_content_get,
- NULL,
- _emo_del
- }
- };
+ static Elm_Gengrid_Item_Class *it_class;
+ it_class = elm_gengrid_item_class_new();
+ it_class->item_style = "default";
+ it_class->func.text_get = _emo_label_get;
+ it_class->func.content_get = _emo_content_get;
+ it_class->func.del = _emo_del;
theme = elm_theme_list_item_path_get("default", NULL);
if (!theme) return NULL;
if (strncmp(emo, "elm/entry/emoticon/", 19))
continue;
sscanf(emo, "elm/entry/emoticon/%[^/]/default", name);
- elm_gengrid_item_append(grid, &it_class, strdup(name), _it_sel_cb, aid);
+ elm_gengrid_item_append(grid, it_class, strdup(name), _it_sel_cb, aid);
}
edje_file_collection_list_free(emos);
+ elm_gengrid_item_class_free(it_class);
return grid;
}