[Xfce4-commits] [apps/parole] 01/01: Fix Gtk-CRITICAL when closing main window (bug #15621)

noreply at xfce.org noreply at xfce.org
Mon Jul 22 13:08:43 CEST 2019


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/parole.

commit 4d14e5a550519cb8456028c2b1691e3d6de151f9
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Mon Jul 22 07:08:36 2019 -0400

    Fix Gtk-CRITICAL when closing main window (bug #15621)
---
 src/parole-plugin-player.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/parole-plugin-player.c b/src/parole-plugin-player.c
index 49ac843..54b31a3 100644
--- a/src/parole-plugin-player.c
+++ b/src/parole-plugin-player.c
@@ -79,7 +79,10 @@ parole_plugin_player_get_main_window(ParoleProviderPlayer *provider) {
     ParolePluginPlayer *player;
 
     player = PAROLE_PLUGIN_PLAYER(provider);
-    return gtk_widget_get_toplevel (player->priv->gst);
+    if (GTK_IS_WIDGET (player->priv->gst)) {
+        return gtk_widget_get_toplevel (player->priv->gst);
+    }
+    return NULL;
 }
 
 static void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list