forked from enlightenment/efl
parent
55849aa30d
commit
7976fe8db1
|
@ -10,7 +10,7 @@ _dismissed(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
|
||||||
{
|
{
|
||||||
void *ctxpopup_data;
|
void *ctxpopup_data;
|
||||||
ctxpopup_data = evas_object_data_get(obj, "im");
|
ctxpopup_data = evas_object_data_get(obj, "im");
|
||||||
if(ctxpopup_data)
|
if (ctxpopup_data)
|
||||||
{
|
{
|
||||||
evas_object_hide(ctxpopup_data);
|
evas_object_hide(ctxpopup_data);
|
||||||
evas_object_del(ctxpopup_data);
|
evas_object_del(ctxpopup_data);
|
||||||
|
@ -55,12 +55,12 @@ _btn_clicked(void *data, Evas_Object *obj, void *event_info __UNUSED__)
|
||||||
void *ctxpopup_data;
|
void *ctxpopup_data;
|
||||||
|
|
||||||
ctxpopup_data = evas_object_data_get(data, "id");
|
ctxpopup_data = evas_object_data_get(data, "id");
|
||||||
if(!ctxpopup_data) return;
|
if (!ctxpopup_data) return;
|
||||||
|
|
||||||
if(!strcmp("list_item_6", (char *) ctxpopup_data))
|
if (!strcmp("list_item_6", (char *) ctxpopup_data))
|
||||||
{
|
{
|
||||||
ctxpopup_data = evas_object_data_get(data, "im");
|
ctxpopup_data = evas_object_data_get(data, "im");
|
||||||
if(ctxpopup_data) return;
|
if (ctxpopup_data) return;
|
||||||
|
|
||||||
im = evas_object_image_filled_add(evas_object_evas_get(obj));
|
im = evas_object_image_filled_add(evas_object_evas_get(obj));
|
||||||
snprintf(buf, sizeof(buf), "%s/images/%s",
|
snprintf(buf, sizeof(buf), "%s/images/%s",
|
||||||
|
@ -83,7 +83,7 @@ _ctxpopup_item_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *even
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ITEM_NEW(_hov, _label, _icon) \
|
#define ITEM_NEW(_hov, _label, _icon) \
|
||||||
if(_icon) \
|
if (_icon) \
|
||||||
{ \
|
{ \
|
||||||
ic = elm_icon_add(obj); \
|
ic = elm_icon_add(obj); \
|
||||||
elm_icon_standard_set(ic, _icon); \
|
elm_icon_standard_set(ic, _icon); \
|
||||||
|
|
|
@ -217,7 +217,7 @@ my_gl_insert_before(void *data, Evas_Object *obj __UNUSED__, void *event_info __
|
||||||
itc1.func.del = gl_del;
|
itc1.func.del = gl_del;
|
||||||
|
|
||||||
gli_selected = elm_genlist_selected_item_get(gl);
|
gli_selected = elm_genlist_selected_item_get(gl);
|
||||||
if(!gli_selected)
|
if (!gli_selected)
|
||||||
{
|
{
|
||||||
printf("no item selected\n");
|
printf("no item selected\n");
|
||||||
return ;
|
return ;
|
||||||
|
@ -247,7 +247,7 @@ my_gl_insert_after(void *data, Evas_Object *obj __UNUSED__, void *event_info __U
|
||||||
itc1.func.del = gl_del;
|
itc1.func.del = gl_del;
|
||||||
|
|
||||||
gli_selected = elm_genlist_selected_item_get(gl);
|
gli_selected = elm_genlist_selected_item_get(gl);
|
||||||
if(!gli_selected)
|
if (!gli_selected)
|
||||||
{
|
{
|
||||||
printf("no item selected\n");
|
printf("no item selected\n");
|
||||||
return ;
|
return ;
|
||||||
|
|
|
@ -99,7 +99,7 @@ _icon_properties_find(icon_properties *icons, char *name)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
for(n = 0; n < N_GESTURE_TYPE; n++)
|
for (n = 0; n < N_GESTURE_TYPE; n++)
|
||||||
if (!strcmp(icons[n].name, name))
|
if (!strcmp(icons[n].name, name))
|
||||||
return &icons[n];
|
return &icons[n];
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ _icon_color_set_cb(void *data)
|
||||||
icon_properties *icons = data;
|
icon_properties *icons = data;
|
||||||
icon_properties *i;
|
icon_properties *i;
|
||||||
|
|
||||||
for(n = 0; n < N_GESTURE_TYPE; n++)
|
for (n = 0; n < N_GESTURE_TYPE; n++)
|
||||||
{
|
{
|
||||||
i = &icons[n];
|
i = &icons[n];
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ static void
|
||||||
_clicked_double(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
|
_clicked_double(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
|
||||||
{
|
{
|
||||||
printf("clicked double\n");
|
printf("clicked double\n");
|
||||||
if(elm_panes_content_left_size_get(obj) > 0)
|
if (elm_panes_content_left_size_get(obj) > 0)
|
||||||
{
|
{
|
||||||
size = elm_panes_content_left_size_get(obj);
|
size = elm_panes_content_left_size_get(obj);
|
||||||
elm_panes_content_left_size_set(obj, 0.0);
|
elm_panes_content_left_size_set(obj, 0.0);
|
||||||
|
|
|
@ -193,7 +193,7 @@ _photocam_mouse_wheel_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUS
|
||||||
|
|
||||||
val = 1;
|
val = 1;
|
||||||
int _zoom = zoom;
|
int _zoom = zoom;
|
||||||
while(_zoom>1)
|
while (_zoom>1)
|
||||||
{
|
{
|
||||||
_zoom /= 2;
|
_zoom /= 2;
|
||||||
val++;
|
val++;
|
||||||
|
|
Loading…
Reference in New Issue