diff src/gtkconv.c @ 11851:3bfb2cffcef2

[gaim-migrate @ 14142] inspired by Richard Stellingwerff's patch 1339606, this workaround for annoying visible borders on tab close buttons is no longer required with at least gtk 2.6 (if someone can confirm if it was fixed in 2.4 we could remove it there too) committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 27 Oct 2005 15:15:52 +0000
parents 908ff9b56e99
children 4ab3ce602932
line wrap: on
line diff
--- a/src/gtkconv.c	Thu Oct 27 14:40:48 2005 +0000
+++ b/src/gtkconv.c	Thu Oct 27 15:15:52 2005 +0000
@@ -5800,6 +5800,7 @@
 	return FALSE;
 }
 
+#if !GTK_CHECK_VERSION(2,6,0)
 /* Courtesy of Galeon! */
 static void
 tab_close_button_state_changed_cb(GtkWidget *widget, GtkStateType prev_state)
@@ -5807,6 +5808,7 @@
 	if (GTK_WIDGET_STATE(widget) == GTK_STATE_ACTIVE)
 		gtk_widget_set_state(widget, GTK_STATE_NORMAL);
 }
+#endif
 
 static void
 notebook_init_grab(GaimGtkWindow *gtkwin, GtkWidget *widget)
@@ -6405,12 +6407,15 @@
 	g_signal_connect(G_OBJECT(gtkconv->close), "clicked",
 	                 G_CALLBACK(close_conv_cb), gtkconv);
 
+#if !GTK_CHECK_VERSION(2,6,0)
 	/*
 	* I love Galeon. They have a fix for that stupid annoying visible
 	* border bug. I love you guys! -- ChipX86
 	*/
+	/* This is fixed properly in some version of Gtk before 2.6.0  */
 	g_signal_connect(G_OBJECT(gtkconv->close), "state_changed",
 	                 G_CALLBACK(tab_close_button_state_changed_cb), NULL);
+#endif
 
 	/* Status icon. */
 	gtkconv->icon = gtk_image_new();