summary refs log tree commit diff stats
path: root/src/fe-gtk/dccgui.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-05-11 13:06:25 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-05-11 13:06:25 +0200
commit712eb5428e1b2aa2a9edfb3eb95375f0fca29ff5 (patch)
tree817e53bef3e34afc7be943c1b90cdf6b1cc5a6cd /src/fe-gtk/dccgui.c
parent5c663adf3518701db794e11c3d332423f51b9f0e (diff)
GtkComboBoxText requires GTK+ 2.24, dump code for older versions
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