Commit 8b689614 authored by Felipe Borges's avatar Felipe Borges
Browse files

sharing: Use a checkbutton in the "Screen Sharing" dialog

According to the new designs at
https://wiki.gnome.org/Design/SystemSettings/Sharing
We should use a checkbutton instead of a switch for
the "Allow connections to control the screen" option.
Also, this commit changes this option label accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=767646
parent 612ac492
......@@ -1013,7 +1013,7 @@ cc_sharing_panel_setup_screen_sharing_dialog (CcSharingPanel *self)
/* settings bindings */
settings = g_settings_new (VINO_SCHEMA_ID);
g_settings_bind (settings, "view-only", WID ("remote-control-switch"),
g_settings_bind (settings, "view-only", WID ("remote-control-checkbutton"),
"active",
G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_INVERT_BOOLEAN);
g_settings_bind (settings, "prompt-enabled",
......
......@@ -524,32 +524,32 @@
<object class="GtkBox" id="box6">
<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 Remote Control</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-switch</property>
<property name="mnemonic_widget">remote-control-checkbutton</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkSwitch" id="remote-control-switch">
<object class="GtkCheckButton" id="remote-control-checkbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="halign">end</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
<property name="position">0</property>
</packing>
</child>
</object>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment