PATCHES: freecell



Hi,

Here's two tiny patches for freecell that I hope someone could commit...
I already mailed patch 1 to Ryu Changwoo <cwryu@eve.kaist.ac.kr>

1) This does so that when you make the window bigger, the main
   card area is getting all the new free space. Preferrable, IMHO.

2) Changes gnome_message_box_set_modal -> gnome_dialog_set_modal
   (to get rid of warnings...)

Here's patch 1:

--- freecell/src/io-gtk.c	Sat Apr 25 04:53:22 1998
+++ freecell-HACK/src/io-gtk.c	Sun May 24 21:52:17 1998
@@ -173,11 +173,11 @@
 				   destination_drawing_areas[i]);
       gtk_widget_show(destination_drawing_areas[i]);
     }
-  gtk_box_pack_start_defaults (GTK_BOX(vbox), hbox);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
   gtk_widget_show(hbox);
   
   w = gtk_hseparator_new();
-  gtk_box_pack_start_defaults (GTK_BOX(vbox), w);
+  gtk_box_pack_start (GTK_BOX (vbox), w, FALSE, FALSE, 0);
   gtk_widget_show (w);
   
   hbox = gtk_hbox_new (FALSE, 2);


And patch 2:

--- freecell/src/io-gtk.c	Sat Apr 25 04:53:22 1998
+++ freecell-HACK/src/io-gtk.c	Tue May 26 21:38:06 1998
@@ -319,7 +319,7 @@
 				  GNOME_STOCK_BUTTON_NO,
 				  NULL);
       GTK_WINDOW(mb)->position = GTK_WIN_POS_MOUSE;
-      gnome_message_box_set_modal (GNOME_MESSAGE_BOX(mb));
+      gnome_dialog_set_modal (GNOME_DIALOG(mb));
       gtk_signal_connect_object(GTK_OBJECT(mb),
 				"clicked",
 				GTK_SIGNAL_FUNC(callback_restart_lose),
@@ -441,7 +441,7 @@
 				  GNOME_STOCK_BUTTON_NO,
 				  NULL);
       GTK_WINDOW(mb)->position = GTK_WIN_POS_MOUSE;
-      gnome_message_box_set_modal (GNOME_MESSAGE_BOX(mb));
+      gnome_dialog_set_modal (GNOME_DIALOG(mb));
       gtk_signal_connect_object(GTK_OBJECT(mb),
 				"clicked",
 				GTK_SIGNAL_FUNC(callback_new_with_seed_with_lose),
@@ -506,7 +506,7 @@
 				  GNOME_STOCK_BUTTON_NO,
 				  NULL);
       GTK_WINDOW(mb)->position = GTK_WIN_POS_MOUSE;
-      gnome_message_box_set_modal (GNOME_MESSAGE_BOX(mb));
+      gnome_dialog_set_modal (GNOME_DIALOG(mb));
       gtk_signal_connect_object(GTK_OBJECT(mb),
 				"clicked",
 				GTK_SIGNAL_FUNC(callback_new_with_lose),
@@ -559,7 +559,7 @@
 			      GNOME_STOCK_BUTTON_OK,
 			      NULL);
   GTK_WINDOW(mb)->position = GTK_WIN_POS_MOUSE;
-  gnome_message_box_set_modal (GNOME_MESSAGE_BOX(mb));
+  gnome_dialog_set_modal (GNOME_DIALOG(mb));
   gtk_widget_show (mb);
 }
 
@@ -599,7 +599,7 @@
 				  NULL);
 
       GTK_WINDOW(mb)->position = GTK_WIN_POS_MOUSE;
-      gnome_message_box_set_modal (GNOME_MESSAGE_BOX(mb));
+      gnome_dialog_set_modal (GNOME_DIALOG(mb));
       gtk_signal_connect_object(GTK_OBJECT(mb),
 				"clicked",
 				GTK_SIGNAL_FUNC(callback_exit_with_lose),
@@ -649,7 +649,7 @@
 			      GNOME_STOCK_BUTTON_OK,
 			      NULL);
   GTK_WINDOW(mb)->position = GTK_WIN_POS_MOUSE;
-  gnome_message_box_set_modal (GNOME_MESSAGE_BOX(mb));
+  gnome_dialog_set_modal (GNOME_DIALOG(mb));
   gtk_widget_show (mb);
 }
 
@@ -1137,7 +1137,7 @@
 				  NULL);
 
       GTK_WINDOW(mb)->position = GTK_WIN_POS_MOUSE;
-      gnome_message_box_set_modal (GNOME_MESSAGE_BOX(mb));
+      gnome_dialog_set_modal (GNOME_DIALOG(mb));
       gtk_widget_show (mb);
       score_add_lose();
       stalled = 1;
@@ -1151,7 +1151,7 @@
 				  GNOME_STOCK_BUTTON_NO,
 				  NULL);
       GTK_WINDOW(mb)->position = GTK_WIN_POS_MOUSE;
-      gnome_message_box_set_modal (GNOME_MESSAGE_BOX(mb));
+      gnome_dialog_set_modal (GNOME_DIALOG(mb));
       gtk_signal_connect_object (GTK_OBJECT (mb),
 				 "clicked",
 				 GTK_SIGNAL_FUNC(callback_new_really_callback),


-- 
Simon Kågedal <simon@sdf.se> - Homepage: http://www.sdf.se/~simon/



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