[elm] These intricate scrolling hooks will be the

last to be evaluated.

Porting of the basic scrolling infra to an interface will happenfirst, as well as the scrolling widgets porting.

Patch by: Gustavo Lima Chaves <glima@profusion.mobi>



SVN revision: 73306
This commit is contained in:
Gustavo Lima Chaves 2012-07-04 21:36:50 +00:00
parent 37185b019f
commit 9d25d801e6
2 changed files with 10 additions and 9 deletions

View File

@ -114,11 +114,6 @@ typedef struct _Elm_Widget_Compat_Smart_Data
Evas_Object *obj);
void (*on_change)(void *data,
Evas_Object *obj);
void (*focus_region)(Evas_Object *obj,
Evas_Coord x,
Evas_Coord y,
Evas_Coord w,
Evas_Coord h);
void (*on_focus_region)(const Evas_Object *obj,
Evas_Coord *x,
Evas_Coord *y,
@ -887,9 +882,9 @@ _elm_widget_focus_region_show(const Evas_Object *obj)
{
Evas_Coord px, py;
sd2 = evas_object_smart_data_get(o);
if (_elm_legacy_is(o) && COMPAT_SMART_DATA(sd2)->focus_region)
if (_elm_legacy_is(o) && sd2->focus_region)
{
COMPAT_SMART_DATA(sd2)->focus_region(o, x, y, w, h);
sd2->focus_region(o, x, y, w, h);
elm_widget_focus_region_get(o, &x, &y, &w, &h);
}
else
@ -1479,7 +1474,7 @@ elm_widget_focus_region_hook_set(Evas_Object *obj,
{
API_ENTRY return;
COMPAT_SMART_DATA(sd)->focus_region = func;
sd->focus_region = func;
}
/**

View File

@ -465,10 +465,16 @@ typedef struct _Elm_Widget_Smart_Data
Eina_List *focus_chain;
Eina_List *event_cb;
/* subject to later analysis: to be changed by something different */
/* this block is subject to later analysis: to be changed by
* something different */
void *on_show_region_data;
void (*on_show_region)(void *data,
Evas_Object *obj);
void (*focus_region)(Evas_Object *obj,
Evas_Coord x,
Evas_Coord y,
Evas_Coord w,
Evas_Coord h);
Eina_Bool drag_x_locked : 1;
Eina_Bool drag_y_locked : 1;