Skip to content

Commit

Permalink
add GNOME 42 compatibility, fix scroll behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
khimaros committed Apr 24, 2022
1 parent c00abad commit af9a677
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 6 deletions.
4 changes: 2 additions & 2 deletions smart-auto-move@khimaros.com/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"settings-schema": "org.gnome.shell.extensions.smart-auto-move",
"settings-path": "/org/gnome/shell/extensions/smart-auto-move/",
"original-author": "khimaros",
"version": "15",
"shell-version": ["41"]
"version": "16",
"shell-version": ["41", "42"]
}
22 changes: 20 additions & 2 deletions smart-auto-move@khimaros.com/ui.in/prefs-gtk3.ui
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,23 @@
<property name="page-increment">100</property>
</object>
<object class="GtkNotebook" id="prefs-notebook">
<property name="width-request">800</property>
<property name="height-request">600</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="scrollable">True</property>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<!-- n-columns=5 n-rows=6 -->
<object class="GtkGrid">
Expand All @@ -43,6 +47,8 @@
<property name="margin-end">8</property>
<property name="margin-top">8</property>
<property name="margin-bottom">8</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="row-spacing">8</property>
<child>
<object class="GtkLabel">
Expand Down Expand Up @@ -234,14 +240,20 @@
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkListBox" id="saved-windows-listbox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="selection-mode">none</property>
<property name="activate-on-single-click">False</property>
</object>
Expand All @@ -268,14 +280,20 @@
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkListBox" id="overrides-listbox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="selection-mode">none</property>
<property name="activate-on-single-click">False</property>
<child>
Expand Down
22 changes: 20 additions & 2 deletions smart-auto-move@khimaros.com/ui/prefs-gtk4.ui
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,30 @@
<property name="page-increment">100</property>
</object>
<object class="GtkNotebook" id="prefs-notebook">
<property name="width-request">800</property>
<property name="height-request">600</property>
<property name="focusable">1</property>
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="scrollable">1</property>
<child>
<object class="GtkNotebookPage">
<property name="child">
<object class="GtkScrolledWindow">
<property name="focusable">1</property>
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="child">
<object class="GtkViewport">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="child">
<object class="GtkGrid">
<property name="valign">start</property>
<property name="margin-start">8</property>
<property name="margin-end">8</property>
<property name="margin-top">8</property>
<property name="margin-bottom">8</property>
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="row-spacing">8</property>
<child>
<object class="GtkLabel">
Expand Down Expand Up @@ -208,10 +214,16 @@
<property name="child">
<object class="GtkScrolledWindow">
<property name="focusable">1</property>
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="child">
<object class="GtkViewport">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="child">
<object class="GtkListBox" id="saved-windows-listbox">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="selection-mode">none</property>
<property name="activate-on-single-click">0</property>
</object>
Expand All @@ -233,10 +245,16 @@
<property name="child">
<object class="GtkScrolledWindow">
<property name="focusable">1</property>
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="child">
<object class="GtkViewport">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="child">
<object class="GtkListBox" id="overrides-listbox">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<property name="selection-mode">none</property>
<property name="activate-on-single-click">0</property>
<child>
Expand Down

0 comments on commit af9a677

Please sign in to comment.