mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
prefs: Add can-swipe-back compat with latest libadwaita
Recent libadwaita has renamed "can-swipe-back" into "can-navigate-back". Set both in JS code instead of UI file in order to support all libadwaita versions. Fixes #185
This commit is contained in:
@@ -553,6 +553,11 @@ class ClapperPrefsWindow extends Adw.PreferencesWindow
|
||||
transient_for: window,
|
||||
});
|
||||
|
||||
/* FIXME: old libadwaita compat, should be
|
||||
* normally in prefs UI file */
|
||||
this.can_swipe_back = true;
|
||||
this.can_navigate_back = true;
|
||||
|
||||
this.show();
|
||||
}
|
||||
});
|
||||
|
@@ -5,7 +5,6 @@
|
||||
<property name="resizable">True</property>
|
||||
<property name="search-enabled">True</property>
|
||||
<property name="destroy-with-parent">True</property>
|
||||
<property name="can-swipe-back">True</property>
|
||||
<property name="modal">True</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesPage">
|
||||
|
Reference in New Issue
Block a user