[gtk+/wip/baedert/gtkimageview: 120/135] imageview: Stop the old playable
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 120/135] imageview: Stop the old playable
- Date: Tue, 19 Jul 2016 12:50:57 +0000 (UTC)
commit ba2985234fc66454b2bf2ab87557b74e085091b8
Author: Timm Bäder <mail baedert org>
Date: Sat Mar 19 15:20:49 2016 +0100
imageview: Stop the old playable
gtk/gtkimageview.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkimageview.c b/gtk/gtkimageview.c
index bc936a9..e070396 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -2120,6 +2120,9 @@ gtk_image_view_replace_image (GtkImageView *image_view,
if (priv->image)
{
g_signal_handlers_disconnect_by_func (priv->image, image_changed_cb, image_view);
+ if (GTK_IS_PLAYABLE (priv->image))
+ gtk_playable_stop (GTK_PLAYABLE (priv->image));
+
g_object_unref (priv->image);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]