[gthumb/ext] show full uri as a tooltip in go-to menu items, bug 596361
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] show full uri as a tooltip in go-to menu items, bug 596361
- Date: Thu, 8 Oct 2009 13:22:32 +0000 (UTC)
commit c03e5dfda8b8189b44b7f78afba52f640fb050d4
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Thu Oct 8 09:21:44 2009 -0400
show full uri as a tooltip in go-to menu items, bug 596361
gthumb/gth-browser.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 551716d..0370ea4 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -324,9 +324,12 @@ _gth_browser_add_file_menu_item_full (GthBrowser *browser,
gtk_menu_shell_insert (GTK_MENU_SHELL (menu), menu_item, position);
if (action == GTH_ACTION_GO_TO) {
+ char *uri = g_file_get_uri (file);
+ gtk_widget_set_tooltip_text (GTK_WIDGET (menu_item), uri);
+
g_object_set_data_full (G_OBJECT (menu_item),
"uri",
- g_file_get_uri (file),
+ uri,
(GDestroyNotify) g_free);
g_signal_connect (menu_item,
"activate",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]