[gnome-nibbles] Removed pause-action from preferences.c



commit 216dcd932f4a9fc4e663742b28725a2e1e23d85b
Author: Bryan Quigley <bryanquigs src gnome org>
Date:   Sat Oct 19 23:21:48 2013 -0400

    Removed pause-action from preferences.c

 src/preferences.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/preferences.c b/src/preferences.c
index c0161d9..6080257 100644
--- a/src/preferences.c
+++ b/src/preferences.c
@@ -28,7 +28,6 @@
 
 #include "preferences.h"
 #include "main.h"
-#include "games-pause-action.h"
 #include "games-controls.h"
 
 #define KB_TEXT_WIDTH 60
@@ -38,7 +37,6 @@
 extern GSettings *settings;
 extern GSettings *worm_settings[NUMHUMWORMS];
 static GtkWidget *pref_dialog = NULL;
-static gint unpause = 0;
 extern GtkWidget *window;
 extern GnibblesProperties *properties;
 
@@ -48,10 +46,6 @@ GtkWidget *num_human, *num_ai;
 static void
 destroy_cb (GtkWidget * widget, gpointer data)
 {
-  if (unpause) {
-    gtk_action_activate (pause_action);
-    unpause = 0;
-  }
   pref_dialog = NULL;
 }
 
@@ -226,11 +220,6 @@ gnibbles_preferences_cb (GtkWidget * widget, gpointer data)
     return;
   }
 
-  if (!games_pause_action_get_is_paused (GAMES_PAUSE_ACTION (pause_action))) {
-    unpause = 1;
-    gtk_action_activate (pause_action);
-  }
-
   pref_dialog = gtk_dialog_new_with_buttons (_("Nibbles Preferences"),
                                              GTK_WINDOW (window), 0,
                                              GTK_STOCK_CLOSE,


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