[gtk+/wip/baedert/gtkimageview: 113/118] imageview: Stop the old playable
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 113/118] imageview: Stop the old playable
- Date: Thu, 12 May 2016 20:04:51 +0000 (UTC)
commit d909db438101d754d86f157d37660abf0beed122
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 c4476d5..edbdbf1 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -2113,6 +2113,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]