Index: src/galeon-tab.c
===================================================================
RCS file: /cvsroot/galeon/galeon/src/galeon-tab.c,v
retrieving revision 1.56
diff -u -p -r1.56 galeon-tab.c
--- src/galeon-tab.c	14 Sep 2002 19:06:29 -0000	1.56
+++ src/galeon-tab.c	16 Sep 2002 14:18:46 -0000
@@ -34,6 +34,8 @@
 #include <gtk/gtkimage.h>
 #include <gtk/gtkiconfactory.h>
 #include <gtk/gtkstyle.h>
+#include <gtk/gtktooltips.h>
+#include <gtk/gtkeventbox.h>
 
 #define TAB_MIN_SIZE 60
 #define TAB_MAX_SIZE 8
@@ -50,6 +52,8 @@ struct GaleonTabPrivate
 	int load_percent;
 	gboolean visibility;
 	GtkWidget *label, *hbox, *close_button;
+	GtkTooltips *tooltips;
+	GtkWidget *label_eventbox;
 	GtkStyle *loading_text_style;
 	GtkStyle *new_text_style;
 	int cur_requests;
@@ -334,6 +338,7 @@ galeon_tab_finalize (GObject *object)
         g_return_if_fail (tab->priv != NULL);
 
 	free_colours (tab);
+	g_object_unref (tab->priv->tooltips);
 	
         g_free (tab->priv);
 
@@ -501,10 +506,18 @@ galeon_tab_get_container (GaleonTab *tab
 				   image);
 		
 		/* setup label */ 
+		tab->priv->label_eventbox = gtk_event_box_new ();
+		gtk_box_pack_start (GTK_BOX (hbox), tab->priv->label_eventbox, 
+				    TRUE, TRUE, 0);
+		gtk_widget_show (tab->priv->label_eventbox);
+
+		tab->priv->tooltips = gtk_tooltips_new ();
+		g_object_ref (tab->priv->tooltips);
+		gtk_object_sink (GTK_OBJECT (tab->priv->tooltips));
         	tab->priv->label = label = gtk_label_new (_("Untitled"));
 		gtk_misc_set_alignment (GTK_MISC (label), 0.00, 0.5);
         	gtk_misc_set_padding (GTK_MISC (label), 4, 0);
-	        gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
+		gtk_container_add (GTK_CONTAINER (tab->priv->label_eventbox), label);
 		galeon_tab_label_set_size (tab);
 		
 		closure = g_cclosure_new (G_CALLBACK(galeon_tab_label_size_request_cb), 
@@ -606,6 +619,8 @@ static void
 galeon_tab_set_title (GaleonTab *tab, const char *title)
 {
 	gtk_label_set_label (GTK_LABEL(tab->priv->label), title);
+	gtk_tooltips_set_tip (tab->priv->tooltips, tab->priv->label_eventbox,
+			      title, NULL);
 }
 
 static void
