[Swfdec-commits] src/swfmoz_player.c

Pekka Lampila medar at kemper.freedesktop.org
Tue Jan 29 12:21:20 PST 2008


 src/swfmoz_player.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 5bf9ad11b957291986b71d6e51989d53760a16a7
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date:   Tue Jan 29 12:29:35 2008 +0200

    Use the click cursor when not playing

diff --git a/src/swfmoz_player.c b/src/swfmoz_player.c
index a000fbe..5f75d89 100644
--- a/src/swfmoz_player.c
+++ b/src/swfmoz_player.c
@@ -243,7 +243,12 @@ swfmoz_player_update_cursor (SwfmozPlayer *player)
   if (window == NULL)
     return;
   display = gdk_drawable_get_display (window);
-  g_object_get (player, "mouse-cursor", &swfcursor, NULL);
+
+  if (!swfdec_gtk_player_get_playing (SWFDEC_GTK_PLAYER (player))) {
+    swfcursor = SWFDEC_MOUSE_CURSOR_CLICK;
+  } else {
+    g_object_get (player, "mouse-cursor", &swfcursor, NULL);
+  }
 
   switch (swfcursor) {
     case SWFDEC_MOUSE_CURSOR_NONE:
@@ -287,6 +292,7 @@ static void
 swfmoz_player_notify (SwfmozPlayer *player, GParamSpec *pspec, gpointer unused)
 {
   if (g_str_equal (pspec->name, "playing")) {
+    swfmoz_player_update_cursor (player);
     swfmoz_player_invalidate (player);
   } else if (g_str_equal (pspec->name, "mouse-cursor")) {
     swfmoz_player_update_cursor (player);


More information about the Swfdec-commits mailing list