PsppireDict: Add a quarter of a unit to the displayed width.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 3 Sep 2017 08:03:02 +0000 (10:03 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 3 Sep 2017 08:03:02 +0000 (10:03 +0200)
This avoids the text appearing cramped.

src/ui/gui/psppire-dict.c

index 7923079d173c15393b4e1ced26cd61e050c3b8d9..7a8245f2bd21ae09d20b1e1329bc711875285274 100644 (file)
@@ -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);
       }
     }