mouse: Use content style for listboxes

This commit is contained in:
Mohammed Sadiq 2021-05-12 18:24:13 +05:30 committed by Robert Ancell
parent 179d6aeb2d
commit e09ecc41aa
2 changed files with 174 additions and 198 deletions

View file

@ -231,9 +231,6 @@ setup_dialog (CcMousePanel *self)
self->mouse_natural_scrolling_switch, "active", self->mouse_natural_scrolling_switch, "active",
G_SETTINGS_BIND_DEFAULT); G_SETTINGS_BIND_DEFAULT);
gtk_list_box_set_header_func (self->general_listbox, cc_list_box_update_header_func, NULL, NULL);
gtk_list_box_set_header_func (self->touchpad_listbox, cc_list_box_update_header_func, NULL, NULL);
/* Mouse section */ /* Mouse section */
gtk_widget_set_visible (GTK_WIDGET (self->mouse_frame), self->have_mouse); gtk_widget_set_visible (GTK_WIDGET (self->mouse_frame), self->have_mouse);
@ -241,8 +238,6 @@ setup_dialog (CcMousePanel *self)
gtk_range_get_adjustment (GTK_RANGE (self->mouse_speed_scale)), "value", gtk_range_get_adjustment (GTK_RANGE (self->mouse_speed_scale)), "value",
G_SETTINGS_BIND_DEFAULT); G_SETTINGS_BIND_DEFAULT);
gtk_list_box_set_header_func (self->mouse_listbox, cc_list_box_update_header_func, NULL, NULL);
/* Touchpad section */ /* Touchpad section */
gtk_widget_set_visible (GTK_WIDGET (self->touchpad_toggle_switch), show_touchpad_enabling_switch (self)); gtk_widget_set_visible (GTK_WIDGET (self->touchpad_toggle_switch), show_touchpad_enabling_switch (self));

View file

@ -41,16 +41,14 @@
</attributes> </attributes>
</object> </object>
</child> </child>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="shadow_type">in</property>
<child> <child>
<object class="GtkListBox" id="general_listbox"> <object class="GtkListBox" id="general_listbox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="selection_mode">none</property> <property name="selection_mode">none</property>
<style>
<class name="content"/>
</style>
<child> <child>
<object class="HdyActionRow" id="primary_button_row"> <object class="HdyActionRow" id="primary_button_row">
<property name="visible">True</property> <property name="visible">True</property>
@ -109,8 +107,6 @@
</child> </child>
</object> </object>
</child> </child>
</object>
</child>
<child> <child>
<object class="GtkFrame" id="mouse_frame"> <object class="GtkFrame" id="mouse_frame">
<property name="visible">False</property> <property name="visible">False</property>
@ -130,16 +126,14 @@
</attributes> </attributes>
</object> </object>
</child> </child>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="shadow_type">in</property>
<child> <child>
<object class="GtkListBox" id="mouse_listbox"> <object class="GtkListBox" id="mouse_listbox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="selection_mode">none</property> <property name="selection_mode">none</property>
<style>
<class name="content"/>
</style>
<child> <child>
<object class="HdyActionRow" id="mouse_row"> <object class="HdyActionRow" id="mouse_row">
<property name="visible">True</property> <property name="visible">True</property>
@ -185,8 +179,6 @@
</child> </child>
</object> </object>
</child> </child>
</object>
</child>
<child> <child>
<object class="GtkFrame" id="touchpad_frame"> <object class="GtkFrame" id="touchpad_frame">
<property name="visible">True</property> <property name="visible">True</property>
@ -205,21 +197,14 @@
</attributes> </attributes>
</object> </object>
</child> </child>
<child>
<object class="GtkFrame" id="touchpad_frame_listbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkBox" id="touchpad_box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child> <child>
<object class="GtkListBox" id="touchpad_listbox"> <object class="GtkListBox" id="touchpad_listbox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="selection_mode">none</property> <property name="selection_mode">none</property>
<style>
<class name="content"/>
</style>
<child> <child>
<object class="HdyActionRow" id="touchpad_toggle_row"> <object class="HdyActionRow" id="touchpad_toggle_row">
<property name="visible">True</property> <property name="visible">True</property>
@ -335,10 +320,6 @@
</child> </child>
</object> </object>
</child> </child>
</object>
</child>
</object>
</child>
<child> <child>
<object class="CcMouseTest" id="mouse_test"> <object class="CcMouseTest" id="mouse_test">
<property name="visible">True</property> <property name="visible">True</property>