summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-11-25 17:48:06 +0100
committerBastien Nocera <hadess@hadess.net>2014-11-25 17:48:06 +0100
commit177958c39fe8cce16d45f04a222706dd17a57aee (patch)
treebe82f80ccb8fb187e9f05ccf0fc3849ee8212a57
parent38b03784eede89df510b0092d77d86eb5c837f3a (diff)
downloadtotem-177958c39fe8cce16d45f04a222706dd17a57aee.tar.gz
backend: Add track-skip-requested signal
So that the video playback can request skipping tracks.
-rw-r--r--src/backend/bacon-video-widget.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 32efc1f92..1d6651692 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.
*