summaryrefslogtreecommitdiff
path: root/thunar/thunar-history.c
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-10-21 21:23:12 +0200
committerNick Schermer <nick@xfce.org>2012-10-21 21:23:12 +0200
commitbf583384eeff0bf0eaa3ea7ccf57adf736ddcccf (patch)
treee74489ad7563c93765c03101c8f09c4484ecdc6d /thunar/thunar-history.c
parent77471b4220d1ddd1a150dff8fca4a310a83efe3d (diff)
downloadthunar-bf583384eeff0bf0eaa3ea7ccf57adf736ddcccf.tar.gz
Show tooltip uri/filename in history menu item.
Diffstat (limited to 'thunar/thunar-history.c')
-rw-r--r--thunar/thunar-history.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/thunar/thunar-history.c b/thunar/thunar-history.c
index f8810aaf..ba2939e6 100644
--- a/thunar/thunar-history.c
+++ b/thunar/thunar-history.c
@@ -595,6 +595,7 @@ thunar_history_show_menu (GtkAction *action,
ThunarFile *file;
const gchar *display_name;
const gchar *icon_name;
+ gchar *parse_name;
_thunar_return_if_fail (GTK_IS_ACTION (action));
_thunar_return_if_fail (GTK_IS_MENU_SHELL (menu));
@@ -629,6 +630,10 @@ thunar_history_show_menu (GtkAction *action,
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
gtk_widget_show (item);
+ parse_name = g_file_get_parse_name (lp->data);
+ gtk_widget_set_tooltip_text (item, parse_name);
+ g_free (parse_name);
+
file = thunar_file_cache_lookup (lp->data);
image = NULL;
if (file != NULL)