1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 00:01:33 -08:00

* gtkutil.c (create_dialog): Force min spacing 10 between buttons.

Don't add label between left and right buttons.

Fixes: debbugs:18129
This commit is contained in:
Jan Djärv 2014-08-02 15:32:40 +02:00
parent 073ae628bb
commit f5f3247c65
2 changed files with 6 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2014-08-02 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.c (create_dialog): Force min spacing 10 between buttons.
Don't add label between left and right buttons (Bug#18129).
2014-08-01 Paul Eggert <eggert@cs.ucla.edu>
Make functions static that no longer need to be extern.

View file

@ -1541,6 +1541,7 @@ create_dialog (widget_value *wv,
gtk_box_set_spacing (wvbox, req.height);
if (item->value && strlen (item->value) > 0)
button_spacing = 2*req.width/strlen (item->value);
if (button_spacing < 10) button_spacing = 10;
}
else
{
@ -1557,11 +1558,6 @@ create_dialog (widget_value *wv,
{
if (make_two_rows)
cur_box = GTK_BOX (whbox_down);
else
gtk_box_pack_start (cur_box,
gtk_label_new (""),
TRUE, TRUE,
button_spacing);
}
}