From 49e30dbed4abd6e6c7ac27bdcfc7e8e2c8270222 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 14 Apr 2022 10:49:45 +0200 Subject: [PATCH] nm: Change layout of file chooser dialog GTK4 does not support buttons at the bottom, so we put them in a header bar, which is the preferred layout by current desktop environments. And while it doesn't look ideal on older desktops, it also works with GTK3 and changing it avoids having to maintain multiple UI files. Note that this layout is not supported by glade, so we generally can't use it to edit the GUI anymore (it also doesn't support GTK4 in general). --- .../gnome/properties/nm-strongswan-dialog.ui | 260 ++++++++---------- 1 file changed, 112 insertions(+), 148 deletions(-) diff --git a/src/frontends/gnome/properties/nm-strongswan-dialog.ui b/src/frontends/gnome/properties/nm-strongswan-dialog.ui index bb47c634e7..66b170c0ae 100644 --- a/src/frontends/gnome/properties/nm-strongswan-dialog.ui +++ b/src/frontends/gnome/properties/nm-strongswan-dialog.ui @@ -1,64 +1,52 @@ - + False - Choose a server or CA certificate… True - dialog - - + + + True False - vertical - 2 - - + False + + + Choose a server or CA certificate… + True False - end - - - _Cancel - True - True - False - True - - - True - True - 0 - - - - - _Select - True - True - True - True - True - True - - - - True - True - 1 - - + - - False - False - 0 - - + + _Cancel + True + True + False + True + + + + + _Select + True + True + True + True + True + True + + + + 1 + end + @@ -756,61 +744,49 @@ False - Choose a client certificate… True - dialog - - + + + True False - vertical - 2 - - + False + + + Choose a client certificate… + True False - end - - - _Cancel - True - True - False - True - - - True - True - 0 - - - - - _Select - True - True - True - True - True - True - - - - True - True - 1 - - + - - False - False - 0 - - + + _Cancel + True + True + False + True + + + + + _Select + True + True + True + True + True + True + + + + 1 + end + @@ -821,61 +797,49 @@ False - Choose a private key… True - dialog - - + + + True False - vertical - 2 - - + False + + + Choose a private key… + True False - end - - - _Cancel - True - True - False - True - - - True - True - 0 - - - - - _Select - True - True - True - True - True - True - - - - True - True - 1 - - + - - False - False - 0 - - + + _Cancel + True + True + False + True + + + + + _Select + True + True + True + True + True + True + + + + 1 + end + -- 2.47.2