Index: dialog.cpp
===================================================================
RCS file: /cvs/gnome/gnome-games/blackjack/src/dialog.cpp,v
retrieving revision 1.11
diff -u -r1.11 dialog.cpp
--- dialog.cpp	17 Jun 2003 17:27:00 -0000	1.11
+++ dialog.cpp	15 Oct 2003 22:48:16 -0000
@@ -41,6 +41,44 @@
 static GtkWidget * deck_edit = NULL;
 
 gboolean
+get_new_game_choice ()
+{
+  GtkWidget* dialog;
+  gchar* message;
+  gboolean choice = false;
+
+  message = _("Start a new game?");
+
+  dialog = gtk_message_dialog_new (GTK_WINDOW (app),
+                                   GTK_DIALOG_MODAL,
+                                   GTK_MESSAGE_QUESTION,
+                                   GTK_BUTTONS_YES_NO,
+                                   "<span weight=\"bold\" size=\"larger\">%s</span>",
+                                   message);
+  gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
+
+  gtk_label_set_use_markup (GTK_LABEL (GTK_MESSAGE_DIALOG (dialog)->label),
+                            TRUE);
+  gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
+
+  /* add a stock icon? */ 
+  switch (gtk_dialog_run (GTK_DIALOG (dialog)))
+    {
+    case GTK_RESPONSE_YES: 
+      {
+	choice = true;
+      }
+      break;
+    default:
+      choice = false;
+      break;
+  }
+  gtk_widget_destroy (dialog);
+
+  return choice;
+}
+
+gboolean
 get_insurance_choice ()
 {
   GtkWidget* dialog;
Index: dialog.h
===================================================================
RCS file: /cvs/gnome/gnome-games/blackjack/src/dialog.h,v
retrieving revision 1.1
diff -u -r1.1 dialog.h
--- dialog.h	2 Jun 2003 09:49:40 -0000	1.1
+++ dialog.h	15 Oct 2003 22:48:16 -0000
@@ -21,6 +21,7 @@
 #ifndef DIALOG_H
 #define DIALOG_H
 
+gboolean get_new_game_choice (void);
 gboolean get_insurance_choice (void);
 
 void show_preferences_dialog ( void );
Index: menu.cpp
===================================================================
RCS file: /cvs/gnome/gnome-games/blackjack/src/menu.cpp,v
retrieving revision 1.5
diff -u -r1.5 menu.cpp
--- menu.cpp	17 Jun 2003 17:27:00 -0000	1.5
+++ menu.cpp	15 Oct 2003 22:48:17 -0000
@@ -50,7 +50,10 @@
 static void
 random_seed ()
 {
-  bj_game_new (bj_game_get_rules_file (), NULL);
+  if (get_new_game_choice()) {
+    bj_set_balance (0.00);
+    bj_game_new (bj_game_get_rules_file (), NULL);
+  }
 };
 
 static void
