emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r117627: * gtkutil.c (create_dialog): Force min spac


From: Jan D.
Subject: [Emacs-diffs] trunk r117627: * gtkutil.c (create_dialog): Force min spacing 10 between buttons.
Date: Sat, 02 Aug 2014 13:32:47 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117627
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/18129
committer: Jan D. <address@hidden>
branch nick: trunk
timestamp: Sat 2014-08-02 15:32:40 +0200
message:
  * gtkutil.c (create_dialog): Force min spacing 10 between buttons.
  Don't add label between left and right buttons.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/gtkutil.c                  gtkutil.c-20091113204419-o5vbwnq5f7feedwu-2527
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-08-01 15:12:01 +0000
+++ b/src/ChangeLog     2014-08-02 13:32:40 +0000
@@ -1,3 +1,8 @@
+2014-08-02  Jan Djärv  <address@hidden>
+
+       * 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  <address@hidden>
 
        Make functions static that no longer need to be extern.

=== modified file 'src/gtkutil.c'
--- a/src/gtkutil.c     2014-07-27 13:21:30 +0000
+++ b/src/gtkutil.c     2014-08-02 13:32:40 +0000
@@ -1541,6 +1541,7 @@
           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 @@
             {
               if (make_two_rows)
                 cur_box = GTK_BOX (whbox_down);
-              else
-                gtk_box_pack_start (cur_box,
-                                    gtk_label_new (""),
-                                    TRUE, TRUE,
-                                    button_spacing);
             }
         }
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]