[connections/gnome-42] WIP: Add "scale" preference to RDP connections



commit e0b83004c7f55aa6744b46b6a1aa125434619b60
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Apr 4 15:36:23 2022 +0200

    WIP: Add "scale" preference to RDP connections

 src/rdp-preferences-window.vala | 3 +++
 src/ui/rdp-preferences.ui       | 7 +++++++
 2 files changed, 10 insertions(+)
---
diff --git a/src/rdp-preferences-window.vala b/src/rdp-preferences-window.vala
index 267356e..be9d347 100644
--- a/src/rdp-preferences-window.vala
+++ b/src/rdp-preferences-window.vala
@@ -26,12 +26,15 @@ namespace Connections {
         private unowned Gtk.Entry connection_name_entry;
         [GtkChild]
         private unowned Gtk.Label host_address_label;
+        [GtkChild]
+        private unowned BooleanProperty scaling;
 
         public RdpPreferencesWindow (Connection connection) {
             this.connection = connection;
 
             bind_widget_property (connection_name_entry, "text", "display_name");
             bind_widget_property (host_address_label, "label", "uri");
+            bind_widget_property (scaling, "active", "scaling");
         }
     }
 }
diff --git a/src/ui/rdp-preferences.ui b/src/ui/rdp-preferences.ui
index 2b644ec..55deed8 100644
--- a/src/ui/rdp-preferences.ui
+++ b/src/ui/rdp-preferences.ui
@@ -44,6 +44,13 @@
                   </child>
                 </object>
               </child>
+
+              <child>
+                <object class="ConnectionsBooleanProperty" id="scaling">
+                  <property name="visible">True</property>
+                  <property name="title" translatable="yes">Scaling</property>
+                </object>
+              </child>
             </object>
           </child>
         </object>


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