[gnome-games] libgames-support: Remove GamesPauseAction



commit ff203917b1c1dabd4eef28ec09dad3841309d6dd
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Aug 29 12:15:49 2012 +1200

    libgames-support: Remove GamesPauseAction

 gnibbles/src/Makefile.am                           |    2 ++
 .../src}/games-pause-action.c                      |    3 ++-
 .../src}/games-pause-action.h                      |    0
 gnibbles/src/main.c                                |    2 +-
 gnibbles/src/preferences.c                         |    2 +-
 libgames-support/GnomeGamesSupport-1.0.vapi        |    9 ---------
 libgames-support/Makefile.am                       |    2 --
 7 files changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/gnibbles/src/Makefile.am b/gnibbles/src/Makefile.am
index fb37535..2cbb45c 100644
--- a/gnibbles/src/Makefile.am
+++ b/gnibbles/src/Makefile.am
@@ -11,6 +11,8 @@ gnibbles_SOURCES = \
 	warpmanager.c \
 	games-gridframe.h \
 	games-gridframe.c \
+	games-pause-action.h \
+	games-pause-action.c \
 	gnibbles.h \
 	gnibbles.c \
 	properties.h \
diff --git a/libgames-support/games-pause-action.c b/gnibbles/src/games-pause-action.c
similarity index 99%
rename from libgames-support/games-pause-action.c
rename to gnibbles/src/games-pause-action.c
index 986285e..f9a7671 100644
--- a/libgames-support/games-pause-action.c
+++ b/gnibbles/src/games-pause-action.c
@@ -19,8 +19,9 @@
  *      Robert Ancell <robert ancell gmail com>
  */
 
+#include <libgames-support/games-stock.h>
+
 #include "games-pause-action.h"
-#include "games-stock.h"
 
 enum {
     PROP_0,
diff --git a/libgames-support/games-pause-action.h b/gnibbles/src/games-pause-action.h
similarity index 100%
rename from libgames-support/games-pause-action.h
rename to gnibbles/src/games-pause-action.h
diff --git a/gnibbles/src/main.c b/gnibbles/src/main.c
index 09588e7..4e2665b 100644
--- a/gnibbles/src/main.c
+++ b/gnibbles/src/main.c
@@ -33,7 +33,6 @@
 
 #include <libgames-support/games-scores.h>
 #include <libgames-support/games-stock.h>
-#include <libgames-support/games-pause-action.h>
 #include <libgames-support/games-fullscreen-action.h>
 
 #include "main.h"
@@ -45,6 +44,7 @@
 #include "scoreboard.h"
 #include "warp.h"
 #include "games-gridframe.h"
+#include "games-pause-action.h"
 
 #include <clutter-gtk/clutter-gtk.h>
 #include <clutter/clutter.h>
diff --git a/gnibbles/src/preferences.c b/gnibbles/src/preferences.c
index 98a226b..f5670f9 100644
--- a/gnibbles/src/preferences.c
+++ b/gnibbles/src/preferences.c
@@ -27,10 +27,10 @@
 #include <gdk/gdkkeysyms.h>
 
 #include <libgames-support/games-controls.h>
-#include <libgames-support/games-pause-action.h>
 
 #include "preferences.h"
 #include "main.h"
+#include "games-pause-action.h"
 
 #define KB_TEXT_WIDTH 60
 #define KB_TEXT_HEIGHT 32
diff --git a/libgames-support/GnomeGamesSupport-1.0.vapi b/libgames-support/GnomeGamesSupport-1.0.vapi
index 02fbecf..071ae7b 100644
--- a/libgames-support/GnomeGamesSupport-1.0.vapi
+++ b/libgames-support/GnomeGamesSupport-1.0.vapi
@@ -56,15 +56,6 @@ namespace GnomeGamesSupport
     [CCode (cheader_filename = "games-settings.h")]    
     public static void settings_bind_window_state (string path, Gtk.Window window);
 
-    [CCode (cheader_filename = "games-pause-action.h")]
-    public class PauseAction : Gtk.Action
-    {
-        public signal void state_changed ();
-        public PauseAction (string name);
-        public void set_is_paused (bool is_paused);
-        public bool get_is_paused ();
-    }
-
     [CCode (cprefix = "GAMES_FULLSCREEN_ACTION_VISIBLE_")]
     public enum VisiblePolicy
     {
diff --git a/libgames-support/Makefile.am b/libgames-support/Makefile.am
index 7e67035..13498b8 100644
--- a/libgames-support/Makefile.am
+++ b/libgames-support/Makefile.am
@@ -7,8 +7,6 @@ libgames_support_la_SOURCES = \
 	games-settings.h		\
 	games-fullscreen-action.c	\
 	games-fullscreen-action.h	\
-	games-pause-action.c	\
-	games-pause-action.h	\
 	games-score.h			\
 	games-score.c			\
 	games-scores.c			\



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