[gnome-control-center/sharing-remote-desktop-cert-fingerprint-close-button-style] sharing: Use GtkWindowControls to wrap the cert fingerprint dialog




commit 968c4fd4366f051d45887f07b8f142a79835de19
Author: Felipe Borges <felipeborges gnome org>
Date:   Fri Apr 22 13:59:47 2022 +0200

    sharing: Use GtkWindowControls to wrap the cert fingerprint dialog
    
    Instead of using a plain "flat" button positioned at the window corner,
    let's use GtkWindowControls to wrap the close button and get the
    default window control styling and alignment.
    
    Fixes #1737

 panels/sharing/cc-sharing-panel.ui | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/panels/sharing/cc-sharing-panel.ui b/panels/sharing/cc-sharing-panel.ui
index 286aad478..12702d1e0 100644
--- a/panels/sharing/cc-sharing-panel.ui
+++ b/panels/sharing/cc-sharing-panel.ui
@@ -412,17 +412,21 @@
     <property name="default-width">360</property>
     <property name="default-height">360</property>
     <property name="modal">True</property>
+
     <child>
       <object class="GtkBox">
         <property name="orientation">vertical</property>
         <child>
-          <object class="GtkButton">
+          <object class="GtkWindowControls">
             <property name="halign">end</property>
-            <property name="icon-name">window-close-symbolic</property>
-            <signal name="clicked" handler="remote_desktop_hide_encryption_fingerprint" swapped="yes"/>
-            <style>
-              <class name="flat"/>
-            </style>
+            <property name="side">end</property>
+            <child>
+              <object class="GtkButton">
+                <property name="halign">end</property>
+                <property name="icon-name">window-close-symbolic</property>
+                <signal name="clicked" handler="remote_desktop_hide_encryption_fingerprint" swapped="yes"/>
+              </object>
+            </child>
           </object>
         </child>
         <child>


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