From: John Darrington Date: Sun, 3 Sep 2017 08:03:02 +0000 (+0200) Subject: PsppireDict: Add a quarter of a unit to the displayed width. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=4790395fad95f64a4cffa76faf4478ffe3bfb5a2 PsppireDict: Add a quarter of a unit to the displayed width. This avoids the text appearing cramped. --- diff --git a/src/ui/gui/psppire-dict.c b/src/ui/gui/psppire-dict.c index 7923079d17..7a8245f2bd 100644 --- a/src/ui/gui/psppire-dict.c +++ b/src/ui/gui/psppire-dict.c @@ -113,7 +113,8 @@ gi (GListModel *list, guint id) g_object_unref (G_OBJECT (context)); gtk_widget_set_size_request (button, - var_get_display_width (v) * rect.width / PANGO_SCALE, + (0.25 + var_get_display_width (v)) + * rect.width / PANGO_SCALE, -1); } }