🔧 Port to newest version

This commit is contained in:
Simon Schneegans
2022-01-23 16:47:31 +01:00
parent 8e53dc6117
commit 20dce532ae
2 changed files with 3 additions and 10 deletions
@@ -3,10 +3,6 @@
<object class="GtkBox" id="snap-prefs">
<property name="orientation">vertical</property>
<property name="margin-start">60</property>
<property name="margin-end">60</property>
<property name="margin-top">60</property>
<property name="margin-bottom">60</property>
<child>
<object class="GtkFrame">
+3 -6
View File
@@ -59,7 +59,7 @@ var SnapOfDisintegration = class SnapOfDisintegration {
// This is called by the preferences dialog. It loads the settings page for this effect,
// binds all properties to the settings and appends the page to the main stack of the
// preferences dialog.
static initPreferences(dialog) {
static getPreferences(dialog) {
// Add the settings page to the builder.
dialog.getBuilder().add_from_resource('/ui/gtk4/SnapOfDisintegration.ui');
@@ -69,11 +69,8 @@ var SnapOfDisintegration = class SnapOfDisintegration {
dialog.bindAdjustment('snap-scale');
dialog.bindColorButton('snap-color');
// Finally, append the settings page to the main stack.
const stack = dialog.getBuilder().get_object('main-stack');
stack.add_titled(
dialog.getBuilder().get_object('snap-prefs'), SnapOfDisintegration.getNick(),
SnapOfDisintegration.getLabel());
// Finally, return the new settings page.
return dialog.getBuilder().get_object('snap-prefs');
}
// ---------------------------------------------------------------- API for extension.js