[eog] EogMetadataSidebar: Allow filename to be wrapped at char boundaries



commit cee1f77d67767487f6cf12a01f122e2d7f11b275
Author: Felix Riemann <friemann gnome org>
Date:   Wed Oct 30 20:58:12 2013 +0100

    EogMetadataSidebar: Allow filename to be wrapped at char boundaries
    
    It is possible for this field to contain no "word".
    Enable wrapping at char boundaries as fallback so that such files
    don't cause the sidebar enlarging too much.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700717

 src/eog-metadata-sidebar.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-metadata-sidebar.c b/src/eog-metadata-sidebar.c
index 9e4f83f..2407bba 100644
--- a/src/eog-metadata-sidebar.c
+++ b/src/eog-metadata-sidebar.c
@@ -504,6 +504,11 @@ eog_metadata_sidebar_init (EogMetadataSidebar *sidebar)
        label = _gtk_grid_append_prop_line (GTK_GRID (priv->grid), label,
                                            NULL, _("Folder:"));
 
+       /* Enable wrapping at char boundaries as fallback for the filename
+        * as it is possible for it to not contain any "words" to wrap on. */
+       gtk_label_set_line_wrap_mode (GTK_LABEL (priv->name_label),
+                                     PANGO_WRAP_WORD_CHAR);
+
 {
        priv->folder_button = gtk_button_new_with_label ("");
        g_signal_connect (priv->folder_button, "clicked",


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