[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (b5ec76a85d0566ef536ea12eac83ba5cda615415)



The branch, master has been updated
       via  b5ec76a85d0566ef536ea12eac83ba5cda615415 (commit)
      from  57eabeda63fd819fa34d240b41c3f4cbc8f2a20a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/hid/gtk/gui-top-window.c |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)


=================
 Commit Messages
=================

commit b5ec76a85d0566ef536ea12eac83ba5cda615415
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/gtk: Remove the vbox used to pack ghidgui->compact_hbox
    
    The main effect here is that the contents of the compact_hbox
    will get more vertical space assigned to them if the menu bar
    section is taller than the natural size of those widgets.
    
    The visual change seems acceptable, and we could use every bit of
    code-cleanup in ghid_build_pcb_top_window()

:100644 100644 5c78543... 1aab00e... M	src/hid/gtk/gui-top-window.c

=========
 Changes
=========

commit b5ec76a85d0566ef536ea12eac83ba5cda615415
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/gtk: Remove the vbox used to pack ghidgui->compact_hbox
    
    The main effect here is that the contents of the compact_hbox
    will get more vertical space assigned to them if the menu bar
    section is taller than the natural size of those widgets.
    
    The visual change seems acceptable, and we could use every bit of
    code-cleanup in ghid_build_pcb_top_window()

diff --git a/src/hid/gtk/gui-top-window.c b/src/hid/gtk/gui-top-window.c
index 5c78543..1aab00e 100644
--- a/src/hid/gtk/gui-top-window.c
+++ b/src/hid/gtk/gui-top-window.c
@@ -1259,16 +1259,13 @@ ghid_build_pcb_top_window (void)
   gtk_container_add (GTK_CONTAINER (ghidgui->mode_buttons1_frame),
                      ghidgui->mode_buttons1_hbox);
 
-  vbox = gtk_vbox_new(FALSE, 0);
-  gtk_box_pack_end(GTK_BOX(ghidgui->top_hbox), vbox,
-		      FALSE, FALSE, 0);
+  ghidgui->compact_hbox = gtk_hbox_new (FALSE, 0);
+  gtk_box_pack_end (GTK_BOX(ghidgui->top_hbox),
+                    ghidgui->compact_hbox, FALSE, FALSE, 0);
 
   ghidgui->compact_vbox = gtk_vbox_new (FALSE, 0);
   gtk_box_pack_end (GTK_BOX (ghidgui->top_hbox), ghidgui->compact_vbox,
-		      FALSE, FALSE, 0);
-
-  ghidgui->compact_hbox = gtk_hbox_new (FALSE, 0);
-  gtk_box_pack_start(GTK_BOX(vbox), ghidgui->compact_hbox, TRUE, FALSE, 0);
+                    FALSE, FALSE, 0);
 
   /*
    * The board name is optionally in compact_vbox and the position




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs