🪲 Fix GTK3

This commit is contained in:
Simon Schneegans
2022-01-02 12:48:47 +01:00
parent 8c7e3abbeb
commit 5682a5cdf8
2 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ var PreferencesDialog = class PreferencesDialog {
// Add a menu to the title bar of the preferences dialog. // Add a menu to the title bar of the preferences dialog.
this._widget.connect('realize', (widget) => { this._widget.connect('realize', (widget) => {
const window = widget.get_root(); const window = utils.gtk4() ? widget.get_root() : widget.get_toplevel();
// Show the version number in the title bar. // Show the version number in the title bar.
window.set_title(`Burn-My-Windows ${Me.metadata.version}`); window.set_title(`Burn-My-Windows ${Me.metadata.version}`);
+8 -1
View File
@@ -47,7 +47,14 @@
<object class="GtkMenuButton" id="menu-button"> <object class="GtkMenuButton" id="menu-button">
<property name="menu-model">main-menu</property> <property name="menu-model">main-menu</property>
<property name="icon-name">open-menu-symbolic</property> <property name="visible">1</property>
<child>
<object class="GtkImage">
<property name="icon-name">open-menu-symbolic</property>
<property name="visible">1</property>
<property name="icon-size">1</property>
</object>
</child>
</object> </object>
<object class="GtkAdjustment" id="destroy-animation-time"> <object class="GtkAdjustment" id="destroy-animation-time">