{
Widget_Data *wd = elm_widget_data_get(obj);
+ if (wd->front.content == content) return;
if ((wd->front.content != content) && (wd->front.content))
{
elm_widget_sub_object_del(obj, wd->front.content);
if (content)
{
elm_widget_sub_object_add(content, obj);
- evas_object_smart_member_add(obj, content);
+ evas_object_smart_member_add(content, obj);
evas_object_event_callback_add(content,
EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints, obj);
{
Widget_Data *wd = elm_widget_data_get(obj);
+ if (wd->back.content == content) return;
if ((wd->back.content != content) && (wd->back.content))
{
elm_widget_sub_object_del(obj, wd->back.content);
if (content)
{
elm_widget_sub_object_add(content, obj);
- evas_object_smart_member_add(obj, content);
+ evas_object_smart_member_add(content, obj);
evas_object_event_callback_add(content,
EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints, obj);
{
Evas_Map *m;
Evas_Coord cx, cy, cz, px, py, foc;
-
+
m = evas_map_new(4);
evas_map_util_points_populate_from_geometry(m, x, y, w, h, 0);
evas_map_smooth_set(m, wd->smooth);
_configure(Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
- Evas_Coord x, y, w, h;
- evas_object_geometry_get(obj, &x, &y, &w, &h);
if (wd->content)
{
+ Evas_Coord x, y, w, h;
+
+ evas_object_geometry_get(obj, &x, &y, &w, &h);
if (!wd->enabled) evas_object_move(wd->content, x, y);
evas_object_resize(wd->content, w, h);
_mapbuf(obj);
{
Widget_Data *wd = elm_widget_data_get(obj);
+ if (wd->content == content) return;
if ((wd->content != content) && (wd->content))
{
elm_widget_sub_object_del(obj, wd->content);
if (content)
{
elm_widget_sub_object_add(content, obj);
- evas_object_smart_member_add(obj, content);
+ evas_object_smart_member_add(content, obj);
evas_object_event_callback_add(content,
EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints, obj);
ay = ev->canvas.y;
at = 0.0;
#ifdef SCROLLDBG
- printf("------\n");
+ printf("------ %i %i\n", ev->canvas.x, ev->canvas.y);
#endif
for (i = 0; i < 20; i++)
{
{
int faildir = 0;
+#ifdef SCROLLDBG
+ printf("::: %i %i\n", ev->cur.canvas.x, ev->cur.canvas.y);
+#endif
memmove(&(sd->down.history[1]), &(sd->down.history[0]),
sizeof(sd->down.history[0]) * 19);
#ifdef EVTIME