]> git.eshelyaron.com Git - emacs.git/commitdiff
* gtkutil.c (create_dialog): Force min spacing 10 between buttons.
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 2 Aug 2014 13:32:40 +0000 (15:32 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 2 Aug 2014 13:32:40 +0000 (15:32 +0200)
Don't add label between left and right buttons.

Fixes: debbugs:18129
src/ChangeLog
src/gtkutil.c

index d9f974cce5d8bd38d722bb2c967e54240f5e2ad2..8ffc1c56675712fa8d0a81672540effb316a44ee 100644 (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.
index b18e5f325e1d86b573c82a4a05de2f1e7d1b8bd0..7e7d68d80d4a4a6c0ae7e1f87dec140fcfcf5813 100644 (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);
             }
         }