[gnome-games/gsoc-seed-games] [same-gnome-clutter] Add scores menuitem
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games/gsoc-seed-games] [same-gnome-clutter] Add scores menuitem
- Date: Sun, 12 Jul 2009 23:56:48 +0000 (UTC)
commit 71a60aa1ba157240dbb91ab5078f8220fbce3ba3
Author: Tim Horton <hortont424 gmail com>
Date: Sun Jul 12 19:51:13 2009 -0400
[same-gnome-clutter] Add scores menuitem
same-gnome-clutter/data/same-gnome.ui | 14 ++++++++++++--
same-gnome-clutter/src/main.js | 7 +++++--
2 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/same-gnome-clutter/data/same-gnome.ui b/same-gnome-clutter/data/same-gnome.ui
index b95b1ab..1ac8e39 100644
--- a/same-gnome-clutter/data/same-gnome.ui
+++ b/same-gnome-clutter/data/same-gnome.ui
@@ -25,7 +25,7 @@
<property name="visible">True</property>
<child>
<object class="GtkImageMenuItem" id="new_game_item">
- <signal name="activate" handler="reset_score"/>
+ <signal name="activate" handler="new_game"/>
<property name="label">games-new-game</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
@@ -34,6 +34,16 @@
</object>
</child>
<child>
+ <object class="GtkImageMenuItem" id="scores_item">
+ <signal name="activate" handler="show_scores"/>
+ <property name="label">games-scores</property>
+ <property name="visible">True</property>
+ <property name="use_underline">True</property>
+ <property name="use_stock">True</property>
+ <property name="accel_group">accel_group</property>
+ </object>
+ </child>
+ <child>
<object class="GtkImageMenuItem" id="show_preferences_item">
<signal name="activate" handler="show_settings"/>
<property name="label">gtk-preferences</property>
@@ -61,7 +71,7 @@
</object>
</child>
<child>
- <object class="GtkSeparatorMenuItem" id="separator2" />
+ <object class="GtkSeparatorMenuItem" id="separator3" />
</child>
<child>
<object class="GtkImageMenuItem" id="quit_item">
diff --git a/same-gnome-clutter/src/main.js b/same-gnome-clutter/src/main.js
index cf9f33f..a754bdd 100755
--- a/same-gnome-clutter/src/main.js
+++ b/same-gnome-clutter/src/main.js
@@ -42,9 +42,12 @@ handlers = {
},
show_about: function(selector, ud)
{
- about.show_about_dialog();
+ About.show_about_dialog();
},
- reset_score: function(selector, ud)
+ show_scores: function(selector, ud)
+ {
+ },
+ new_game: function(selector, ud)
{
board.new_game();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]