summary refs log tree commit diff stats
path: root/src/fe-gtk/dccgui.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-05-16 09:07:38 -0700
committerTingPing <tngpng@gmail.com>2013-05-16 09:07:38 -0700
commit69c2893234452107b2db67e431868d7400ea25aa (patch)
tree904233560d5029a472ec6416b4874f55c9b17011 /src/fe-gtk/dccgui.c
parent26cefd0587a5ca092a7b4ee442c144eee9e19dc5 (diff)
parent8ccd11ee4bbf3d4a7a7fc06a872eca6d20544cba (diff)
Merge pull request #586 from bviktor/authcleanup
Login and network list cleanup
Diffstat (limited to 'src/fe-gtk/dccgui.c')
-rw-r--r--src/fe-gtk/dccgui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fe-gtk/dccgui.c b/src/fe-gtk/dccgui.c
index 0fb2e7e5..24d3bcbf 100644
--- a/src/fe-gtk/dccgui.c
+++ b/src/fe-gtk/dccgui.c
@@ -685,14 +685,14 @@ dcc_detail_label (char *text, GtkWidget *box, int num)
 static void
 dcc_exp_cb (GtkWidget *exp, GtkWidget *box)
 {
-#if GTK_CHECK_VERSION(2,20,0)
 	if (gtk_widget_get_visible (box))
-#else
-	if (GTK_WIDGET_VISIBLE (box))
-#endif
+	{
 		gtk_widget_hide (box);
+	}
 	else
+	{
 		gtk_widget_show (box);
+	}
 }
 
 static void