Skip to content
Permalink
Browse files

properties-dialog: show complete directory in button tooltip

  • Loading branch information...
raveit65 committed Jul 17, 2018
1 parent a5ba9a2 commit b504d5a183b4e0efb43ec756e4dfa97665b1be93
Showing with 7 additions and 5 deletions.
  1. +7 −5 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,13 +174,19 @@ 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);

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);

0 comments on commit b504d5a

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