[five-or-more] Always allocate enough space for the board



commit a7ab78c5e4cadce9b7f0a1a2631fe78f9c2ebf6a
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Feb 16 17:46:24 2014 -0600

    Always allocate enough space for the board
    
    Fixed size was a really bad idea. Mea culpa.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723912

 src/glines.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/glines.c b/src/glines.c
index ecd4120..e097ffc 100644
--- a/src/glines.c
+++ b/src/glines.c
@@ -1626,11 +1626,10 @@ startup_cb (GApplication *application)
                     G_CALLBACK (configure_event_callback), NULL);
   g_signal_connect (draw_area, "draw",
                     G_CALLBACK (field_draw_callback), NULL);
-  gtk_widget_set_size_request (draw_area, 400, 400);
   gridframe = games_grid_frame_new (hfieldsize, vfieldsize);
   games_grid_frame_set_padding (GAMES_GRID_FRAME (gridframe), 1, 1);
   gtk_container_add (GTK_CONTAINER (gridframe), draw_area);
-  gtk_box_pack_start (GTK_BOX (hbox), gridframe, TRUE, FALSE, 0);
+  gtk_box_pack_start (GTK_BOX (hbox), gridframe, TRUE, TRUE, 0);
 
   gtk_widget_set_events (draw_area,
                          gtk_widget_get_events (draw_area) |


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