Skip to content

Commit e6cda96

Browse files
fxriraveit65
authored andcommitted
EomMetadataSidebar: 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 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/cee1f77
1 parent bcc8082 commit e6cda96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/eom-metadata-sidebar.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,10 @@ eom_metadata_sidebar_init (EomMetadataSidebar *sidebar)
506506
&priv->size_label, _("File size:"));
507507
label = _gtk_grid_append_prop_line (GTK_GRID (priv->grid), label,
508508
NULL, _("Folder:"));
509+
/* Enable wrapping at char boundaries as fallback for the filename
510+
* as it is possible for it to not contain any "words" to wrap on. */
511+
gtk_label_set_line_wrap_mode (GTK_LABEL (priv->name_label),
512+
PANGO_WRAP_WORD_CHAR);
509513

510514
{
511515
priv->folder_button = gtk_button_new_with_label ("");

0 commit comments

Comments
 (0)