[nautilus] batch rename: show name when hovering over files



commit f2e10b9f101e44fc73b0c53d08961824d73fec1a
Author: Sirbu Lavinia Stefania <sirbu lavinia stefania gmail com>
Date:   Wed Sep 28 18:01:40 2016 -0400

    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

 src/nautilus-batch-rename-dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-batch-rename-dialog.c b/src/nautilus-batch-rename-dialog.c
index 4e941e2..7f805ae 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]