Update GTK resources and schema to new domain (close #66)

This commit is contained in:
coderkun 2020-08-09 11:09:53 +02:00
parent ba373ddf4e
commit 32d02f2d9b
14 changed files with 22 additions and 22 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/de/coderkun/mcg">
<gresource prefix="/xyz/suruatoel/mcg">
<file>gtk.css</file>
<file>noise-texture.png</file>
<file>icons/mcg.svg</file>

View file

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<enum id="de.coderkun.mcg.SortOrder">
<enum id="xyz.suruatoel.mcg.SortOrder">
<value nick="artist" value="0" />
<value nick="title" value="1" />
<value nick="year" value="2" />
</enum>
<schema path="/de/coderkun/mcg/" id="de.coderkun.mcg" gettext-domain="mcg">
<schema path="/xyz/suruatoel/mcg/" id="xyz.suruatoel.mcg" gettext-domain="mcg">
<key type="s" name="host">
<default>'localhost'</default>
<summary>MPD host</summary>
@ -48,7 +48,7 @@
<summary>Size of library items</summary>
<description>The size of items displayed in the library.</description>
</key>
<key enum="de.coderkun.mcg.SortOrder" name="sort-order">
<key enum="xyz.suruatoel.mcg.SortOrder" name="sort-order">
<default>'year'</default>
<summary>Sort criterium for library items</summary>
<description>The sort criterium of items displayed in the library.</description>

View file

@ -9,7 +9,7 @@ from gi.repository import Gtk, GObject
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/album-headerbar.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/album-headerbar.ui')
class AlbumHeaderbar(Gtk.HeaderBar):
__gtype_name__ = 'McgAlbumHeaderbar'
__gsignals__ = {

View file

@ -16,7 +16,7 @@ from mcg.infodialog import InfoDialog
class Application(Gtk.Application):
TITLE = "CoverGrid"
ID = 'de.coderkun.mcg'
ID = 'xyz.suruatoel.mcg'
DOMAIN = 'mcg'

View file

@ -11,7 +11,7 @@ from mcg.zeroconf import ZeroconfProvider
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/connection-panel.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/connection-panel.ui')
class ConnectionPanel(Gtk.Box):
__gtype_name__ = 'McgConnectionPanel'
__gsignals__ = {

View file

@ -13,7 +13,7 @@ from mcg.utils import Utils
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/cover-toolbar.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/cover-toolbar.ui')
class CoverToolbar(Gtk.ButtonBox):
__gtype_name__ = 'McgCoverToolbar'
__gsignals__ = {
@ -34,7 +34,7 @@ class CoverToolbar(Gtk.ButtonBox):
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/cover-panel.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/cover-panel.ui')
class CoverPanel(Gtk.Overlay):
__gtype_name__ = 'McgCoverPanel'
__gsignals__ = {

View file

@ -10,7 +10,7 @@ from gi.repository import Gtk, GObject, GdkPixbuf
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/info-dialog.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/info-dialog.ui')
class InfoDialog(Gtk.AboutDialog):
__gtype_name__ = 'McgInfoDialog'

View file

@ -18,7 +18,7 @@ from mcg.utils import Utils
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/library-toolbar.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/library-toolbar.ui')
class LibraryToolbar(Gtk.ButtonBox):
__gtype_name__ = 'McgLibraryToolbar'
__gsignals__ = {
@ -114,7 +114,7 @@ class LibraryToolbar(Gtk.ButtonBox):
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/library-panel.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/library-panel.ui')
class LibraryPanel(Gtk.Stack):
__gtype_name__ = 'McgLibraryPanel'
__gsignals__ = {

View file

@ -12,7 +12,7 @@ def setup_resources():
from gi.repository import Gio
resource = Gio.resource_load(
Environment.get_data('de.coderkun.mcg.gresource')
Environment.get_data('xyz.suruatoel.mcg.gresource')
)
Gio.Resource._register(resource)

View file

@ -16,7 +16,7 @@ from mcg.utils import Utils
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/playlist-toolbar.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/playlist-toolbar.ui')
class PlaylistToolbar(Gtk.ButtonBox):
__gtype_name__ = 'McgPlaylistToolbar'
__gsignals__ = {
@ -50,7 +50,7 @@ class PlaylistToolbar(Gtk.ButtonBox):
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/playlist-panel.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/playlist-panel.ui')
class PlaylistPanel(Gtk.Stack):
__gtype_name__ = 'McgPlaylistPanel'
__gsignals__ = {

View file

@ -9,7 +9,7 @@ from gi.repository import Gtk, GObject
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/server-toolbar.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/server-toolbar.ui')
class ServerToolbar(Gtk.ButtonBox):
__gtype_name__ = 'McgServerToolbar'
@ -20,7 +20,7 @@ class ServerToolbar(Gtk.ButtonBox):
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/server-panel.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/server-panel.ui')
class ServerPanel(Gtk.Box):
__gtype_name__ = 'McgServerPanel'
__gsignals__ = {

View file

@ -9,7 +9,7 @@ from gi.repository import Gtk
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/shortcuts-dialog.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/shortcuts-dialog.ui')
class ShortcutsDialog(Gtk.ShortcutsWindow):
__gtype_name__ = 'McgShortcutsDialog'

View file

@ -41,7 +41,7 @@ class WindowState(GObject.Object):
@Gtk.Template(resource_path='/de/coderkun/mcg/ui/window.ui')
@Gtk.Template(resource_path='/xyz/suruatoel/mcg/ui/window.ui')
class Window(Gtk.ApplicationWindow):
__gtype_name__ = 'McgAppWindow'
SETTING_HOST = 'host'

View file

@ -37,7 +37,7 @@ class build_mcg(build_py):
def _build_gresources(self):
print("compiling gresources")
subprocess.run(['glib-compile-resources', 'de.coderkun.mcg.gresource.xml'], cwd='data')
subprocess.run(['glib-compile-resources', 'xyz.suruatoel.mcg.gresource.xml'], cwd='data')
def _build_gschemas(self):
@ -73,7 +73,7 @@ setup(
'README.textile'
],
'mcg/data': [
'de.coderkun.mcg.gresource'
'xyz.suruatoel.mcg.gresource'
]
},
extras_require = {
@ -92,7 +92,7 @@ setup(
"data/mcg.svg"
]),
(os.path.join('share', 'glib-2.0', 'schemas'), [
"data/de.coderkun.mcg.gschema.xml"
"data/xyz.suruatoel.mcg.gschema.xml"
]),
(os.path.join('share', 'locale', 'en', 'LC_MESSAGES'), [
'locale/en/LC_MESSAGES/mcg.mo'