Skip to content

Commit

Permalink
EomMetadataSidebar: Allow filename to be wrapped at char boundaries
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fxri authored and raveit65 committed Jul 8, 2018
1 parent bcc8082 commit e6cda96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/eom-metadata-sidebar.c
Expand Up @@ -506,6 +506,10 @@ eom_metadata_sidebar_init (EomMetadataSidebar *sidebar)
&priv->size_label, _("File size:"));
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 ("");
Expand Down

0 comments on commit e6cda96

Please sign in to comment.