Index: src/ephy-notebook.c
===================================================================
RCS file: /cvs/gnome/epiphany/src/ephy-notebook.c,v
retrieving revision 1.96
diff -u -p -r1.96 ephy-notebook.c
--- src/ephy-notebook.c	12 Nov 2006 13:26:52 -0000	1.96
+++ src/ephy-notebook.c	29 Nov 2006 19:02:54 -0000
@@ -54,6 +54,10 @@
 
 #define INSANE_NUMBER_OF_URLS 20
 
+/* Tooltip related */
+#define TOOLTIP_MAX_LENGTH 100
+#define TOOLTIP_SUFFIX "…"
+
 /* Until https://bugzilla.mozilla.org/show_bug.cgi?id=296002 is fixed */
 #define KEEP_TAB_IN_SAME_TOPLEVEL
 
@@ -566,7 +570,7 @@ static void
 sync_label (EphyTab *tab, GParamSpec *pspec, GtkWidget *proxy)
 {
 	GtkWidget *label, *ebox;
-	GtkTooltips *tips;	
+	GtkTooltips *tips;
 	const char *title;
 
 	ebox = GTK_WIDGET (g_object_get_data (G_OBJECT (proxy), "label-ebox"));
@@ -580,6 +584,9 @@ sync_label (EphyTab *tab, GParamSpec *ps
 	if (title)
 	{
 		gtk_label_set_text (GTK_LABEL (label), title);
+		gtk_tooltips_force_window (tips);
+		gtk_label_set_max_width_chars (GTK_LABEL (tips->tip_label), TOOLTIP_MAX_LENGTH);
+		gtk_label_set_ellipsize (GTK_LABEL (tips->tip_label), PANGO_ELLIPSIZE_END);
 		gtk_tooltips_set_tip (tips, ebox, title, NULL);
 	}
 }
