summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2008-06-23 09:34:38 +0000
committerEmmanuele Bassi <ebassi@openedhand.com>2008-06-23 09:34:38 +0000
commit883c1427440416fb7bf0d22a97117b6fa3239f73 (patch)
treefad9c0a28dabeffe19a35a16f4f00e0d878ce5cf /examples
parent058460509f5e1f54cd76239ce9f73ac295ac0b1a (diff)
downloadclutter-gst-883c1427440416fb7bf0d22a97117b6fa3239f73.tar.gz
2008-06-23 Emmanuele Bassi <ebassi@openedhand.com>
Bug 978 - Inclusion of <gdk-pixbuf/gdk-pixbuf.h> in clutter-gst-video-texture.h * Makefile.am: * clutter-gst/Makefile.am: Substitute 0.6 with 0.7. * clutter-gst/clutter-gst-video-texture.h: Remove inclusion of gdk-pixbuf.h: Clutter-GST does not depend on GdkPixbuf. (978, Haakon Sporsheim) * examples/video-player.c: (input_cb): Use clutter_actor_get_transformed_position(). (main): Remove unused GdkPixbuf variable.
Diffstat (limited to 'examples')
-rw-r--r--examples/video-player.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/video-player.c b/examples/video-player.c
index 10dba01..1dd5fd0 100644
--- a/examples/video-player.c
+++ b/examples/video-player.c
@@ -1,3 +1,6 @@
+#include <stdlib.h>
+
+#include <clutter/clutter.h>
#include <clutter-gst/clutter-gst.h>
#define SEEK_H 20
@@ -145,7 +148,8 @@ input_cb (ClutterStage *stage,
{
gint x, y, dist, pos;
- clutter_actor_get_abs_position (app->control_seekbar, &x, &y);
+ clutter_actor_get_transformed_position (app->control_seekbar,
+ &x, &y);
dist = bev->x - x;
@@ -261,7 +265,6 @@ main (int argc, char *argv[])
ClutterColor stage_color = { 0x00, 0x00, 0x00, 0x00 };
ClutterColor control_color1 = { 73, 74, 77, 0xee };
ClutterColor control_color2 = { 0xcc, 0xcc, 0xcc, 0xff };
- GdkPixbuf *pixb;
gint x,y;
if (argc < 2)