mouse: Use content style for listboxes
This commit is contained in:
parent
179d6aeb2d
commit
e09ecc41aa
2 changed files with 174 additions and 198 deletions
|
@ -231,9 +231,6 @@ setup_dialog (CcMousePanel *self)
|
|||
self->mouse_natural_scrolling_switch, "active",
|
||||
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 */
|
||||
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",
|
||||
G_SETTINGS_BIND_DEFAULT);
|
||||
|
||||
gtk_list_box_set_header_func (self->mouse_listbox, cc_list_box_update_header_func, NULL, NULL);
|
||||
|
||||
/* Touchpad section */
|
||||
gtk_widget_set_visible (GTK_WIDGET (self->touchpad_toggle_switch), show_touchpad_enabling_switch (self));
|
||||
|
||||
|
|
|
@ -41,16 +41,14 @@
|
|||
</attributes>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFrame">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkListBox" id="general_listbox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="selection_mode">none</property>
|
||||
<style>
|
||||
<class name="content"/>
|
||||
</style>
|
||||
<child>
|
||||
<object class="HdyActionRow" id="primary_button_row">
|
||||
<property name="visible">True</property>
|
||||
|
@ -109,8 +107,6 @@
|
|||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFrame" id="mouse_frame">
|
||||
<property name="visible">False</property>
|
||||
|
@ -130,16 +126,14 @@
|
|||
</attributes>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFrame">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="shadow_type">in</property>
|
||||
<child>
|
||||
<object class="GtkListBox" id="mouse_listbox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="selection_mode">none</property>
|
||||
<style>
|
||||
<class name="content"/>
|
||||
</style>
|
||||
<child>
|
||||
<object class="HdyActionRow" id="mouse_row">
|
||||
<property name="visible">True</property>
|
||||
|
@ -185,8 +179,6 @@
|
|||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkFrame" id="touchpad_frame">
|
||||
<property name="visible">True</property>
|
||||
|
@ -205,21 +197,14 @@
|
|||
</attributes>
|
||||
</object>
|
||||
</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>
|
||||
<object class="GtkListBox" id="touchpad_listbox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="selection_mode">none</property>
|
||||
<style>
|
||||
<class name="content"/>
|
||||
</style>
|
||||
<child>
|
||||
<object class="HdyActionRow" id="touchpad_toggle_row">
|
||||
<property name="visible">True</property>
|
||||
|
@ -335,10 +320,6 @@
|
|||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="CcMouseTest" id="mouse_test">
|
||||
<property name="visible">True</property>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue