[polari] data: Rename GSettings schema ID to match app ID



commit 0c1b101367f962dfffc55776a0a9da266afc6be5
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Feb 23 03:21:46 2015 +0100

    data: Rename GSettings schema ID to match app ID
    
    While the schema already uses reverse DNS notation for its name,
    it does not capitalize the application name - we are standardizing
    on the application ID / DBus name, so rename accordingly.
    We do keep the existing schema path though, so stored settings from
    previous versions are not lost.

 data/Makefile.am                                   |    2 +-
 ...ri.gschema.xml => org.gnome.Polari.gschema.xml} |    2 +-
 src/application.js                                 |    2 +-
 src/chatroomManager.js                             |    2 +-
 src/joinDialog.js                                  |    2 +-
 src/mainWindow.js                                  |    2 +-
 src/messageDialog.js                               |    2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index d2140af..dc685c5 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -23,7 +23,7 @@ polari.gresource: polari.gresource.xml $(resource_files)
 resourcedir=$(pkgdatadir)
 resource_DATA=polari.gresource
 
-gsettings_SCHEMAS = org.gnome.polari.gschema.xml
+gsettings_SCHEMAS = $(APP_ID).gschema.xml
 @GSETTINGS_RULES@
 
 EXTRA_DIST = \
diff --git a/data/org.gnome.polari.gschema.xml b/data/org.gnome.Polari.gschema.xml
similarity index 94%
rename from data/org.gnome.polari.gschema.xml
rename to data/org.gnome.Polari.gschema.xml
index e55981c..56ce5ba 100644
--- a/data/org.gnome.polari.gschema.xml
+++ b/data/org.gnome.Polari.gschema.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <schemalist gettext-domain="polari">
-  <schema path="/org/gnome/polari/" id="org.gnome.polari">
+  <schema path="/org/gnome/polari/" id="org.gnome.Polari">
     <key type="aa{sv}" name="saved-channel-list">
       <default>[]</default>
       <summary>Saved channel list</summary>
diff --git a/src/application.js b/src/application.js
index 863e447..2d711a8 100644
--- a/src/application.js
+++ b/src/application.js
@@ -66,7 +66,7 @@ const Application = new Lang.Class({
                 this._removeSavedChannelsForAccount(account);
             }));
 
-        this._settings = new Gio.Settings({ schema_id: 'org.gnome.polari' });
+        this._settings = new Gio.Settings({ schema_id: 'org.gnome.Polari' });
 
         this.pasteManager = new PasteManager.PasteManager();
         this.notificationQueue = new AppNotifications.NotificationQueue();
diff --git a/src/chatroomManager.js b/src/chatroomManager.js
index 64370c6..c170dbc 100644
--- a/src/chatroomManager.js
+++ b/src/chatroomManager.js
@@ -117,7 +117,7 @@ const _ChatroomManager = new Lang.Class({
     },
 
     _restoreSavedChannels: function(account) {
-        let settings = new Gio.Settings({ schema_id: 'org.gnome.polari' });
+        let settings = new Gio.Settings({ schema_id: 'org.gnome.Polari' });
         let savedChannels = settings.get_value('saved-channel-list').deep_unpack();
         for (let i = 0; i < savedChannels.length; i++) {
             let serializedChannel = savedChannels[i];
diff --git a/src/joinDialog.js b/src/joinDialog.js
index 7c21c1a..98b3f82 100644
--- a/src/joinDialog.js
+++ b/src/joinDialog.js
@@ -21,7 +21,7 @@ const JoinDialog = new Lang.Class({
     _init: function() {
         this._createWidget();
 
-        this._settings = new Gio.Settings({ schema_id: 'org.gnome.polari' });
+        this._settings = new Gio.Settings({ schema_id: 'org.gnome.Polari' });
 
         this._accountsMonitor = AccountsMonitor.getDefault();
 
diff --git a/src/mainWindow.js b/src/mainWindow.js
index bd18df5..0fc89f2 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -27,7 +27,7 @@ const MainWindow = new Lang.Class({
         this._entries = {};
 
         this._room = null;
-        this._settings = new Gio.Settings({ schema_id: 'org.gnome.polari' });
+        this._settings = new Gio.Settings({ schema_id: 'org.gnome.Polari' });
         this._gtkSettings = Gtk.Settings.get_default();
 
         this._displayNameChangedId = 0;
diff --git a/src/messageDialog.js b/src/messageDialog.js
index 208d115..b2545e4 100644
--- a/src/messageDialog.js
+++ b/src/messageDialog.js
@@ -16,7 +16,7 @@ const MessageDialog = new Lang.Class({
     _init: function() {
         this._createWidget();
 
-        this._settings = new Gio.Settings({ schema_id: 'org.gnome.polari' });
+        this._settings = new Gio.Settings({ schema_id: 'org.gnome.Polari' });
 
         this._accounts = {};
         AccountsMonitor.getDefault().dupAccounts().forEach(Lang.bind(this,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]