static Elm_Genlist_Item_Class itc1;
-char *gl_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+char *gl_label_get(const void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
char buf[256];
snprintf(buf, sizeof(buf), "Item # %i", (int)(long)data);
return strdup(buf);
}
-Evas_Object *gl_icon_get(void *data __UNUSED__, Evas_Object *obj, const char *part)
+Evas_Object *gl_icon_get(const void *data __UNUSED__, Evas_Object *obj, const char *part)
{
char buf[PATH_MAX];
Evas_Object *ic = elm_icon_add(obj);
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
}
-Eina_Bool gl_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+Eina_Bool gl_state_get(const void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-void gl_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
+void gl_del(const void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
}
static void
-my_gl_del(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
+my_gl_del(const void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *gl = data;
+ Evas_Object *gl = (Evas_Object *)data;
Elm_Genlist_Item *gli = elm_genlist_selected_item_get(gl);
if (!gli)
{
bt = elm_button_add(win);
elm_button_label_set(bt, "-");
- evas_object_smart_callback_add(bt, "clicked", my_gl_del, gl);
+ evas_object_smart_callback_add(bt, "clicked", (Evas_Smart_Cb)my_gl_del, gl);
evas_object_size_hint_align_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
elm_box_pack_end(bx2, bt);
/*************/
static Elm_Genlist_Item_Class itc2;
-char *gl2_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+char *gl2_label_get(const void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
const Testitem *tit = data;
char buf[256];
snprintf(buf, sizeof(buf), "Item mode %i", tit->mode);
return strdup(buf);
}
-Evas_Object *gl2_icon_get(void *data, Evas_Object *obj, const char *part)
+Evas_Object *gl2_icon_get(const void *data, Evas_Object *obj, const char *part)
{
const Testitem *tit = data;
char buf[PATH_MAX];
evas_object_size_hint_aspect_set(ic, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
return ic;
}
-Eina_Bool gl2_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+Eina_Bool gl2_state_get(const void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-void gl2_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
+void gl2_del(const void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
}
static Elm_Genlist_Item_Class itc3;
-char *gl3_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+char *gl3_label_get(const void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
const Testitem *tit = data;
char buf[256];
snprintf(buf, sizeof(buf), "Item mode %i", tit->mode);
return strdup(buf);
}
-Evas_Object *gl3_icon_get(void *data, Evas_Object *obj, const char *part)
+Evas_Object *gl3_icon_get(const void *data, Evas_Object *obj, const char *part)
{
const Testitem *tit = data;
if (!strcmp(part, "elm.swallow.icon"))
}
return NULL;
}
-Eina_Bool gl3_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+Eina_Bool gl3_state_get(const void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-void gl3_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
+void gl3_del(const void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
}
static Elm_Genlist_Item_Class itc5;
-char *gl5_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part)
+char *gl5_label_get(const void *data, Evas_Object *obj __UNUSED__, const char *part)
{
const Testitem *tit = data;
char buf[256];
}
return strdup(buf);
}
-Evas_Object *gl5_icon_get(void *data, Evas_Object *obj, const char *part)
+Evas_Object *gl5_icon_get(const void *data, Evas_Object *obj, const char *part)
{
const Testitem *tit = data;
char buf[PATH_MAX];
}
return NULL;
}
-Eina_Bool gl5_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+Eina_Bool gl5_state_get(const void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-void gl5_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
+void gl5_del(const void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
elm_genlist_item_expanded_set(it, 0);
}
-char *gl4_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+char *gl4_label_get(const void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
char buf[256];
snprintf(buf, sizeof(buf), "Item mode %i", (int)(long)data);
return strdup(buf);
}
-Evas_Object *gl4_icon_get(void *data __UNUSED__, Evas_Object *obj, const char *part)
+Evas_Object *gl4_icon_get(const void *data __UNUSED__, Evas_Object *obj, const char *part)
{
char buf[PATH_MAX];
if (!strcmp(part, "elm.swallow.icon"))
}
return NULL;
}
-Eina_Bool gl4_state_get(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+Eina_Bool gl4_state_get(const void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
return EINA_FALSE;
}
-void gl4_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
+void gl4_del(const void *data __UNUSED__, Evas_Object *obj __UNUSED__)
{
}
/*************/
static Elm_Genlist_Item_Class itc_group;
-char *gl8_label_get(void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
+char *gl8_label_get(const void *data, Evas_Object *obj __UNUSED__, const char *part __UNUSED__)
{
char buf[256];
snprintf(buf, sizeof(buf), "Group Index # %i (Item # %i)", (int)((long)data / 10), (int)(long)data);
}
EAPI void
-elm_genlist_item_move_after(Elm_Genlist_Item *it, Elm_Genlist_Item *after)
+elm_genlist_item_move_after(Elm_Genlist_Item *it __UNUSED__, Elm_Genlist_Item *after __UNUSED__)
{
return;
}
EAPI void
-elm_genlist_item_move_before(Elm_Genlist_Item *it, Elm_Genlist_Item *before)
+elm_genlist_item_move_before(Elm_Genlist_Item *it __UNUSED__, Elm_Genlist_Item *before __UNUSED__)
{
return;
}
* @ingroup Genlist
*/
EAPI void
-elm_genlist_pinch_zoom_mode_set(Evas_Object *obj, Eina_Bool emode)
+elm_genlist_pinch_zoom_mode_set(Evas_Object *obj __UNUSED__, Eina_Bool emode __UNUSED__)
{
printf("!!! NOW FIXING \n");
}
* @ingroup Genlist
*/
EAPI Eina_Bool
-elm_genlist_pinch_zoom_mode_get(const Evas_Object *obj)
+elm_genlist_pinch_zoom_mode_get(const Evas_Object *obj __UNUSED__)
{
printf("!!! NOW FIXING \n");
return EINA_FALSE;
}
EAPI void
-elm_genlist_pinch_zoom_set(Evas_Object *obj, Eina_Bool emode)
+elm_genlist_pinch_zoom_set(Evas_Object *obj __UNUSED__, Eina_Bool emode __UNUSED__)
{
printf("!!! NOW FIXING \n");
}
* @ingroup Genlist
*/
EAPI void
-elm_genlist_edit_selected_items_del(Evas_Object *obj)
+elm_genlist_edit_selected_items_del(Evas_Object *obj __UNUSED__)
{
fprintf(stderr, "=================> Caution!!! <========================\n");
fprintf(stderr, "==> elm_genlist_edit_selected_items_del() is deprecated. <=======\n");
}
EAPI void
-elm_genlist_selected_items_del(Evas_Object *obj)
+elm_genlist_selected_items_del(Evas_Object *obj __UNUSED__)
{
fprintf(stderr, "=================> Caution!!! <========================\n");
fprintf(stderr, "==> elm_genlist_selected_items_del() is deprecated. <=======\n");
* @ingroup Genlist
*/
EAPI Eina_List *
-elm_genlist_edit_selected_items_get(const Evas_Object *obj)
+elm_genlist_edit_selected_items_get(const Evas_Object *obj __UNUSED__)
{
fprintf(stderr, "========================> Caution!!! <==========================\n");
fprintf(stderr, "==> elm_genlist_edit_selected_items_get() is deprecated. <=======\n");
// TODO : add comment
EAPI void
-elm_genlist_edit_item_selected_set(Elm_Genlist_Item *it,
- Eina_Bool selected)
+elm_genlist_edit_item_selected_set(Elm_Genlist_Item *it __UNUSED__,
+ Eina_Bool selected __UNUSED__)
{
fprintf(stderr, "========================> Caution!!! <==========================\n");
fprintf(stderr, "==> elm_genlist_edit_item_selected_set() is deprecated. <=======\n");
// TODO : add comment
EAPI Eina_Bool
-elm_genlist_edit_item_selected_get(const Elm_Genlist_Item *it)
+elm_genlist_edit_item_selected_get(const Elm_Genlist_Item *it __UNUSED__)
{
fprintf(stderr, "========================> Caution!!! <==========================\n");
fprintf(stderr, "==> elm_genlist_edit_item_selected_get() is deprecated. <=======\n");