forked from enlightenment/efl
elementary/gengrid - deprecated 3 APIs.
elm_gengrid_item_data_set -> elm_object_item_data_set elm_gengrid_item_data_get -> elm_object_item_data_get elm_gengrid_item_gengrid_get -> elm_object_item_widget_get SVN revision: 67619
This commit is contained in:
parent
73ee2d9004
commit
b1f436569c
|
@ -4256,7 +4256,7 @@
|
||||||
* selection of the items. There, we print the item handle's value,
|
* selection of the items. There, we print the item handle's value,
|
||||||
* along with the callback function data. The latter will be @c NULL,
|
* along with the callback function data. The latter will be @c NULL,
|
||||||
* always, because it's what we pass when adding all icons. By using
|
* always, because it's what we pass when adding all icons. By using
|
||||||
* elm_gengrid_item_data_get(), we can have the item data back and,
|
* elm_object_item_data_get(), we can have the item data back and,
|
||||||
* with that, we're priting the item's path string. Finally, we
|
* with that, we're priting the item's path string. Finally, we
|
||||||
* exemplify elm_gengrid_item_pos_get(), printing the item's position
|
* exemplify elm_gengrid_item_pos_get(), printing the item's position
|
||||||
* in the grid:
|
* in the grid:
|
||||||
|
|
|
@ -43,7 +43,7 @@ _it_sel_cb(void *data, Evas_Object *obj __UNUSED__, void *event)
|
||||||
App_Inwin_Data *aid = data;
|
App_Inwin_Data *aid = data;
|
||||||
Elm_Object_Item *gg_it = event;
|
Elm_Object_Item *gg_it = event;
|
||||||
|
|
||||||
aid->emo = elm_gengrid_item_data_get(gg_it);
|
aid->emo = elm_object_item_data_get(gg_it);
|
||||||
|
|
||||||
elm_pager_content_promote(aid->pager, aid->settings);
|
elm_pager_content_promote(aid->pager, aid->settings);
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,7 +135,7 @@ _grid_sel(void *data,
|
||||||
void *event_info)
|
void *event_info)
|
||||||
{
|
{
|
||||||
unsigned int x, y;
|
unsigned int x, y;
|
||||||
Example_Item *it = elm_gengrid_item_data_get(event_info);
|
Example_Item *it = elm_object_item_data_get(event_info);
|
||||||
|
|
||||||
elm_gengrid_item_pos_get(event_info, &x, &y);
|
elm_gengrid_item_pos_get(event_info, &x, &y);
|
||||||
|
|
||||||
|
|
|
@ -419,15 +419,14 @@ _sel(void *data,
|
||||||
Widget_Data *wd;
|
Widget_Data *wd;
|
||||||
void *old_sd;
|
void *old_sd;
|
||||||
char *dir;
|
char *dir;
|
||||||
|
Elm_Object_Item *gg_it = event_info;
|
||||||
|
|
||||||
wd = elm_widget_data_get(data);
|
wd = elm_widget_data_get(data);
|
||||||
if (!wd) return;
|
if (!wd) return;
|
||||||
|
|
||||||
sd = malloc(sizeof(*sd));
|
sd = malloc(sizeof(*sd));
|
||||||
sd->fs = data;
|
sd->fs = data;
|
||||||
sd->path = wd->mode == ELM_FILESELECTOR_LIST ?
|
sd->path = wd->mode == elm_object_item_data_get(gg_it);
|
||||||
elm_object_item_data_get(event_info) :
|
|
||||||
elm_gengrid_item_data_get(event_info);
|
|
||||||
|
|
||||||
if (!sd->path)
|
if (!sd->path)
|
||||||
{
|
{
|
||||||
|
@ -599,7 +598,7 @@ _file_grid_cmp(const void *a, const void *b)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return strcoll(elm_gengrid_item_data_get(ga), elm_gengrid_item_data_get(gb));
|
return strcoll(elm_object_item_data_get(ga), elm_object_item_data_get(gb));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -1160,7 +1159,7 @@ elm_fileselector_selected_get(const Evas_Object *obj)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Elm_Object_Item *gg_it = elm_gengrid_selected_item_get(wd->files_grid);
|
Elm_Object_Item *gg_it = elm_gengrid_selected_item_get(wd->files_grid);
|
||||||
if (gg_it) return elm_gengrid_item_data_get(gg_it);
|
if (gg_it) return elm_object_item_data_get(gg_it);
|
||||||
}
|
}
|
||||||
|
|
||||||
return wd->path;
|
return wd->path;
|
||||||
|
|
|
@ -3863,3 +3863,52 @@ EINA_DEPRECATED EAPI Evas_Object *elm_entry_end_unset(Evas_Object *obj);
|
||||||
*/
|
*/
|
||||||
EINA_DEPRECATED EAPI void elm_map_utils_rotate_coord(const Evas_Object *obj, const Evas_Coord x, const Evas_Coord y, const Evas_Coord cx, const Evas_Coord cy, const double degree, Evas_Coord *xx, Evas_Coord *yy);
|
EINA_DEPRECATED EAPI void elm_map_utils_rotate_coord(const Evas_Object *obj, const Evas_Coord x, const Evas_Coord y, const Evas_Coord cx, const Evas_Coord cy, const double degree, Evas_Coord *xx, Evas_Coord *yy);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the gengrid object's handle which contains a given gengrid item
|
||||||
|
*
|
||||||
|
* @param it The item to fetch the container from
|
||||||
|
* @return The gengrid (parent) object
|
||||||
|
*
|
||||||
|
* This returns the gengrid object itself that an item belongs to.
|
||||||
|
*
|
||||||
|
* @deprecated Use elm_object_item_widget_get() instead
|
||||||
|
* @ingroup Gengrid
|
||||||
|
*/
|
||||||
|
EINA_DEPRECATED EAPI Evas_Object *elm_gengrid_item_gengrid_get(const Elm_Object_Item *it);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the data associated to a given gengrid item
|
||||||
|
*
|
||||||
|
* @param it The gengrid item.
|
||||||
|
* @return the data associated with this item.
|
||||||
|
*
|
||||||
|
* This returns the @c data value passed on the
|
||||||
|
* elm_gengrid_item_append() and related item addition calls.
|
||||||
|
*
|
||||||
|
* @see elm_gengrid_item_append()
|
||||||
|
* @see elm_gengrid_item_data_set()
|
||||||
|
* @deprecated Use elm_object_item_data_get() instead
|
||||||
|
* @ingroup Gengrid
|
||||||
|
*/
|
||||||
|
EINA_DEPRECATED EAPI void *elm_gengrid_item_data_get(const Elm_Object_Item *it);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the data associated with a given gengrid item
|
||||||
|
*
|
||||||
|
* @param it The gengrid item
|
||||||
|
* @param data The data pointer to set on it
|
||||||
|
*
|
||||||
|
* This @b overrides the @c data value passed on the
|
||||||
|
* elm_gengrid_item_append() and related item addition calls. This
|
||||||
|
* function @b won't call elm_gengrid_item_update() automatically,
|
||||||
|
* so you'd issue it afterwards if you want to have the item
|
||||||
|
* updated to reflect the new data.
|
||||||
|
*
|
||||||
|
* @see elm_gengrid_item_data_get()
|
||||||
|
* @see elm_gengrid_item_update()
|
||||||
|
* @deprecated Use elm_object_item_data_set() instead
|
||||||
|
*
|
||||||
|
* @ingroup Gengrid
|
||||||
|
*/
|
||||||
|
EINA_DEPRECATED EAPI void elm_gengrid_item_data_set(Elm_Object_Item *it, const void *data);
|
||||||
|
|
||||||
|
|
|
@ -979,18 +979,6 @@ EAPI Elm_Object_Item *elm_gengrid_item_next_get(const Elm_Object_Ite
|
||||||
*/
|
*/
|
||||||
EAPI Elm_Object_Item *elm_gengrid_item_prev_get(const Elm_Object_Item *it);
|
EAPI Elm_Object_Item *elm_gengrid_item_prev_get(const Elm_Object_Item *it);
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the gengrid object's handle which contains a given gengrid item
|
|
||||||
*
|
|
||||||
* @param it The item to fetch the container from
|
|
||||||
* @return The gengrid (parent) object
|
|
||||||
*
|
|
||||||
* This returns the gengrid object itself that an item belongs to.
|
|
||||||
*
|
|
||||||
* @ingroup Gengrid
|
|
||||||
*/
|
|
||||||
EAPI Evas_Object *elm_gengrid_item_gengrid_get(const Elm_Object_Item *it);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a gengrid item from its parent, deleting it.
|
* Remove a gengrid item from its parent, deleting it.
|
||||||
*
|
*
|
||||||
|
@ -1043,41 +1031,6 @@ EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Obj
|
||||||
*/
|
*/
|
||||||
EAPI void elm_gengrid_item_item_class_set(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic);
|
EAPI void elm_gengrid_item_item_class_set(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic);
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the data associated to a given gengrid item
|
|
||||||
*
|
|
||||||
* @param it The gengrid item.
|
|
||||||
* @return the data associated with this item.
|
|
||||||
*
|
|
||||||
* This returns the @c data value passed on the
|
|
||||||
* elm_gengrid_item_append() and related item addition calls.
|
|
||||||
*
|
|
||||||
* @see elm_gengrid_item_append()
|
|
||||||
* @see elm_gengrid_item_data_set()
|
|
||||||
*
|
|
||||||
* @ingroup Gengrid
|
|
||||||
*/
|
|
||||||
EAPI void *elm_gengrid_item_data_get(const Elm_Object_Item *it);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the data associated with a given gengrid item
|
|
||||||
*
|
|
||||||
* @param it The gengrid item
|
|
||||||
* @param data The data pointer to set on it
|
|
||||||
*
|
|
||||||
* This @b overrides the @c data value passed on the
|
|
||||||
* elm_gengrid_item_append() and related item addition calls. This
|
|
||||||
* function @b won't call elm_gengrid_item_update() automatically,
|
|
||||||
* so you'd issue it afterwards if you want to have the item
|
|
||||||
* updated to reflect the new data.
|
|
||||||
*
|
|
||||||
* @see elm_gengrid_item_data_get()
|
|
||||||
* @see elm_gengrid_item_update()
|
|
||||||
*
|
|
||||||
* @ingroup Gengrid
|
|
||||||
*/
|
|
||||||
EAPI void elm_gengrid_item_data_set(Elm_Object_Item *it, const void *data);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a given gengrid item's position, relative to the whole
|
* Get a given gengrid item's position, relative to the whole
|
||||||
* gengrid's grid area.
|
* gengrid's grid area.
|
||||||
|
@ -1142,7 +1095,7 @@ EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Objec
|
||||||
* lower level callbacks for events on that object. Do not delete
|
* lower level callbacks for events on that object. Do not delete
|
||||||
* this object under any circumstances.
|
* this object under any circumstances.
|
||||||
*
|
*
|
||||||
* @see elm_gengrid_item_data_get()
|
* @see elm_object_item_data_get()
|
||||||
*
|
*
|
||||||
* @ingroup Gengrid
|
* @ingroup Gengrid
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue