Update GTK resources and schema to new domain (close #66)
This commit is contained in:
parent
ba373ddf4e
commit
32d02f2d9b
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<gresources>
|
<gresources>
|
||||||
<gresource prefix="/de/coderkun/mcg">
|
<gresource prefix="/xyz/suruatoel/mcg">
|
||||||
<file>gtk.css</file>
|
<file>gtk.css</file>
|
||||||
<file>noise-texture.png</file>
|
<file>noise-texture.png</file>
|
||||||
<file>icons/mcg.svg</file>
|
<file>icons/mcg.svg</file>
|
|
@ -1,11 +1,11 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<schemalist>
|
<schemalist>
|
||||||
<enum id="de.coderkun.mcg.SortOrder">
|
<enum id="xyz.suruatoel.mcg.SortOrder">
|
||||||
<value nick="artist" value="0" />
|
<value nick="artist" value="0" />
|
||||||
<value nick="title" value="1" />
|
<value nick="title" value="1" />
|
||||||
<value nick="year" value="2" />
|
<value nick="year" value="2" />
|
||||||
</enum>
|
</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">
|
<key type="s" name="host">
|
||||||
<default>'localhost'</default>
|
<default>'localhost'</default>
|
||||||
<summary>MPD host</summary>
|
<summary>MPD host</summary>
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
<summary>Size of library items</summary>
|
<summary>Size of library items</summary>
|
||||||
<description>The size of items displayed in the library.</description>
|
<description>The size of items displayed in the library.</description>
|
||||||
</key>
|
</key>
|
||||||
<key enum="de.coderkun.mcg.SortOrder" name="sort-order">
|
<key enum="xyz.suruatoel.mcg.SortOrder" name="sort-order">
|
||||||
<default>'year'</default>
|
<default>'year'</default>
|
||||||
<summary>Sort criterium for library items</summary>
|
<summary>Sort criterium for library items</summary>
|
||||||
<description>The sort criterium of items displayed in the library.</description>
|
<description>The sort criterium of items displayed in the library.</description>
|
|
@ -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):
|
class AlbumHeaderbar(Gtk.HeaderBar):
|
||||||
__gtype_name__ = 'McgAlbumHeaderbar'
|
__gtype_name__ = 'McgAlbumHeaderbar'
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
|
|
|
@ -16,7 +16,7 @@ from mcg.infodialog import InfoDialog
|
||||||
|
|
||||||
class Application(Gtk.Application):
|
class Application(Gtk.Application):
|
||||||
TITLE = "CoverGrid"
|
TITLE = "CoverGrid"
|
||||||
ID = 'de.coderkun.mcg'
|
ID = 'xyz.suruatoel.mcg'
|
||||||
DOMAIN = 'mcg'
|
DOMAIN = 'mcg'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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):
|
class ConnectionPanel(Gtk.Box):
|
||||||
__gtype_name__ = 'McgConnectionPanel'
|
__gtype_name__ = 'McgConnectionPanel'
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
|
|
|
@ -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):
|
class CoverToolbar(Gtk.ButtonBox):
|
||||||
__gtype_name__ = 'McgCoverToolbar'
|
__gtype_name__ = 'McgCoverToolbar'
|
||||||
__gsignals__ = {
|
__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):
|
class CoverPanel(Gtk.Overlay):
|
||||||
__gtype_name__ = 'McgCoverPanel'
|
__gtype_name__ = 'McgCoverPanel'
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
|
|
|
@ -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):
|
class InfoDialog(Gtk.AboutDialog):
|
||||||
__gtype_name__ = 'McgInfoDialog'
|
__gtype_name__ = 'McgInfoDialog'
|
||||||
|
|
||||||
|
|
|
@ -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):
|
class LibraryToolbar(Gtk.ButtonBox):
|
||||||
__gtype_name__ = 'McgLibraryToolbar'
|
__gtype_name__ = 'McgLibraryToolbar'
|
||||||
__gsignals__ = {
|
__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):
|
class LibraryPanel(Gtk.Stack):
|
||||||
__gtype_name__ = 'McgLibraryPanel'
|
__gtype_name__ = 'McgLibraryPanel'
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
|
|
|
@ -12,7 +12,7 @@ def setup_resources():
|
||||||
from gi.repository import Gio
|
from gi.repository import Gio
|
||||||
|
|
||||||
resource = Gio.resource_load(
|
resource = Gio.resource_load(
|
||||||
Environment.get_data('de.coderkun.mcg.gresource')
|
Environment.get_data('xyz.suruatoel.mcg.gresource')
|
||||||
)
|
)
|
||||||
Gio.Resource._register(resource)
|
Gio.Resource._register(resource)
|
||||||
|
|
||||||
|
|
|
@ -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):
|
class PlaylistToolbar(Gtk.ButtonBox):
|
||||||
__gtype_name__ = 'McgPlaylistToolbar'
|
__gtype_name__ = 'McgPlaylistToolbar'
|
||||||
__gsignals__ = {
|
__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):
|
class PlaylistPanel(Gtk.Stack):
|
||||||
__gtype_name__ = 'McgPlaylistPanel'
|
__gtype_name__ = 'McgPlaylistPanel'
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
|
|
|
@ -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):
|
class ServerToolbar(Gtk.ButtonBox):
|
||||||
__gtype_name__ = 'McgServerToolbar'
|
__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):
|
class ServerPanel(Gtk.Box):
|
||||||
__gtype_name__ = 'McgServerPanel'
|
__gtype_name__ = 'McgServerPanel'
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
|
|
|
@ -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):
|
class ShortcutsDialog(Gtk.ShortcutsWindow):
|
||||||
__gtype_name__ = 'McgShortcutsDialog'
|
__gtype_name__ = 'McgShortcutsDialog'
|
||||||
|
|
||||||
|
|
|
@ -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):
|
class Window(Gtk.ApplicationWindow):
|
||||||
__gtype_name__ = 'McgAppWindow'
|
__gtype_name__ = 'McgAppWindow'
|
||||||
SETTING_HOST = 'host'
|
SETTING_HOST = 'host'
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -37,7 +37,7 @@ class build_mcg(build_py):
|
||||||
|
|
||||||
def _build_gresources(self):
|
def _build_gresources(self):
|
||||||
print("compiling gresources")
|
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):
|
def _build_gschemas(self):
|
||||||
|
@ -73,7 +73,7 @@ setup(
|
||||||
'README.textile'
|
'README.textile'
|
||||||
],
|
],
|
||||||
'mcg/data': [
|
'mcg/data': [
|
||||||
'de.coderkun.mcg.gresource'
|
'xyz.suruatoel.mcg.gresource'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
extras_require = {
|
extras_require = {
|
||||||
|
@ -92,7 +92,7 @@ setup(
|
||||||
"data/mcg.svg"
|
"data/mcg.svg"
|
||||||
]),
|
]),
|
||||||
(os.path.join('share', 'glib-2.0', 'schemas'), [
|
(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'), [
|
(os.path.join('share', 'locale', 'en', 'LC_MESSAGES'), [
|
||||||
'locale/en/LC_MESSAGES/mcg.mo'
|
'locale/en/LC_MESSAGES/mcg.mo'
|
||||||
|
|
Loading…
Reference in a new issue