summaryrefslogtreecommitdiffstats
path: root/src/tab-chrome.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tab-chrome.c')
-rw-r--r--src/tab-chrome.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c
index c60a882..cd06881 100644
--- a/src/tab-chrome.c
+++ b/src/tab-chrome.c
@@ -54,13 +54,16 @@ static GtkWidget *
back_forward_list_item_new(WebKitBackForwardListItem *list_item,
GtkWidget *icon)
{
+ GtkWidget *label;
GtkWidget *box;
+ label = gtk_label_new(webkit_back_forward_list_item_get_title(
+ list_item));
+ gtk_widget_set_tooltip_text(label,
+ webkit_back_forward_list_item_get_uri(list_item));
box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start(GTK_BOX(box), icon, FALSE, FALSE, 0);
- gtk_box_pack_start(GTK_BOX(box), gtk_label_new(
- webkit_back_forward_list_item_get_title(
- list_item)), TRUE, TRUE, 0);
+ gtk_box_pack_start(GTK_BOX(box), label, TRUE, TRUE, 0);
return box;
}