Refactor: Move UI files and gschema file to more standard locations

This commit is contained in:
Julian 2023-01-22 14:59:40 +01:00
parent ddd0297868
commit 7ed9329f2d
Signed by: julian
GPG Key ID: 094C2AC34192FA11
10 changed files with 6 additions and 8 deletions

View File

@ -8,7 +8,5 @@ gnome-extensions pack "$REAL_BASE_DIR/src" \
--force \ --force \
--extra-source extensionModules \ --extra-source extensionModules \
--extra-source prefsModules \ --extra-source prefsModules \
--extra-source prefs-box-order-item-row.ui \ --extra-source ../data/ui \
--extra-source prefs-box-order-list-box.ui \ --schema ../data/org.gnome.shell.extensions.top-bar-organizer.gschema.xml
--extra-source prefs-box-order-list-empty-placeholder.ui \
--extra-source prefs-page.ui \

View File

@ -15,7 +15,7 @@ const ScrollManager = Me.imports.prefsModules.ScrollManager;
var PrefsPage = GObject.registerClass({ var PrefsPage = GObject.registerClass({
GTypeName: "PrefsPage", GTypeName: "PrefsPage",
Template: Me.dir.get_child("prefs-page.ui").get_uri(), Template: Me.dir.get_child("ui").get_child("prefs-page.ui").get_uri(),
InternalChildren: [ InternalChildren: [
"left-box", "left-box",
"center-box", "center-box",

View File

@ -12,7 +12,7 @@ const Me = ExtensionUtils.getCurrentExtension();
var PrefsBoxOrderItemRow = GObject.registerClass({ var PrefsBoxOrderItemRow = GObject.registerClass({
GTypeName: "PrefsBoxOrderItemRow", GTypeName: "PrefsBoxOrderItemRow",
Template: Me.dir.get_child("prefs-box-order-item-row.ui").get_uri(), Template: Me.dir.get_child("ui").get_child("prefs-box-order-item-row.ui").get_uri(),
InternalChildren: [ InternalChildren: [
"item-name-display-label", "item-name-display-label",
"menu-button" "menu-button"

View File

@ -9,7 +9,7 @@ const Me = ExtensionUtils.getCurrentExtension();
var PrefsBoxOrderListBox = GObject.registerClass({ var PrefsBoxOrderListBox = GObject.registerClass({
GTypeName: "PrefsBoxOrderListBox", GTypeName: "PrefsBoxOrderListBox",
Template: Me.dir.get_child("prefs-box-order-list-box.ui").get_uri() Template: Me.dir.get_child("ui").get_child("prefs-box-order-list-box.ui").get_uri()
}, class PrefsBoxOrderListBox extends Gtk.ListBox { }, class PrefsBoxOrderListBox extends Gtk.ListBox {
/** /**
* @param {Object} params * @param {Object} params

View File

@ -10,7 +10,7 @@ const Me = ExtensionUtils.getCurrentExtension();
var PrefsBoxOrderListEmptyPlaceholder = GObject.registerClass({ var PrefsBoxOrderListEmptyPlaceholder = GObject.registerClass({
GTypeName: "PrefsBoxOrderListEmptyPlaceholder", GTypeName: "PrefsBoxOrderListEmptyPlaceholder",
Template: Me.dir.get_child("prefs-box-order-list-empty-placeholder.ui").get_uri() Template: Me.dir.get_child("ui").get_child("prefs-box-order-list-empty-placeholder.ui").get_uri()
}, class PrefsBoxOrderListEmptyPlaceholder extends Gtk.Box { }, class PrefsBoxOrderListEmptyPlaceholder extends Gtk.Box {
_init(params = {}) { _init(params = {}) {
super._init(params); super._init(params);