sharing: Set label for checkbox properly

The Screen Sharing dialog used to have a switch, which was changed to a
checkbox in 8b68961431

However, unlike switches, checkboxes are expected to have clicable labels

Let's set the label properly, instead of doing it the switch way.

Fixes https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/565


(cherry picked from commit cde8f69ad6)
This commit is contained in:
António Fernandes 2020-03-30 15:37:03 +00:00 committed by Georges Basile Stavracas Neto
parent b1efaf0578
commit 105b60d2a6

View file

@ -562,37 +562,13 @@
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
<object class="GtkBox" id="box6">
<object class="GtkCheckButton" id="remote_control_checkbutton">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="remote_control_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">_Allow connections to control the screen</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">remote_control_checkbutton</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="remote_control_checkbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="draw_indicator">True</property>
<property name="use_underline">True</property>
<property name="label" translatable="yes">_Allow connections to control the screen</property>
</object>
<packing>
<property name="expand">False</property>