From e6cda9623c168a5944b89164b97cc00ad25c03b5 Mon Sep 17 00:00:00 2001 From: Felix Riemann Date: Wed, 30 Oct 2013 20:58:12 +0100 Subject: 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 --- src/eom-metadata-sidebar.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/eom-metadata-sidebar.c b/src/eom-metadata-sidebar.c index 77c91b7..dd997ae 100644 --- a/src/eom-metadata-sidebar.c +++ b/src/eom-metadata-sidebar.c @@ -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 (""); -- cgit v1.2.1