diff options
author | Victor Kareh <[email protected]> | 2018-07-17 14:13:33 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-07-17 21:46:54 +0200 |
commit | 5c5883772852ad59676bf60ddda06af567193c63 (patch) | |
tree | 70728222e4bdba77185c8589eb651f3ebbcc6f92 /src | |
parent | b504d5a183b4e0efb43ec756e4dfa97665b1be93 (diff) | |
download | eom-5c5883772852ad59676bf60ddda06af567193c63.tar.bz2 eom-5c5883772852ad59676bf60ddda06af567193c63.tar.xz |
sidebar: show complete directory in button tooltip
Diffstat (limited to 'src')
-rw-r--r-- | src/eom-metadata-sidebar.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/eom-metadata-sidebar.c b/src/eom-metadata-sidebar.c index 5d6a5ad..1c01abd 100644 --- a/src/eom-metadata-sidebar.c +++ b/src/eom-metadata-sidebar.c @@ -271,6 +271,11 @@ eom_metadata_sidebar_update_general_section (EomMetadataSidebar *sidebar) str = g_file_get_basename (parent_file); gtk_button_set_label (GTK_BUTTON (priv->folder_button), str); g_free (str); + + str = g_file_get_path (parent_file); + gtk_widget_set_tooltip_text (GTK_WIDGET (priv->folder_button), str); + g_free (str); + g_object_unref (parent_file); } @@ -520,8 +525,6 @@ eom_metadata_sidebar_init (EomMetadataSidebar *sidebar) gtk_widget_set_margin_start (priv->folder_button, 12); gtk_widget_set_margin_end (priv->folder_button, 12); gtk_widget_set_margin_top (priv->folder_button, 3); - gtk_widget_set_tooltip_text (priv->folder_button, _("Show the folder " - "which contains this file in the file manager")); gtk_box_pack_end (GTK_BOX (label), priv->folder_button, FALSE, FALSE, 0); } |