tBugs with using grab_default fixed; stock GTK+ widgets now used extensively. - vaccinewars - be a doctor and try to vaccinate the world
 (HTM) git clone git://src.adamsgaard.dk/vaccinewars
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d76e3b11ea424d4130bf5e934c50fad6b0dcdb6e
 (DIR) parent fc52feea6ab65b0b6b32a7acd0034f5116f1694d
 (HTM) Author: Ben Webb <ben@salilab.org>
       Date:   Mon, 25 Mar 2002 16:57:49 +0000
       
       Bugs with using grab_default fixed; stock GTK+ widgets now used extensively.
       
       
       Diffstat:
         M src/gui_client/newgamedia.c         |       9 ++++++---
       
       1 file changed, 6 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/src/gui_client/newgamedia.c b/src/gui_client/newgamedia.c
       t@@ -418,7 +418,7 @@ void NewGameDialog(Player *play)
        #endif
        {
          GtkWidget *vbox, *vbox2, *hbox, *label, *entry, *notebook;
       -  GtkWidget *frame, *button, *dialog;
       +  GtkWidget *frame, *button, *dialog, *defbutton;
          GtkAccelGroup *accel_group;
          guint AccelKey;
        
       t@@ -526,8 +526,8 @@ void NewGameDialog(Player *play)
          gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
          gtk_container_add(GTK_CONTAINER(frame), vbox2);
          GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
       -  gtk_widget_grab_default(button);
       -
       +  defbutton = button;
       +  
          label = gtk_label_new(_("Server"));
          gtk_notebook_append_page(GTK_NOTEBOOK(notebook), frame, label);
        #endif /* NETWORKING */
       t@@ -618,6 +618,9 @@ void NewGameDialog(Player *play)
          SetStartGameStatus(NULL);
          gtk_widget_show_all(dialog);
          gtk_notebook_set_page(GTK_NOTEBOOK(notebook), NewGameType);
       +#ifdef NETWORKING
       +  gtk_widget_grab_default(defbutton);
       +#endif
        }
        
        #ifdef NETWORKING