[totem] backend: Add track-skip-requested signal



commit 177958c39fe8cce16d45f04a222706dd17a57aee
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 25 17:48:06 2014 +0100

    backend: Add track-skip-requested signal
    
    So that the video playback can request skipping tracks.

 src/backend/bacon-video-widget.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 32efc1f..1d66516 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -130,6 +130,7 @@ enum
   SIGNAL_MISSING_PLUGINS,
   SIGNAL_DOWNLOAD_BUFFERING,
   SIGNAL_SEEK_REQUESTED,
+  SIGNAL_TRACK_SKIP_REQUESTED,
   SIGNAL_VOLUME_CHANGE_REQUESTED,
   LAST_SIGNAL
 };
@@ -1386,6 +1387,20 @@ bacon_video_widget_class_init (BaconVideoWidgetClass * klass)
                   g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
 
   /**
+   * BaconVideoWidget::track-skip-requested:
+   * @forward: whether the track change requested is a forward or backward skip.
+   *
+   * Emitted when a gesture, our mouse movement that should seek is made.
+   **/
+  bvw_signals[SIGNAL_TRACK_SKIP_REQUESTED] =
+    g_signal_new ("track-skip-requested",
+                  G_TYPE_FROM_CLASS (object_class),
+                  G_SIGNAL_RUN_LAST,
+                  0,
+                  NULL, NULL,
+                  g_cclosure_marshal_generic, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
+
+  /**
    * BaconVideoWidget::volume-change-requested:
    * @increase: whether the volume change requested is an increase or decrease.
    *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]