Skip to content


properties-dialog: show complete directory in button tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Jul 17, 2018
1 parent a5ba9a2 commit b504d5a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/eom-properties-dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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_long = g_file_get_path (parent_file);
gtk_widget_set_tooltip_text (GTK_WIDGET (prop_dlg->priv->folder_button),

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

Expand Down Expand Up @@ -676,10 +682,6 @@ eom_properties_dialog_init (EomPropertiesDialog *prop_dlg)
G_CALLBACK (pd_folder_button_clicked_cb),
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);

Expand Down

0 comments on commit b504d5a

Please sign in to comment.