unsigned int del_index;
unsigned int cur_seg_id;
double scale_factor;
- Eina_Bool longpressed : 1;
+// Eina_Bool longpressed : 1;
Eina_Bool selected : 1;
};
const char *label;
Eina_Bool delete_me : 1;
int segment_id;
- Ecore_Timer *long_timer;
+// Ecore_Timer *long_timer;
};
static void _mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event_info);
wd->selected = EINA_TRUE;
- if (item->long_timer)
+ /* if (item->long_timer)
{
ecore_timer_del(item->long_timer);
item->long_timer = NULL;
- }
- wd->longpressed = EINA_TRUE;
+ }*/
+ //wd->longpressed = EINA_TRUE;
edje_object_signal_emit(item->base, "elm,state,segment,on", "elm");
edje_object_signal_emit(item->base, "elm,state,text,change", "elm");
return;
}
- if(wd->longpressed == EINA_FALSE)
+ // if(wd->longpressed == EINA_FALSE)
{
edje_object_signal_emit(item->base, "elm,action,unfocus", "elm");
edje_object_signal_emit(item->base, "elm,state,text,visible", "elm");
}
- if (item->long_timer)
+ /* if (item->long_timer)
{
ecore_timer_del(item->long_timer);
item->long_timer = NULL;
- }
+ }*/
}
static void
return;
}
- if(wd->longpressed == EINA_FALSE)
+// if(wd->longpressed == EINA_FALSE)
{
edje_object_signal_emit(item->base, "elm,action,unfocus", "elm");
edje_object_signal_emit(item->base, "elm,state,text,visible", "elm");
}
- if (item->long_timer)
+ /* if (item->long_timer)
{
ecore_timer_del(item->long_timer);
item->long_timer = NULL;
- }
+ }*/
}
static void
Widget_Data *wd = elm_widget_data_get(item->obj);
if (!wd) return;
- wd->longpressed = EINA_FALSE;
+ //wd->longpressed = EINA_FALSE;
if (item->segment_id == wd->cur_seg_id)
{
edje_object_signal_emit(item->base, "elm,action,focus", "elm");
edje_object_signal_emit(item->base, "elm,state,text,visible", "elm");
- if (item->long_timer) ecore_timer_del(item->long_timer);
- item->long_timer = ecore_timer_add(0.3, _signal_segment_on, item);
+ _signal_segment_on(item);
+
+/* if (item->long_timer) ecore_timer_del(item->long_timer);
+ item->long_timer = ecore_timer_add(0.3, _signal_segment_on, item);*/
}
static void
if(it->icon) evas_object_del(it->icon);
if(it->base) evas_object_del(it->base);
if(it->label) eina_stringshare_del(it->label);
- if (it->long_timer) ecore_timer_del(it->long_timer);
+// if (it->long_timer) ecore_timer_del(it->long_timer);
if(it)
free(it);