From 9eb1eaea08e813fd51cd2ccb5b2d1a291c835b04 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 18 Sep 2017 19:25:41 -0400 Subject: src/tab-chrome.c: Add tooltips to tab history list items --- (limited to 'src') 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; } -- cgit v0.9.1