[Xfce4-commits] [apps/xfce4-taskmanager] 04/15: use gtk_widget_is_visible instead of GTK_WIDGET_VISIBLE()

noreply at xfce.org noreply at xfce.org
Mon Dec 8 23:02:03 CET 2014


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

landry pushed a commit to branch landry/gtk3
in repository apps/xfce4-taskmanager.

commit 28c6cea9729fa07dcfc1a234671b64070f2ae32f
Author: Landry Breuil <landry at xfce.org>
Date:   Mon Dec 8 22:37:29 2014 +0100

    use gtk_widget_is_visible instead of GTK_WIDGET_VISIBLE()
---
 src/main.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main.c b/src/main.c
index 10fbe9b..48dfa76 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,7 +31,11 @@ static gboolean timeout = 0;
 static void
 status_icon_activated (void)
 {
+#ifdef HAVE_GTK3
+	if (!(gtk_widget_is_visible (window)))
+#else
 	if (!(GTK_WIDGET_VISIBLE (window)))
+#endif
 		gtk_widget_show (window);
 	else
 		gtk_widget_hide (window);

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


More information about the Xfce4-commits mailing list