summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-18 19:25:41 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-18 19:25:41 (EDT)
commit9eb1eaea08e813fd51cd2ccb5b2d1a291c835b04 (patch)
treea762ea73543b54c7ae6fe09ef86322758e18fe21 /src
parent78963fc8b53abe5fe8e614de31266458e9b7f66a (diff)
downloadmarquee-9eb1eaea08e813fd51cd2ccb5b2d1a291c835b04.zip
marquee-9eb1eaea08e813fd51cd2ccb5b2d1a291c835b04.tar.gz
marquee-9eb1eaea08e813fd51cd2ccb5b2d1a291c835b04.tar.bz2
src/tab-chrome.c: Add tooltips to tab history list items
Diffstat (limited to 'src')
-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;
}