[gnome-control-center] sharing: Fix misleading widget name



commit 7f77d087f4996988bd1fe159304b4789eb73b2f1
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Apr 8 12:34:53 2022 +1200

    sharing: Fix misleading widget name

 panels/sharing/cc-sharing-panel.c  | 8 ++++----
 panels/sharing/cc-sharing-panel.ui | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/panels/sharing/cc-sharing-panel.c b/panels/sharing/cc-sharing-panel.c
index 6b2a0994b..76e9e7b6e 100644
--- a/panels/sharing/cc-sharing-panel.c
+++ b/panels/sharing/cc-sharing-panel.c
@@ -85,7 +85,7 @@ struct _CcSharingPanel
   GtkWidget *remote_login_row;
   GtkWidget *remote_login_switch;
 
-  GtkWidget *remote_control_checkbutton;
+  GtkWidget *remote_control_switch;
   GtkWidget *remote_desktop_password_entry;
   GtkWidget *remote_desktop_password_copy;
   GtkWidget *remote_desktop_username_entry;
@@ -285,7 +285,7 @@ cc_sharing_panel_class_init (CcSharingPanelClass *klass)
   gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, remote_login_switch);
   gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, remote_desktop_dialog);
   gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, remote_desktop_switch);
-  gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, remote_control_checkbutton);
+  gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, remote_control_switch);
   gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, remote_desktop_username_entry);
   gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, remote_desktop_username_copy);
   gtk_widget_class_bind_template_child (widget_class, CcSharingPanel, remote_desktop_password_entry);
@@ -1355,11 +1355,11 @@ cc_sharing_panel_setup_remote_desktop_dialog (CcSharingPanel *self)
 
   g_settings_bind (rdp_settings,
                    "view-only",
-                   self->remote_control_checkbutton,
+                   self->remote_control_switch,
                    "active",
                    G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_INVERT_BOOLEAN);
   g_object_bind_property (self->remote_desktop_switch, "state",
-                          self->remote_control_checkbutton, "sensitive",
+                          self->remote_control_switch, "sensitive",
                           G_BINDING_SYNC_CREATE);
 
   hostname = get_hostname ();
diff --git a/panels/sharing/cc-sharing-panel.ui b/panels/sharing/cc-sharing-panel.ui
index 12702d1e0..8ae9ab5c0 100644
--- a/panels/sharing/cc-sharing-panel.ui
+++ b/panels/sharing/cc-sharing-panel.ui
@@ -280,7 +280,7 @@
                 <property name="title" translatable="yes">Remote Control</property>
                 <property name="subtitle" translatable="yes">Allows remote connections to control the 
screen.</property>
                 <child type="suffix">
-                  <object class="GtkSwitch" id="remote_control_checkbutton">
+                  <object class="GtkSwitch" id="remote_control_switch">
                     <property name="valign">center</property>
                   </object>
                 </child>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]