diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-11-25 17:48:06 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-11-25 17:48:06 +0100 |
commit | 177958c39fe8cce16d45f04a222706dd17a57aee (patch) | |
tree | be82f80ccb8fb187e9f05ccf0fc3849ee8212a57 | |
parent | 38b03784eede89df510b0092d77d86eb5c837f3a (diff) | |
download | totem-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.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 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. * |