summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-08-22 09:20:54 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-08-22 09:20:54 +0000
commit93dd23541c4509d0134cfbefb056b436f6d572ce (patch)
tree42997834a62ead2d26f80da3299f74bbaa7c0912 /src
parenta66dbd28d1e72ac14807186b9ba06d60c4578dc9 (diff)
hide popmedia on video stop.
it was weird to have an empty popmedia background doing nothing. SVN revision: 75530
Diffstat (limited to 'src')
-rw-r--r--src/bin/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 6d4df34..fbf28c0 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -125,6 +125,12 @@ _cb_popmedia_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const char
125} 125}
126 126
127static void 127static void
128_cb_popmedia_del(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
129{
130 edje_object_signal_emit(bg, "popmedia,off", "terminology");
131}
132
133static void
128_cb_popup(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__) 134_cb_popup(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
129{ 135{
130 Evas_Object *o; 136 Evas_Object *o;
@@ -138,6 +144,7 @@ _cb_popup(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event __UNUS
138 if (popmedia) evas_object_del(popmedia); 144 if (popmedia) evas_object_del(popmedia);
139 if (!popmedia) termio_mouseover_suspend_pushpop(term, 1); 145 if (!popmedia) termio_mouseover_suspend_pushpop(term, 1);
140 popmedia = o = media_add(win, src, config, MEDIA_POP, &type); 146 popmedia = o = media_add(win, src, config, MEDIA_POP, &type);
147 evas_object_event_callback_add(o, EVAS_CALLBACK_DEL, _cb_popmedia_del, NULL);
141 edje_object_part_swallow(bg, "terminology.popmedia", o); 148 edje_object_part_swallow(bg, "terminology.popmedia", o);
142 evas_object_show(o); 149 evas_object_show(o);
143 if (type == TYPE_IMG) 150 if (type == TYPE_IMG)