Enlightenment CVS committal
Author : pfritz
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_media.c ewl_media.h
Log Message:
make the video in ewl_media visible again
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_media.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- ewl_media.c 28 May 2006 02:39:56 -0000 1.21
+++ ewl_media.c 28 May 2006 17:09:06 -0000 1.22
@@ -61,6 +61,8 @@
ewl_callback_append(w, EWL_CALLBACK_REALIZE, ewl_media_realize_cb,
NULL);
+ ewl_callback_append(w, EWL_CALLBACK_REVEAL, ewl_media_reveal_cb,
+ NULL);
ewl_callback_append(w, EWL_CALLBACK_UNREALIZE, ewl_media_unrealize_cb,
NULL);
ewl_callback_append(w, EWL_CALLBACK_CONFIGURE, ewl_media_configure_cb,
@@ -496,17 +498,41 @@
ewl_media_size_update(m);
}
#endif
-
- evas_object_smart_member_add(m->video, w->smart_object);
- if (w->fx_clip_box) {
- evas_object_clip_set(m->video, w->fx_clip_box);
- evas_object_stack_below(m->video, w->fx_clip_box);
- }
-
/*
* Now set the media and display it.
*/
evas_object_show(m->video);
+
+ DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+/**
+ * @internal
+ * @param w: The widget to work with
+ * @param ev_data: UNUSED
+ * @param user_data: UNUSED
+ * @return Returns no value
+ * @brief The reveal callback
+ */
+void
+ewl_media_reveal_cb(Ewl_Widget *w, void *ev_data __UNUSED__,
+ void *user_data __UNUSED__)
+{
+ Ewl_Media *m;
+
+ DENTER_FUNCTION(DLEVEL_STABLE);
+ DCHECK_PARAM_PTR("w", w);
+ DCHECK_TYPE("w", w, EWL_WIDGET_TYPE);
+
+ m = EWL_MEDIA(w);
+
+ if (m->video) {
+ evas_object_smart_member_add(m->video, w->smart_object);
+ if (w->fx_clip_box) {
+ evas_object_clip_set(m->video, w->fx_clip_box);
+ evas_object_stack_above(m->video, w->fx_clip_box);
+ }
+ }
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_media.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ewl_media.h 20 Apr 2006 02:58:01 -0000 1.13
+++ ewl_media.h 28 May 2006 17:09:06 -0000 1.14
@@ -79,6 +79,7 @@
* Internally used callbacks, override at your own risk.
*/
void ewl_media_realize_cb(Ewl_Widget *w, void *ev_data, void *user_data);
+void ewl_media_reveal_cb(Ewl_Widget *w, void *ev_data, void *user_data);
void ewl_media_unrealize_cb(Ewl_Widget *w, void *ev_data, void *user_data);
void ewl_media_configure_cb(Ewl_Widget *w, void *ev_data, void *user_data);
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs