summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Riemann <[email protected]>2013-10-30 20:58:12 +0100
committerraveit65 <[email protected]>2018-07-08 12:29:16 +0200
commite6cda9623c168a5944b89164b97cc00ad25c03b5 (patch)
tree6ead051b4cfa1ab275d9833a5bc704a7822281ae
parentbcc8082add8dd70e05d9b0d8494ba6c579dfd921 (diff)
downloadeom-e6cda9623c168a5944b89164b97cc00ad25c03b5.tar.bz2
eom-e6cda9623c168a5944b89164b97cc00ad25c03b5.tar.xz
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
-rw-r--r--src/eom-metadata-sidebar.c4
1 files changed, 4 insertions, 0 deletions
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 ("");