[gnome-control-center] cc-window: Enable scroll-to-focus on panel list



commit f1d5a0e71ef997613660f16f26d18a24eeb6d294
Author: Christopher Davis <christopherdavis gnome org>
Date:   Tue Jan 4 13:20:06 2022 -0800

    cc-window: Enable scroll-to-focus on panel list
    
    GTK4 doesn't do this by default, so we need to make sure
    to specify it on our GtkViewport.

 shell/cc-window.ui | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/shell/cc-window.ui b/shell/cc-window.ui
index f4bf89f7e..052b149e6 100644
--- a/shell/cc-window.ui
+++ b/shell/cc-window.ui
@@ -85,10 +85,15 @@
                 <property name="width-request">200</property>
                 <property name="hscrollbar_policy">never</property>
                 <child>
-                  <object class="CcPanelList" id="panel_list">
-                    <property name="search-mode" bind-source="search_bar" 
bind-property="search-mode-enabled" bind-flags="bidirectional" />
-                    <property name="search-query" bind-source="search_entry" bind-property="text" 
bind-flags="default" />
-                    <signal name="show-panel" handler="show_panel_cb" object="CcWindow" swapped="yes" />
+                  <object class="GtkViewport">
+                    <property name="scroll-to-focus">True</property>
+                    <child>
+                      <object class="CcPanelList" id="panel_list">
+                        <property name="search-mode" bind-source="search_bar" 
bind-property="search-mode-enabled" bind-flags="bidirectional" />
+                        <property name="search-query" bind-source="search_entry" bind-property="text" 
bind-flags="default" />
+                        <signal name="show-panel" handler="show_panel_cb" object="CcWindow" swapped="yes" />
+                      </object>
+                    </child>
                   </object>
                 </child>
               </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]