summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-04-18 20:20:36 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-04-18 20:20:36 +0100
commit301bd78a196762f57f7e262bfb342a417a413beb (patch)
tree3f151b775e94508fec6b5a4f84c290d64b3cfc90 /src
parent5f898197829a2d5efdf554e82f1ffcccf6cc30e9 (diff)
elm theme - emit right signal for frame close
Diffstat (limited to 'src')
-rw-r--r--src/bin/elementary/test_scaling.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/elementary/test_scaling.c b/src/bin/elementary/test_scaling.c
index d616fe12fb..1fc8843f27 100644
--- a/src/bin/elementary/test_scaling.c
+++ b/src/bin/elementary/test_scaling.c
@@ -3,6 +3,18 @@
3#endif 3#endif
4#include <Elementary.h> 4#include <Elementary.h>
5 5
6static void
7_fr_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
8{
9 printf("clicked\n");
10}
11
12static void
13_fr_close(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
14{
15 printf("close\n");
16}
17
6void 18void
7test_scaling(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 19test_scaling(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
8{ 20{
@@ -105,6 +117,8 @@ test_scaling2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
105 fr = elm_frame_add(win); 117 fr = elm_frame_add(win);
106 elm_object_style_set(fr, "border"); 118 elm_object_style_set(fr, "border");
107 elm_object_text_set(fr, "Scale: 1.0"); 119 elm_object_text_set(fr, "Scale: 1.0");
120 evas_object_smart_callback_add(fr, "clicked", _fr_clicked, NULL);
121 evas_object_smart_callback_add(fr, "close", _fr_close, NULL);
108 lb = elm_label_add(win); 122 lb = elm_label_add(win);
109 elm_object_text_set(lb, 123 elm_object_text_set(lb,
110 "Parent frame scale<br/>" 124 "Parent frame scale<br/>"