[gnome-nibbles/arnaudb/modernize-code: 8/58] Rename the gschema.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/arnaudb/modernize-code: 8/58] Rename the gschema.
- Date: Wed, 10 Jun 2020 17:13:36 +0000 (UTC)
commit bf8c197ae654649c0306bb0cfca8a218ec676ce1
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue May 26 16:37:06 2020 +0200
Rename the gschema.
data/meson.build | 2 +-
...s.gschema.xml => org.gnome.Nibbles.gschema.xml} | 28 +++++++++++-----------
src/gnome-nibbles.vala | 4 ++--
3 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 05bf793..49e35aa 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -60,7 +60,7 @@ if appstream_util.found()
endif
# Gschema
-install_data('org.gnome.nibbles.gschema.xml',
+install_data('org.gnome.Nibbles.gschema.xml',
install_dir: join_paths(datadir, 'glib-2.0', 'schemas')
)
diff --git a/data/org.gnome.nibbles.gschema.xml b/data/org.gnome.Nibbles.gschema.xml
similarity index 90%
rename from data/org.gnome.nibbles.gschema.xml
rename to data/org.gnome.Nibbles.gschema.xml
index a1708dd..e648be3 100644
--- a/data/org.gnome.nibbles.gschema.xml
+++ b/data/org.gnome.Nibbles.gschema.xml
@@ -1,5 +1,5 @@
<schemalist>
- <enum id="org.gnome.nibbles.Color">
+ <enum id="org.gnome.Nibbles.Color">
<value value="0" nick="red"/>
<value value="1" nick="green"/>
<value value="2" nick="blue"/>
@@ -7,7 +7,7 @@
<value value="4" nick="cyan"/>
<value value="5" nick="purple"/>
</enum>
- <schema id="org.gnome.nibbles" path="/org/gnome/nibbles/" gettext-domain="gnome-nibbles">
+ <schema id="org.gnome.Nibbles" path="/org/gnome/nibbles/" gettext-domain="gnome-nibbles">
<key name="window-width" type="i">
<default>730</default>
<summary>Width of the window in pixels</summary>
@@ -69,8 +69,8 @@
<description>Number of AI players.</description>
</key>
</schema>
- <schema id="org.gnome.nibbles.worm0" path="/org/gnome/nibbles/worm0/">
- <key name="color" enum="org.gnome.nibbles.Color">
+ <schema id="org.gnome.Nibbles.worm0" path="/org/gnome/nibbles/worm0/">
+ <key name="color" enum="org.gnome.Nibbles.Color">
<default>'red'</default>
<summary>Color to use for worm</summary>
<description>Color to use for worm.</description>
@@ -96,8 +96,8 @@
<description>Key to use for motion right.</description>
</key>
</schema>
- <schema id="org.gnome.nibbles.worm1" path="/org/gnome/nibbles/worm1/">
- <key name="color" enum="org.gnome.nibbles.Color">
+ <schema id="org.gnome.Nibbles.worm1" path="/org/gnome/nibbles/worm1/">
+ <key name="color" enum="org.gnome.Nibbles.Color">
<default>'green'</default>
<summary>Color to use for worm</summary>
<description>Color to use for worm.</description>
@@ -123,8 +123,8 @@
<description>Key to use for motion right.</description>
</key>
</schema>
- <schema id="org.gnome.nibbles.worm2" path="/org/gnome/nibbles/worm2/">
- <key name="color" enum="org.gnome.nibbles.Color">
+ <schema id="org.gnome.Nibbles.worm2" path="/org/gnome/nibbles/worm2/">
+ <key name="color" enum="org.gnome.Nibbles.Color">
<default>'blue'</default>
<summary>Color to use for worm</summary>
<description>Color to use for worm.</description>
@@ -150,8 +150,8 @@
<description>Key to use for motion right.</description>
</key>
</schema>
- <schema id="org.gnome.nibbles.worm3" path="/org/gnome/nibbles/worm3/">
- <key name="color" enum="org.gnome.nibbles.Color">
+ <schema id="org.gnome.Nibbles.worm3" path="/org/gnome/nibbles/worm3/">
+ <key name="color" enum="org.gnome.Nibbles.Color">
<default>'yellow'</default>
<summary>Color to use for worm</summary>
<description>Color to use for worm.</description>
@@ -177,8 +177,8 @@
<description>Key to use for motion right.</description>
</key>
</schema>
- <schema id="org.gnome.nibbles.worm4" path="/org/gnome/nibbles/worm4/">
- <key name="color" enum="org.gnome.nibbles.Color">
+ <schema id="org.gnome.Nibbles.worm4" path="/org/gnome/nibbles/worm4/">
+ <key name="color" enum="org.gnome.Nibbles.Color">
<default>'cyan'</default>
<summary>Color to use for worm</summary>
<description>Color to use for worm.</description>
@@ -204,8 +204,8 @@
<description>Key to use for motion right.</description>
</key>
</schema>
- <schema id="org.gnome.nibbles.worm5" path="/org/gnome/nibbles/worm5/">
- <key name="color" enum="org.gnome.nibbles.Color">
+ <schema id="org.gnome.Nibbles.worm5" path="/org/gnome/nibbles/worm5/">
+ <key name="color" enum="org.gnome.Nibbles.Color">
<default>'purple'</default>
<summary>Color to use for worm</summary>
<description>Color to use for worm.</description>
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 63dafc5..0f77d33 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -150,13 +150,13 @@ public class Nibbles : Gtk.Application
add_action_entries (action_entries, this);
add_action_entries (menu_entries, this);
- settings = new GLib.Settings ("org.gnome.nibbles");
+ settings = new GLib.Settings ("org.gnome.Nibbles");
settings.changed.connect (settings_changed_cb);
worm_settings = new Gee.ArrayList<GLib.Settings> ();
for (int i = 0; i < NibblesGame.MAX_WORMS; i++)
{
- var name = "org.gnome.nibbles.worm%d".printf(i);
+ var name = "org.gnome.Nibbles.worm%d".printf(i);
worm_settings.add (new GLib.Settings (name));
worm_settings[i].changed.connect (worm_settings_changed_cb);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]