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.
This commit is contained in:
Christopher Davis 2022-01-04 13:20:06 -08:00 committed by Georges Basile Stavracas Neto
parent 8ba134fbce
commit f1d5a0e71e

View file

@ -85,10 +85,15 @@
<property name="width-request">200</property> <property name="width-request">200</property>
<property name="hscrollbar_policy">never</property> <property name="hscrollbar_policy">never</property>
<child> <child>
<object class="CcPanelList" id="panel_list"> <object class="GtkViewport">
<property name="search-mode" bind-source="search_bar" bind-property="search-mode-enabled" bind-flags="bidirectional" /> <property name="scroll-to-focus">True</property>
<property name="search-query" bind-source="search_entry" bind-property="text" bind-flags="default" /> <child>
<signal name="show-panel" handler="show_panel_cb" object="CcWindow" swapped="yes" /> <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> </object>
</child> </child>
</object> </object>