summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-07-17 10:15:13 +0200
committerraveit65 <[email protected]>2018-07-17 21:46:54 +0200
commitb504d5a183b4e0efb43ec756e4dfa97665b1be93 (patch)
treef949217838dd3feddf13d7b841f591209e332df3
parenta5ba9a2b15d0677bc19fea2deb5c239eb851756e (diff)
downloadeom-b504d5a183b4e0efb43ec756e4dfa97665b1be93.tar.bz2
eom-b504d5a183b4e0efb43ec756e4dfa97665b1be93.tar.xz
properties-dialog: show complete directory in button tooltip
-rw-r--r--src/eom-properties-dialog.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/eom-properties-dialog.c b/src/eom-properties-dialog.c
index 299e056..1550971 100644
--- a/src/eom-properties-dialog.c
+++ b/src/eom-properties-dialog.c
@@ -116,7 +116,7 @@ static void
pd_update_general_tab (EomPropertiesDialog *prop_dlg,
EomImage *image)
{
- gchar *bytes_str, *dir_str;
+ gchar *bytes_str, *dir_str, *dir_str_long;
gchar *width_str, *height_str;
GFile *file, *parent_file;
GFileInfo *file_info;
@@ -174,6 +174,11 @@ pd_update_general_tab (EomPropertiesDialog *prop_dlg,
dir_str = g_file_get_basename (parent_file);
gtk_button_set_label (GTK_BUTTON (prop_dlg->priv->folder_button),
dir_str);
+
+ dir_str_long = g_file_get_path (parent_file);
+ gtk_widget_set_tooltip_text (GTK_WIDGET (prop_dlg->priv->folder_button),
+ dir_str_long);
+
g_free (prop_dlg->priv->folder_button_uri);
prop_dlg->priv->folder_button_uri = g_file_get_uri (parent_file);
g_object_unref (parent_file);
@@ -181,6 +186,7 @@ pd_update_general_tab (EomPropertiesDialog *prop_dlg,
g_free (type_str);
g_free (bytes_str);
g_free (dir_str);
+ g_free (dir_str_long);
}
#if HAVE_EXEMPI
@@ -676,10 +682,6 @@ eom_properties_dialog_init (EomPropertiesDialog *prop_dlg)
"clicked",
G_CALLBACK (pd_folder_button_clicked_cb),
prop_dlg);
- gtk_widget_set_tooltip_text (GTK_WIDGET (priv->folder_button),
- _("Show the folder which contains this "
- "file in the file manager"));
- priv->folder_button_uri = NULL;
gtk_widget_set_size_request (priv->thumbnail_image, 100, 100);