aboutsummarylogtreecommitdiffstats
path: root/fixes__labels-wrapping.patch
diff options
context:
space:
mode:
authorTomasz Gąsior2018-06-01 03:13:51 +0200
committerTomasz Gąsior2018-06-01 03:13:51 +0200
commit02d3c7c8586d899ef756c2636aa8749a8ebc7ae4 (patch)
tree17c32683238beb60f12ca4c13235ee946f4d6453 /fixes__labels-wrapping.patch
parent619277ea94dde9310448d0396977529496abac86 (diff)
downloadaur-02d3c7c8586d899ef756c2636aa8749a8ebc7ae4.tar.gz
Labels patch fix.
- Old labels wrapping patch caused bugs in Zenity message dialogs.
Diffstat (limited to 'fixes__labels-wrapping.patch')
-rw-r--r--fixes__labels-wrapping.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/fixes__labels-wrapping.patch b/fixes__labels-wrapping.patch
index 6cc18e037585..290cc2ae037f 100644
--- a/fixes__labels-wrapping.patch
+++ b/fixes__labels-wrapping.patch
@@ -12,10 +12,10 @@ diff --color -U 5 -r -Z -B ./org/gtk/gtklabel.c ./mod/gtk/gtklabel.c
+ {
+ gint default_window_width;
+ gtk_window_get_default_size (GTK_WINDOW (toplevel), &default_window_width, NULL);
-+ if (default_window_width == -1 && priv->max_width_chars == -1)
-+ priv->max_width_chars = 52;
++ if (default_window_width == -1 && priv->max_width_chars == -1 && priv->ellipsize == PANGO_ELLIPSIZE_NONE)
++ priv->max_width_chars = 56;
+ }
-
+
/* "width-chars" Hard-coded minimum width:
* - minimum size should be MAX (width-chars, strlen ("..."));
* - natural size should be MAX (width-chars, strlen (priv->text));