seed r261 - trunk/examples/lightsoff
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r261 - trunk/examples/lightsoff
- Date: Wed, 12 Nov 2008 11:38:53 +0000 (UTC)
Author: hortont
Date: Wed Nov 12 11:38:53 2008
New Revision: 261
URL: http://svn.gnome.org/viewvc/seed?rev=261&view=rev
Log:
Update automake for LO
Added:
trunk/examples/lightsoff/menu.js
Modified:
trunk/examples/lightsoff/Makefile.am
Modified: trunk/examples/lightsoff/Makefile.am
==============================================================================
--- trunk/examples/lightsoff/Makefile.am (original)
+++ trunk/examples/lightsoff/Makefile.am Wed Nov 12 11:38:53 2008
@@ -4,14 +4,45 @@
light.js \
main.js \
tim-off.svg \
- tim-on.svg
+ tim-on.svg \
+ 0.svg \
+ 1.svg \
+ 2.svg \
+ 3.svg \
+ 4.svg \
+ 5.svg \
+ 6.svg \
+ 7.svg \
+ 8.svg \
+ 9.svg \
+ back.svg \
+ front.svg \
+ led.svg \
+ score.js \
+ off.svg \
+ menu.js
EXTRA_DIST = \
board.js \
light.js \
main.js \
- lightsoff.js \
tim-off.svg \
- tim-on.svg
+ tim-on.svg \
+ 0.svg \
+ 1.svg \
+ 2.svg \
+ 3.svg \
+ 4.svg \
+ 5.svg \
+ 6.svg \
+ 7.svg \
+ 8.svg \
+ 9.svg \
+ back.svg \
+ front.svg \
+ led.svg \
+ score.js \
+ off.svg \
+ menu.js
## File created by the gnome-build tools
Added: trunk/examples/lightsoff/menu.js
==============================================================================
--- (empty file)
+++ trunk/examples/lightsoff/menu.js Wed Nov 12 11:38:53 2008
@@ -0,0 +1,43 @@
+function create_board_size_menu()
+{
+ var menu = new Gtk.Menu();
+
+ var size_5 = new Gtk.MenuItem({"child": new Gtk.Label({"label": "5x5"})});
+ var size_7 = new Gtk.MenuItem({"child": new Gtk.Label({"label": "7x7"})});
+ var size_9 = new Gtk.MenuItem({"child": new Gtk.Label({"label": "9x9"})});
+
+ menu.append(size_5);
+ menu.append(size_7);
+ menu.append(size_9);
+
+ //size_5.signal.activate.connect(change_size, {size: 5});
+ //size_7.signal.activate.connect(change_size, {size: 7});
+ //size_9.signal.activate.connect(change_size, {size: 9});
+ return menu;
+}
+
+function create_menu()
+{
+ var menu = new Gtk.MenuBar();
+
+ var game_menu = new Gtk.Menu();
+ var size_item = new Gtk.MenuItem({"child":
+ new Gtk.Label({"label": "Board Size"})});
+
+ size_item.submenu = create_board_size_menu();
+
+ var quit_item = new Gtk.MenuItem({"child":
+ new Gtk.Label({"label": "Quit"})});
+ quit_item.signal.activate.connect(Gtk.main_quit);
+
+ game_menu.append(size_item);
+ game_menu.append(quit_item);
+
+ var game_menu_item = new Gtk.MenuItem({"child":
+ new Gtk.Label({"label": "Game"})});
+ game_menu_item.submenu = game_menu;
+
+ menu.append(game_menu_item);
+
+ return menu;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]