[gnome-games] [lightsoff] Clean up naming in main GtkBuilder file
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games] [lightsoff] Clean up naming in main GtkBuilder file
- Date: Thu, 16 Jul 2009 22:31:06 +0000 (UTC)
commit ec93f37746044c867c22e3be35d0bf33649fd52b
Author: Tim Horton <hortont svn gnome org>
Date: Mon Jun 29 03:19:38 2009 -0400
[lightsoff] Clean up naming in main GtkBuilder file
lightsoff/main-window.ui | 36 ++++++++++++++++++------------------
lightsoff/main.js.in | 4 ++--
2 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/lightsoff/main-window.ui b/lightsoff/main-window.ui
index 382cc02..2b8b218 100644
--- a/lightsoff/main-window.ui
+++ b/lightsoff/main-window.ui
@@ -1,55 +1,55 @@
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.14"/>
- <!-- interface-naming-policy project-wide -->
- <object class="GtkWindow" id="window1">
+ <object class="GtkWindow" id="game_window">
<property name="title" translatable="yes">Lights Off</property>
+ <property name="resizable">False</property>
<accel-groups>
- <group name="accelgroup1"/>
+ <group name="accel_group"/>
</accel-groups>
<child>
- <object class="GtkVBox" id="vbox1">
+ <object class="GtkVBox" id="game_vbox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
- <object class="GtkMenuBar" id="menubar2">
+ <object class="GtkMenuBar" id="menu_bar">
<property name="visible">True</property>
<child>
- <object class="GtkMenuItem" id="menuitem5">
+ <object class="GtkMenuItem" id="game_menu_item">
<property name="visible">True</property>
<property name="label" translatable="yes">_Game</property>
<property name="use_underline">True</property>
<child type="submenu">
- <object class="GtkMenu" id="menu4">
+ <object class="GtkMenu" id="game_menu">
<property name="visible">True</property>
<child>
- <object class="GtkImageMenuItem" id="imagemenuitem11">
+ <object class="GtkImageMenuItem" id="new_game_item">
<signal name="activate" handler="reset_score"/>
<property name="label">games-new-game</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
- <property name="accel_group">accelgroup1</property>
+ <property name="accel_group">accel_group</property>
</object>
</child>
<child>
- <object class="GtkImageMenuItem" id="imagemenuitem12">
+ <object class="GtkImageMenuItem" id="show_preferences_item">
<signal name="activate" handler="show_settings"/>
<property name="label">gtk-preferences</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
- <property name="accel_group">accelgroup1</property>
+ <property name="accel_group">accel_group</property>
</object>
</child>
<child>
- <object class="GtkImageMenuItem" id="imagemenuitem15">
+ <object class="GtkImageMenuItem" id="quit_item">
<signal name="activate" handler="quit"/>
<property name="label">gtk-quit</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
- <property name="accel_group">accelgroup1</property>
+ <property name="accel_group">accel_group</property>
</object>
</child>
</object>
@@ -57,21 +57,21 @@
</object>
</child>
<child>
- <object class="GtkMenuItem" id="menuitem8">
+ <object class="GtkMenuItem" id="help_menu_item">
<property name="visible">True</property>
<property name="label" translatable="yes">_Help</property>
<property name="use_underline">True</property>
<child type="submenu">
- <object class="GtkMenu" id="menu6">
+ <object class="GtkMenu" id="help_menu">
<property name="visible">True</property>
<child>
- <object class="GtkImageMenuItem" id="imagemenuitem20">
+ <object class="GtkImageMenuItem" id="show_about_item">
<signal name="activate" handler="show_about"/>
<property name="label">gtk-about</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
- <property name="accel_group">accelgroup1</property>
+ <property name="accel_group">accel_group</property>
</object>
</child>
</object>
@@ -90,5 +90,5 @@
</object>
</child>
</object>
- <object class="GtkAccelGroup" id="accelgroup1"/>
+ <object class="GtkAccelGroup" id="accel_group"/>
</interface>
diff --git a/lightsoff/main.js.in b/lightsoff/main.js.in
index fff7d9d..a66ce22 100755
--- a/lightsoff/main.js.in
+++ b/lightsoff/main.js.in
@@ -39,10 +39,10 @@ b = new Gtk.Builder();
b.add_from_file(file_prefix + "/main-window.ui");
b.connect_signals(handlers);
-var window = b.get_object("window1");
+var window = b.get_object("game_window");
var clutter_embed = new GtkClutter.Embed();
window.signal.hide.connect(Gtk.main_quit);
-b.get_object("vbox1").pack_start(clutter_embed, true, true);
+b.get_object("game_vbox").pack_start(clutter_embed, true, true);
var stage = clutter_embed.get_stage();
stage.color = {alpha:255};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]