Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/epiphany/ChangeLog,v
retrieving revision 1.402
diff -u -p -r1.402 ChangeLog
--- ChangeLog	10 May 2003 07:40:29 -0000	1.402
+++ ChangeLog	10 May 2003 18:07:16 -0000
@@ -1,3 +1,11 @@
+2003-05-10  Christian Persch  <chpe+gnomebugz@stud.uni-saarland.de>
+
+	* src/ephy-notebook.c: (tab_close_button_state_changed_cb),
+	(tab_build_label):
+
+	Never show the border around the close button.
+	Copied the galeon patch made by Juho Snellman <jsnell@iki.fi>.
+
 2003-05-10  Marco Pesenti Gritti  <marco@it.gnome.org>
 
 	* embed/mozilla/mozilla-embed.cpp:
Index: src/ephy-notebook.c
===================================================================
RCS file: /cvs/gnome/epiphany/src/ephy-notebook.c,v
retrieving revision 1.2
diff -u -p -r1.2 ephy-notebook.c
--- src/ephy-notebook.c	6 May 2003 11:59:09 -0000	1.2
+++ src/ephy-notebook.c	10 May 2003 18:07:17 -0000
@@ -813,6 +813,17 @@ ephy_tab_close_button_clicked_cb (GtkWid
 	ephy_notebook_remove_page (notebook, child);
 }
 
+static void
+tab_close_button_state_changed_cb (GtkWidget *widget,
+				   GtkStateType state,
+				   gpointer user_data)
+{
+	if (GTK_WIDGET_STATE (widget) == GTK_STATE_ACTIVE)
+	{
+		gtk_widget_set_state (widget, GTK_STATE_NORMAL);
+	}
+}
+
 static GtkWidget *
 tab_build_label (EphyNotebook *nb, GtkWidget *child)
 {
@@ -872,6 +883,9 @@ tab_build_label (EphyNotebook *nb, GtkWi
 	gtk_box_pack_start (GTK_BOX (hbox), close_button,
                             FALSE, FALSE, 0);
 
+	g_signal_connect (G_OBJECT (close_button), "state-changed",
+			  G_CALLBACK (tab_close_button_state_changed_cb),
+			  NULL);
 	g_signal_connect (G_OBJECT (close_button), "clicked",
                           G_CALLBACK (ephy_tab_close_button_clicked_cb),
                           child);
