Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gametoolbar.py
diff options
context:
space:
mode:
Diffstat (limited to 'gametoolbar.py')
-rw-r--r--gametoolbar.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/gametoolbar.py b/gametoolbar.py
index b21deca..8e93ba6 100644
--- a/gametoolbar.py
+++ b/gametoolbar.py
@@ -37,10 +37,12 @@ class GameToolbar(gtk.Toolbar):
__gsignals__ = {
'game-restart': (SIGNAL_RUN_FIRST, TYPE_NONE, []),
'ai-activated': (SIGNAL_RUN_FIRST, TYPE_NONE, []),
- 'ai-deactivated': (SIGNAL_RUN_FIRST, TYPE_NONE, []),
+ 'ai-deactivated': (SIGNAL_RUN_FIRST, TYPE_NONE, []),
+ 'save-game': (SIGNAL_RUN_FIRST, TYPE_NONE, []),
+ 'load-game': (SIGNAL_RUN_FIRST, TYPE_NONE, []),
'game-board-size': (SIGNAL_RUN_FIRST, TYPE_NONE, [TYPE_INT]),
}
-
+
def __init__(self, activity):
gtk.Toolbar.__init__(self)
self.activity = activity
@@ -87,6 +89,7 @@ class GameToolbar(gtk.Toolbar):
self.insert(self._ai_button, -1)
self._ai_button.show()
+
def _add_widget(self, widget, expand=False):
tool_item = gtk.ToolItem()
tool_item.set_expand(expand)
@@ -127,3 +130,4 @@ class GameToolbar(gtk.Toolbar):
def set_ai_button_state(self, value):
self._ai_button.set_active(value)
+