From: Tobias Brunner Date: Thu, 14 Apr 2022 08:49:45 +0000 (+0200) Subject: nm: Change layout of file chooser dialog X-Git-Tag: 5.9.7dr1~3^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49e30dbed4abd6e6c7ac27bdcfc7e8e2c8270222;p=thirdparty%2Fstrongswan.git 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). --- 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 +