🔧 Port to newest version
This commit is contained in:
@@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
<object class="GtkBox" id="snap-prefs">
|
<object class="GtkBox" id="snap-prefs">
|
||||||
<property name="orientation">vertical</property>
|
<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>
|
<child>
|
||||||
<object class="GtkFrame">
|
<object class="GtkFrame">
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ var SnapOfDisintegration = class SnapOfDisintegration {
|
|||||||
// This is called by the preferences dialog. It loads the settings page for this effect,
|
// 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
|
// binds all properties to the settings and appends the page to the main stack of the
|
||||||
// preferences dialog.
|
// preferences dialog.
|
||||||
static initPreferences(dialog) {
|
static getPreferences(dialog) {
|
||||||
|
|
||||||
// Add the settings page to the builder.
|
// Add the settings page to the builder.
|
||||||
dialog.getBuilder().add_from_resource('/ui/gtk4/SnapOfDisintegration.ui');
|
dialog.getBuilder().add_from_resource('/ui/gtk4/SnapOfDisintegration.ui');
|
||||||
@@ -69,11 +69,8 @@ var SnapOfDisintegration = class SnapOfDisintegration {
|
|||||||
dialog.bindAdjustment('snap-scale');
|
dialog.bindAdjustment('snap-scale');
|
||||||
dialog.bindColorButton('snap-color');
|
dialog.bindColorButton('snap-color');
|
||||||
|
|
||||||
// Finally, append the settings page to the main stack.
|
// Finally, return the new settings page.
|
||||||
const stack = dialog.getBuilder().get_object('main-stack');
|
return dialog.getBuilder().get_object('snap-prefs');
|
||||||
stack.add_titled(
|
|
||||||
dialog.getBuilder().get_object('snap-prefs'), SnapOfDisintegration.getNick(),
|
|
||||||
SnapOfDisintegration.getLabel());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------- API for extension.js
|
// ---------------------------------------------------------------- API for extension.js
|
||||||
|
|||||||
Reference in New Issue
Block a user