[Xfce4-commits] <thunar:master> Show tooltip uri/filename in history menu item.
Nick Schermer
noreply at xfce.org
Mon Oct 22 17:48:05 CEST 2012
Updating branch refs/heads/master
to bf583384eeff0bf0eaa3ea7ccf57adf736ddcccf (commit)
from 77471b4220d1ddd1a150dff8fca4a310a83efe3d (commit)
commit bf583384eeff0bf0eaa3ea7ccf57adf736ddcccf
Author: Nick Schermer <nick at xfce.org>
Date: Sun Oct 21 21:23:12 2012 +0200
Show tooltip uri/filename in history menu item.
thunar/thunar-history.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/thunar/thunar-history.c b/thunar/thunar-history.c
index f8810aa..ba2939e 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)
More information about the Xfce4-commits
mailing list