🪲 Fix support dialog on GTK4

This commit is contained in:
Simon Schneegans
2023-06-05 21:58:52 +02:00
parent b8759174f8
commit 78d4e79925
2 changed files with 28 additions and 32 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ var PreferencesDialog = class PreferencesDialog {
this._settings.set_boolean('show-support-dialog', false); this._settings.set_boolean('show-support-dialog', false);
} }
if (!utils.isGTK4()) { if (!utils.isADW()) {
dialog.close(); dialog.close();
} }
}); });
+27 -31
View File
@@ -38,40 +38,36 @@ SPDX-License-Identifier: GPL-3.0-or-later
<property name="text">Do you want to support Burn-My-Windows?</property> <property name="text">Do you want to support Burn-My-Windows?</property>
<property name="secondary-text">If only one out of ten users would support this project with 1$ / month, I could work full-time on open-source projects!</property> <property name="secondary-text">If only one out of ten users would support this project with 1$ / month, I could work full-time on open-source projects!</property>
<property name="modal">true</property> <property name="modal">true</property>
<child internal-child="vbox"> <child internal-child="message_area">
<object class="GtkBox"> <object class="GtkBox">
<child internal-child="message_area"> <child>
<object class="GtkBox"> <object class="GtkLabel">
<child> <property name="hexpand">true</property>
<object class="GtkLabel"> <property name="halign">start</property>
<property name="hexpand">true</property> <property name="use-markup">true</property>
<property name="halign">start</property> <property name="label">Support me on Ko-fi: &lt;a href='https://ko-fi.com/schneegans'&gt;https://ko-fi.com/schneegans&lt;/a&gt;</property>
<property name="use-markup">true</property>
<property name="label">Support me on Ko-fi: &lt;a href='https://ko-fi.com/schneegans'&gt;https://ko-fi.com/schneegans&lt;/a&gt;</property>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="hexpand">true</property>
<property name="halign">start</property>
<property name="use-markup">true</property>
<property name="label">Support me on GitHub: &lt;a href='https://github.com/sponsors/schneegans'&gt;https://github.com/sponsors/schneegans&lt;/a&gt;</property>
</object>
</child>
</object> </object>
</child> </child>
<child internal-child="action_area"> <child>
<object class="GtkHButtonBox"> <object class="GtkLabel">
<child> <property name="hexpand">true</property>
<object class="GtkButton" id="support_never_button"> <property name="halign">start</property>
<property name="label">Do not show this again!</property> <property name="use-markup">true</property>
</object> <property name="label">Support me on GitHub: &lt;a href='https://github.com/sponsors/schneegans'&gt;https://github.com/sponsors/schneegans&lt;/a&gt;</property>
</child> </object>
<child> </child>
<object class="GtkButton" id="support_later_button"> </object>
<property name="label">Maybe later...</property> </child>
</object> <child internal-child="action_area">
</child> <object class="GtkBox">
<child>
<object class="GtkButton" id="support_never_button">
<property name="label">Do not show this again!</property>
</object>
</child>
<child>
<object class="GtkButton" id="support_later_button">
<property name="label">Maybe later...</property>
</object> </object>
</child> </child>
</object> </object>