forked from enlightenment/efl
elm theme - emit right signal for frame close
This commit is contained in:
parent
5f89819782
commit
301bd78a19
|
@ -210,7 +210,7 @@ group { name: "elm/frame/base/border";
|
||||||
target: "close";
|
target: "close";
|
||||||
}
|
}
|
||||||
program { signal: "mouse,clicked,1"; source: "close";
|
program { signal: "mouse,clicked,1"; source: "close";
|
||||||
action: SIGNAL_EMIT "elm,action,click,close" "elm";
|
action: SIGNAL_EMIT "elm,action,close" "elm";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,18 @@
|
||||||
#endif
|
#endif
|
||||||
#include <Elementary.h>
|
#include <Elementary.h>
|
||||||
|
|
||||||
|
static void
|
||||||
|
_fr_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||||
|
{
|
||||||
|
printf("clicked\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_fr_close(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||||
|
{
|
||||||
|
printf("close\n");
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
test_scaling(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
test_scaling(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
|
||||||
{
|
{
|
||||||
|
@ -105,6 +117,8 @@ test_scaling2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
|
||||||
fr = elm_frame_add(win);
|
fr = elm_frame_add(win);
|
||||||
elm_object_style_set(fr, "border");
|
elm_object_style_set(fr, "border");
|
||||||
elm_object_text_set(fr, "Scale: 1.0");
|
elm_object_text_set(fr, "Scale: 1.0");
|
||||||
|
evas_object_smart_callback_add(fr, "clicked", _fr_clicked, NULL);
|
||||||
|
evas_object_smart_callback_add(fr, "close", _fr_close, NULL);
|
||||||
lb = elm_label_add(win);
|
lb = elm_label_add(win);
|
||||||
elm_object_text_set(lb,
|
elm_object_text_set(lb,
|
||||||
"Parent frame scale<br/>"
|
"Parent frame scale<br/>"
|
||||||
|
|
Loading…
Reference in New Issue