[epiphany] Set page title as a tooltip for tabs



commit 18c227908098a715b7b1686ffab6d151dc2459ba
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Jul 20 13:16:14 2015 -0500

    Set page title as a tooltip for tabs
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752606

 src/ephy-notebook.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 4a08341..5cc3bc6 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -509,7 +509,11 @@ sync_icon (EphyWebView *view,
 static void
 sync_label (EphyEmbed *embed, GParamSpec *pspec, GtkWidget *label)
 {
-       gtk_label_set_text (GTK_LABEL (label), ephy_embed_get_title (embed));
+       const char *title;
+
+       title = ephy_embed_get_title (embed);
+       gtk_label_set_text (GTK_LABEL (label), title);
+       gtk_widget_set_tooltip_text (label, title);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]