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
This commit is contained in:
Felipe Borges 2022-04-22 13:59:47 +02:00 committed by Georges Basile Stavracas Neto
parent b99a987c63
commit 633bf89537

View file

@ -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>