Skip to content
Permalink
Browse files

sidebar: show complete directory in button tooltip

  • Loading branch information...
vkareh authored and raveit65 committed Jul 17, 2018
1 parent b504d5a commit 5c5883772852ad59676bf60ddda06af567193c63
Showing with 5 additions and 2 deletions.
  1. +5 −2 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);
}

0 comments on commit 5c58837

Please sign in to comment.
You can’t perform that action at this time.