gnome-games r8696 - in trunk: glines gnibbles mahjongg



Author: thomashpa
Date: Tue Feb 10 00:10:02 2009
New Revision: 8696
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8696&view=rev

Log:
Code cleanup. Remove dead code and replace calls to deprecated gtk code

Modified:
   trunk/glines/glines.c
   trunk/gnibbles/main.c
   trunk/mahjongg/mahjongg.c

Modified: trunk/glines/glines.c
==============================================================================
--- trunk/glines/glines.c	(original)
+++ trunk/glines/glines.c	Tue Feb 10 00:10:02 2009
@@ -1860,7 +1860,7 @@
   gtk_box_pack_start (GTK_BOX (vbox), menubar, FALSE, FALSE, 0);
 
   table = gtk_table_new (2, 1, TRUE);
-  gtk_box_pack_start_defaults (GTK_BOX (vbox), table);
+  gtk_box_pack_start (GTK_BOX (vbox), table, TRUE, TRUE, 0);
   gtk_box_pack_start (GTK_BOX (vbox), statusbar, FALSE, FALSE, 0);
   hbox = gtk_hbox_new (FALSE, 0);
 

Modified: trunk/gnibbles/main.c
==============================================================================
--- trunk/gnibbles/main.c	(original)
+++ trunk/gnibbles/main.c	Tue Feb 10 00:10:02 2009
@@ -489,17 +489,6 @@
   if (paused) {
     paused = 0;
     dummy_id = g_timeout_add (500, (GSourceFunc) new_game_2_cb, NULL);
-    /*
-     * main_id = gtk_timeout_add (GAMEDELAY * properties->gamespeed,
-     * (GtkFunction) main_loop, NULL);
-     * keyboard_id = g_signal_connect (GTK_OBJECT (window),
-     * "key_press_event", G_CALLBACK (key_press_cb),
-     * NULL);
-     * add_bonus_id = gtk_timeout_add (BONUSDELAY *
-     * properties->gamespeed,
-     * (GtkFunction) add_bonus_cb,
-     * NULL);
-     */
   } else {
     if (main_id || erase_id || restart_id || dummy_id) {
       paused = 1;

Modified: trunk/mahjongg/mahjongg.c
==============================================================================
--- trunk/mahjongg/mahjongg.c	(original)
+++ trunk/mahjongg/mahjongg.c	Tue Feb 10 00:10:02 2009
@@ -786,8 +786,8 @@
 
   gtk_container_add (GTK_CONTAINER (frame), table);
 
-  gtk_box_pack_start_defaults (GTK_BOX (GTK_DIALOG (pref_dialog)->vbox),
-			       top_table);
+  gtk_box_pack_start (GTK_BOX (GTK_DIALOG (pref_dialog)->vbox),
+			       top_table, TRUE, TRUE, 0);
 
   g_object_unref (group);
   gtk_widget_show_all (pref_dialog);



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