🔧 Fix preferences on GTK4 (once more)
This commit is contained in:
@@ -578,13 +578,13 @@ var PreferencesDialog = class PreferencesDialog {
|
|||||||
// Initializes template widgets used by the preferences dialog.
|
// Initializes template widgets used by the preferences dialog.
|
||||||
_registerCustomClasses() {
|
_registerCustomClasses() {
|
||||||
|
|
||||||
// On GTK3, each effect page is based on a template widget. This template contains the
|
// If we are not using libadwaita, each effect page is based on a template widget.
|
||||||
// title and the preview button.
|
// This template contains the title and the preview button.
|
||||||
if (!utils.isADW() && GObject.type_from_name('BurnMyWindowsEffectPage') == null) {
|
if (!utils.isADW() && GObject.type_from_name('BurnMyWindowsEffectPage') == null) {
|
||||||
BurnMyWindowsEffectPage = GObject.registerClass(
|
BurnMyWindowsEffectPage = GObject.registerClass(
|
||||||
{
|
{
|
||||||
GTypeName: 'BurnMyWindowsEffectPage',
|
GTypeName: 'BurnMyWindowsEffectPage',
|
||||||
Template: `resource:///ui/gtk3/effectPage.ui`,
|
Template: `resource:///ui/${utils.getUIDir()}/effectPage.ui`,
|
||||||
InternalChildren: ['label', 'button'],
|
InternalChildren: ['label', 'button'],
|
||||||
},
|
},
|
||||||
class BurnMyWindowsEffectPage extends Gtk.Box { // ------------------------------
|
class BurnMyWindowsEffectPage extends Gtk.Box { // ------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user