mouse: Don't use gtk_widget_show_all
It is removed in GTK+ 4
This commit is contained in:
parent
216736b8dd
commit
ea1a4b0afc
2 changed files with 4 additions and 9 deletions
|
@ -98,17 +98,14 @@ setup_touchpad_options (CcMouseProperties *self)
|
||||||
gboolean have_edge_scrolling;
|
gboolean have_edge_scrolling;
|
||||||
gboolean have_tap_to_click;
|
gboolean have_tap_to_click;
|
||||||
|
|
||||||
gtk_widget_set_visible (self->touchpad_frame, !self->have_synaptics);
|
if (self->have_synaptics || !self->have_touchpad) {
|
||||||
if (self->have_synaptics)
|
gtk_widget_hide (self->touchpad_frame);
|
||||||
return;
|
|
||||||
|
|
||||||
gtk_widget_set_visible (self->touchpad_frame, self->have_touchpad);
|
|
||||||
if (!self->have_touchpad)
|
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
cc_touchpad_check_capabilities (&have_two_finger_scrolling, &have_edge_scrolling, &have_tap_to_click);
|
cc_touchpad_check_capabilities (&have_two_finger_scrolling, &have_edge_scrolling, &have_tap_to_click);
|
||||||
|
|
||||||
gtk_widget_show_all (self->touchpad_frame);
|
gtk_widget_show (self->touchpad_frame);
|
||||||
|
|
||||||
gtk_widget_set_visible (self->two_finger_scrolling_row, have_two_finger_scrolling);
|
gtk_widget_set_visible (self->two_finger_scrolling_row, have_two_finger_scrolling);
|
||||||
gtk_widget_set_visible (self->edge_scrolling_row, have_edge_scrolling);
|
gtk_widget_set_visible (self->edge_scrolling_row, have_edge_scrolling);
|
||||||
|
|
|
@ -616,7 +616,6 @@
|
||||||
<object class="GtkListBoxRow" id="two_finger_scrolling_row">
|
<object class="GtkListBoxRow" id="two_finger_scrolling_row">
|
||||||
<property name="visible">False</property>
|
<property name="visible">False</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="no_show_all">True</property>
|
|
||||||
<property name="activatable">false</property>
|
<property name="activatable">false</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkGrid" id="two_finger_scrolling_grid">
|
<object class="GtkGrid" id="two_finger_scrolling_grid">
|
||||||
|
@ -670,7 +669,6 @@
|
||||||
<object class="GtkListBoxRow" id="edge_scrolling_row">
|
<object class="GtkListBoxRow" id="edge_scrolling_row">
|
||||||
<property name="visible">False</property>
|
<property name="visible">False</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="no_show_all">True</property>
|
|
||||||
<property name="activatable">false</property>
|
<property name="activatable">false</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkGrid" id="edge_scrolling_grid">
|
<object class="GtkGrid" id="edge_scrolling_grid">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue