summaryrefslogtreecommitdiff
path: root/src/nautilus-batch-rename-dialog.c
diff options
context:
space:
mode:
authorSirbu Lavinia Stefania <sirbu.lavinia.stefania@gmail.com>2016-09-28 18:01:40 -0400
committerCarlos Soriano <csoriano@gnome.org>2016-09-29 09:36:14 +0200
commitf2e10b9f101e44fc73b0c53d08961824d73fec1a (patch)
tree401457530a919e928e7f35ed6ca3891bf6225033 /src/nautilus-batch-rename-dialog.c
parentdcd4eb31444d62760a5ae79dfc4e1ac7b33aab44 (diff)
downloadnautilus-f2e10b9f101e44fc73b0c53d08961824d73fec1a.tar.gz
batch rename: show name when hovering over files
When we rename a group of files, we can see the names of the files inside a window with a certain dimension, so we see the part of the name that fits the window. The problem is that we cannot see the entire name of a file if the name is too long. Add a tooltip text on the label containing the name of a file. https://bugzilla.gnome.org/show_bug.cgi?id=771467
Diffstat (limited to 'src/nautilus-batch-rename-dialog.c')
-rw-r--r--src/nautilus-batch-rename-dialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-batch-rename-dialog.c b/src/nautilus-batch-rename-dialog.c
index 4e941e2e4..7f805ae23 100644
--- a/src/nautilus-batch-rename-dialog.c
+++ b/src/nautilus-batch-rename-dialog.c
@@ -625,7 +625,7 @@ create_original_name_row_for_label (NautilusBatchRenameDialog *dialog,
gtk_label_set_xalign (GTK_LABEL (label_old), 0.0);
gtk_widget_set_hexpand (label_old, TRUE);
gtk_widget_set_margin_start (label_old, ROW_MARGIN_START);
-
+ gtk_widget_set_tooltip_text(label_old, old_text);
gtk_label_set_ellipsize (GTK_LABEL (label_old), PANGO_ELLIPSIZE_END);
dialog->listbox_labels_old = g_list_prepend (dialog->listbox_labels_old, label_old);
@@ -652,7 +652,7 @@ create_result_row_for_label (NautilusBatchRenameDialog *dialog,
gtk_label_set_xalign (GTK_LABEL (label_new), 0.0);
gtk_widget_set_hexpand (label_new, TRUE);
gtk_widget_set_margin_start (label_new, ROW_MARGIN_START);
-
+ gtk_widget_set_tooltip_text(label_new, new_text);
gtk_label_set_ellipsize (GTK_LABEL (label_new), PANGO_ELLIPSIZE_END);
dialog->listbox_labels_new = g_list_prepend (dialog->listbox_labels_new, label_new);