Made the hide code gtk2/3 compatible

This commit is contained in:
Peter de Ridder
2014-12-19 12:00:25 +01:00
parent e3b43c6c4c
commit 867e10b1d0
2 changed files with 3 additions and 11 deletions

View File

@@ -31,11 +31,7 @@ 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
if (!(gtk_widget_get_visible (window)))
gtk_widget_show (window);
else
gtk_widget_hide (window);