[krb5-auth-dialog] Convert UI files for GTK4



commit 31394d7ea3bcb4ce01aaf113beb0d6e56b15ec90
Author: Guido Günther <agx sigxcpu org>
Date:   Mon Oct 17 10:21:05 2022 +0200

    Convert UI files for GTK4
    
    This was supported by
    
      gtk4-builder-tool  simplify --replace --3to4 src/resources/ui/*.ui

 src/resources/ui/ka-main-window.ui |  46 ++--
 src/resources/ui/ka-preferences.ui | 473 +++++++++++++++++--------------------
 src/resources/ui/ka-pwdialog.ui    |  15 +-
 3 files changed, 237 insertions(+), 297 deletions(-)
---
diff --git a/src/resources/ui/ka-main-window.ui b/src/resources/ui/ka-main-window.ui
index 75c3c58..5c60ee3 100644
--- a/src/resources/ui/ka-main-window.ui
+++ b/src/resources/ui/ka-main-window.ui
@@ -1,11 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.20.0 -->
 <interface>
-  <requires lib="gtk+" version="3.14"/>
+  <requires lib="gtk" version="4.0"/>
   <object class="GtkPopover" id="menu_main">
-    <child>
+    <property name="child">
       <object class="GtkBox">
-        <property name="visible">True</property>
         <property name="margin-start">10</property>
         <property name="margin-top">10</property>
         <property name="margin-bottom">10</property>
@@ -40,7 +38,7 @@
           </object>
         </child>
       </object>
-    </child>
+    </property>
   </object>
   <object class="GtkAdjustment" id="adjustment1">
     <property name="upper">100</property>
@@ -53,52 +51,48 @@
     <property name="hide-on-close">True</property>
     <child>
       <object class="GtkStack" id="stack">
-        <property name="visible">True</property>
         <property name="margin-bottom">5</property>
         <property name="margin-end">5</property>
         <property name="margin-start">5</property>
         <property name="margin-top">5</property>
         <property name="transition_type">slide-down</property>
         <child>
-          <object class="GtkTreeView" id="krb5_tickets_treeview">
-            <property name="visible">True</property>
-            <child internal-child="selection">
-              <object class="GtkTreeSelection" id="treeview-selection"/>
-            </child>
-          </object>
-          <packing>
+          <object class="GtkStackPage">
             <property name="name">tickets</property>
-          </packing>
+            <property name="child">
+              <object class="GtkTreeView" id="krb5_tickets_treeview">
+                <child internal-child="selection">
+                  <object class="GtkTreeSelection" id="treeview-selection"/>
+                </child>
+              </object>
+            </property>
+          </object>
         </child>
         <child>
-          <object class="GtkLabel">
-            <property name="visible">True</property>
-            <property name="label" translatable="yes">Your ticket cache is currently empty</property>
-          </object>
-          <packing>
+          <object class="GtkStackPage">
             <property name="name">message</property>
-          </packing>
+            <property name="child">
+              <object class="GtkLabel">
+                <property name="label" translatable="yes">Your ticket cache is currently empty</property>
+              </object>
+            </property>
+          </object>
         </child>
       </object>
     </child>
     <child type="titlebar">
       <object class="GtkHeaderBar" id="header">
-        <property name="visible">True</property>
-        <property name="show_close_button">True</property>
         <child>
           <object class="GtkButton" id="get_ticket_btn">
-            <property name="visible">True</property>
             <property name="label" translatable="yes">Get Ticket</property>
           </object>
         </child>
         <child type="end">
           <object class="GtkMenuButton">
-            <property name="visible">True</property>
-            <property name="receives_default">True</property>
+            <property name="receives-default">True</property>
             <property name="popover">menu_main</property>
             <child>
               <object class="GtkImage">
-                <property name="visible">True</property>
                 <property name="icon_name">open-menu-symbolic</property>
               </object>
             </child>
diff --git a/src/resources/ui/ka-preferences.ui b/src/resources/ui/ka-preferences.ui
index 9aeb6ad..ff1eed0 100644
--- a/src/resources/ui/ka-preferences.ui
+++ b/src/resources/ui/ka-preferences.ui
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <!-- interface-requires gtk+ 3.0 -->
+  <requires lib="gtk" version="4.0"/>
   <object class="GtkAdjustment" id="adjustment1">
     <property name="upper">100</property>
     <property name="step_increment">1</property>
@@ -14,147 +14,127 @@
     <property name="margin-top">5</property>
     <child internal-child="content_area">
       <object class="GtkBox">
-        <property name="visible">True</property>
         <property name="orientation">vertical</property>
         <property name="spacing">2</property>
         <child>
           <object class="GtkNotebook" id="notebook">
-            <property name="visible">True</property>
             <child>
-              <object class="GtkBox" id="vbox_kerberos">
-                <property name="visible">True</property>
-                <property name="orientation">vertical</property>
-                <property name="margin-bottom">12</property>
-                <property name="margin-end">12</property>
-                <property name="margin-start">12</property>
-                <property name="margin-top">12</property>
-                <property name="spacing">18</property>
-                <property name="expand">True</property>
-                <child>
-                  <object class="GtkBox" id="vbox_kerberos_user">
-                    <property name="visible">True</property>
+              <object class="GtkNotebookPage">
+                <property name="child">
+                  <object class="GtkBox" id="vbox_kerberos">
                     <property name="orientation">vertical</property>
-                    <property name="spacing">12</property>
+                    <property name="margin-bottom">12</property>
+                    <property name="margin-end">12</property>
+                    <property name="margin-start">12</property>
+                    <property name="margin-top">12</property>
+                    <property name="spacing">18</property>
+                    <property name="hexpand">True</property>
+                    <property name="vexpand">True</property>
                     <child>
-                      <object class="GtkLabel" id="label_kerberos_user">
-                        <property name="visible">True</property>
-                        <property name="halign">start</property>
-                        <property name="label" translatable="yes">Kerberos User</property>
-                        <style>
-                          <class name="heading"/>
-                        </style>
-                      </object>
-                    </child>
-                    <child>
-                      <object class="GtkBox">
-                        <property name="visible">True</property>
+                      <object class="GtkBox" id="vbox_kerberos_user">
+                        <property name="orientation">vertical</property>
                         <property name="spacing">12</property>
                         <child>
-                          <object class="GtkImage" id="access">
-                            <property name="visible">True</property>
-                            <property name="valign">start</property>
-                            <property name="icon_name">krb-valid-ticket</property>
-                            <property name="pixel-size">48</property>
+                          <object class="GtkLabel" id="label_kerberos_user">
+                            <property name="halign">start</property>
+                            <property name="label" translatable="yes">Kerberos User</property>
+                            <style>
+                              <class name="heading"/>
+                            </style>
                           </object>
                         </child>
                         <child>
                           <object class="GtkBox">
-                            <property name="visible">True</property>
-                            <property name="spacing">6</property>
-                            <property name="orientation">vertical</property>
+                            <property name="spacing">12</property>
                             <child>
-                              <object class="GtkLabel">
-                                <property name="visible">True</property>
-                                <property name="halign">start</property>
-                                <property name="label" translatable="yes">Kerberos principal:</property>
+                              <object class="GtkImage" id="access">
+                                <property name="valign">start</property>
+                                <property name="icon_name">krb-valid-ticket</property>
+                                <property name="pixel-size">48</property>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkEntry" id="principal_entry">
-                                <property name="visible">True</property>
-                                <property name="margin-top">5</property>
-                                <property name="margin-start">12</property>
-                                <property name="tooltip-text" translatable="yes">The name of your Kerberos 
account. Leave blank to use your current username.</property>
-                                <property name="activates_default">True</property>
+                              <object class="GtkBox">
+                                <property name="spacing">6</property>
+                                <property name="orientation">vertical</property>
+                                <child>
+                                  <object class="GtkLabel">
+                                    <property name="halign">start</property>
+                                    <property name="label" translatable="yes">Kerberos principal:</property>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkEntry" id="principal_entry">
+                                    <property name="margin-top">5</property>
+                                    <property name="margin-start">12</property>
+                                    <property name="tooltip-text" translatable="yes">The name of your 
Kerberos account. Leave blank to use your current username.</property>
+                                    <property name="activates_default">True</property>
+                                  </object>
+                                </child>
                               </object>
                             </child>
                           </object>
                         </child>
                       </object>
                     </child>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkBox" id="vbox_ticket_options">
-                    <property name="visible">True</property>
-                    <property name="orientation">vertical</property>
-                    <property name="spacing">12</property>
-                    <child>
-                      <object class="GtkLabel">
-                        <property name="visible">True</property>
-                        <property name="halign">start</property>
-                        <property name="label" translatable="yes">Kerberos Ticket Options</property>
-                        <style>
-                          <class name="heading"/>
-                        </style>
-                      </object>
-                    </child>
                     <child>
-                      <object class="GtkBox">
-                        <property name="visible">True</property>
+                      <object class="GtkBox" id="vbox_ticket_options">
+                        <property name="orientation">vertical</property>
                         <property name="spacing">12</property>
                         <child>
-                          <object class="GtkImage">
-                            <property name="visible">True</property>
-                            <property name="valign">start</property>
-                            <property name="icon-name">preferences-system</property>
-                            <property name="pixel-size">48</property>
+                          <object class="GtkLabel">
+                            <property name="halign">start</property>
+                            <property name="label" translatable="yes">Kerberos Ticket Options</property>
+                            <style>
+                              <class name="heading"/>
+                            </style>
                           </object>
                         </child>
                         <child>
                           <object class="GtkBox">
-                            <property name="visible">True</property>
-                            <property name="orientation">vertical</property>
-                            <property name="spacing">6</property>
-                            <child>
-                              <object class="GtkLabel">
-                                <property name="visible">True</property>
-                                <property name="halign">start</property>
-                                <property name="label" translatable="yes">Requested Kerberos tickets should 
be:</property>
-                                <property name="wrap">True</property>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkCheckButton" id="forwardable_toggle">
-                                <property name="label" translatable="yes">forwardable</property>
-                                <property name="visible">True</property>
-                                <property name="margin-start">12</property>
-                                <property name="receives_default">False</property>
-                                <property name="tooltip-text" translatable="yes">If checked, request 
forwardable tickets</property>
-                                <property name="halign">start</property>
-                                <property name="draw_indicator">True</property>
-                              </object>
-                            </child>
+                            <property name="spacing">12</property>
                             <child>
-                              <object class="GtkCheckButton" id="renewable_toggle">
-                                <property name="label" translatable="yes">renewable</property>
-                                <property name="visible">True</property>
-                                <property name="margin-start">12</property>
-                                <property name="receives_default">False</property>
-                                <property name="tooltip-text" translatable="yes">If checked, request 
renewable tickets</property>
-                                <property name="halign">start</property>
-                                <property name="draw_indicator">True</property>
+                              <object class="GtkImage">
+                                <property name="valign">start</property>
+                                <property name="icon-name">preferences-system</property>
+                                <property name="pixel-size">48</property>
                               </object>
                             </child>
                             <child>
-                              <object class="GtkCheckButton" id="proxiable_toggle">
-                                <property name="label" translatable="yes">proxiable</property>
-                                <property name="visible">True</property>
-                                <property name="margin-start">12</property>
-                                <property name="receives_default">False</property>
-                                <property name="tooltip-text" translatable="yes">If checked, request 
proxiable tickets</property>
-                                <property name="halign">start</property>
-                                <property name="draw_indicator">True</property>
+                              <object class="GtkBox">
+                                <property name="orientation">vertical</property>
+                                <property name="spacing">6</property>
+                                <child>
+                                  <object class="GtkLabel">
+                                    <property name="halign">start</property>
+                                    <property name="label" translatable="yes">Requested Kerberos tickets 
should be:</property>
+                                    <property name="wrap">True</property>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkCheckButton" id="forwardable_toggle">
+                                    <property name="label" translatable="yes">forwardable</property>
+                                    <property name="margin-start">12</property>
+                                    <property name="tooltip-text" translatable="yes">If checked, request 
forwardable tickets</property>
+                                    <property name="halign">start</property>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkCheckButton" id="renewable_toggle">
+                                    <property name="label" translatable="yes">renewable</property>
+                                    <property name="margin-start">12</property>
+                                    <property name="tooltip-text" translatable="yes">If checked, request 
renewable tickets</property>
+                                    <property name="halign">start</property>
+                                  </object>
+                                </child>
+                                <child>
+                                  <object class="GtkCheckButton" id="proxiable_toggle">
+                                    <property name="label" translatable="yes">proxiable</property>
+                                    <property name="margin-start">12</property>
+                                    <property name="tooltip-text" translatable="yes">If checked, request 
proxiable tickets</property>
+                                    <property name="halign">start</property>
+                                  </object>
+                                </child>
                               </object>
                             </child>
                           </object>
@@ -162,88 +142,77 @@
                       </object>
                     </child>
                   </object>
-                </child>
-              </object>
-            </child>
-            <child type="tab">
-              <object class="GtkLabel">
-                <property name="visible">True</property>
-                <property name="label" translatable="yes">Kerberos</property>
+                </property>
+                <property name="tab">
+                  <object class="GtkLabel">
+                    <property name="label" translatable="yes">Kerberos</property>
+                  </object>
+                </property>
               </object>
             </child>
             <child>
-              <object class="GtkBox" id="vbox_pkinit">
-                <property name="visible">True</property>
-                <property name="orientation">vertical</property>
-                <property name="valign">start</property>
-                <property name="margin-bottom">12</property>
-                <property name="margin-end">12</property>
-                <property name="margin-start">12</property>
-                <property name="margin-top">12</property>
-                <property name="spacing">18</property>
-                <child>
-                  <object class="GtkBox" id="vbox_pkinit_userid">
-                    <property name="visible">True</property>
+              <object class="GtkNotebookPage">
+                <property name="child">
+                  <object class="GtkBox" id="vbox_pkinit">
                     <property name="orientation">vertical</property>
-                    <property name="spacing">12</property>
-                    <child>
-                      <object class="GtkLabel" id="label_pkinit_userid">
-                        <property name="visible">True</property>
-                        <property name="halign">start</property>
-                        <property name="label" translatable="yes">Userid</property>
-                        <style>
-                          <class name="heading"/>
-                        </style>
-                      </object>
-                    </child>
+                    <property name="valign">start</property>
+                    <property name="margin-bottom">12</property>
+                    <property name="margin-end">12</property>
+                    <property name="margin-start">12</property>
+                    <property name="margin-top">12</property>
+                    <property name="spacing">18</property>
                     <child>
-                      <object class="GtkBox">
-                        <property name="visible">True</property>
+                      <object class="GtkBox" id="vbox_pkinit_userid">
+                        <property name="orientation">vertical</property>
                         <property name="spacing">12</property>
                         <child>
-                          <object class="GtkImage">
-                            <property name="visible">True</property>
-                            <property name="valign">start</property>
-                            <property name="icon_name">krb-valid-ticket</property>
-                            <property name="pixel-size">48</property>
+                          <object class="GtkLabel" id="label_pkinit_userid">
+                            <property name="halign">start</property>
+                            <property name="label" translatable="yes">Userid</property>
+                            <style>
+                              <class name="heading"/>
+                            </style>
                           </object>
                         </child>
                         <child>
                           <object class="GtkBox">
-                            <property name="visible">True</property>
-                            <property name="orientation">vertical</property>
-                            <property name="spacing">6</property>
+                            <property name="spacing">12</property>
+                            <child>
+                              <object class="GtkImage">
+                                <property name="valign">start</property>
+                                <property name="icon_name">krb-valid-ticket</property>
+                                <property name="pixel-size">48</property>
+                              </object>
+                            </child>
                             <child>
                               <object class="GtkBox">
-                                <property name="visible">True</property>
                                 <property name="orientation">vertical</property>
-                                <child>
-                                  <object class="GtkCheckButton" id="smartcard_toggle">
-                                    <property name="label" translatable="yes">Use Smartcard</property>
-                                    <property name="visible">True</property>
-                                    <property name="receives_default">False</property>
-                                    <property name="tooltip-text" translatable="yes">If checked, use a 
security token (Smartcard) to authenticate.</property>
-                                    <property name="halign">start</property>
-                                    <property name="draw_indicator">True</property>
-                                  </object>
-                                </child>
+                                <property name="spacing">6</property>
                                 <child>
                                   <object class="GtkBox">
-                                    <property name="visible">True</property>
+                                    <property name="orientation">vertical</property>
                                     <child>
-                                      <object class="GtkEntry" id="pkuserid_entry">
-                                        <property name="visible">True</property>
-                                        <property name="tooltip-text" translatable="yes">Certificate and 
private key used for authentication</property>
-                                        <property name="activates_default">True</property>
+                                      <object class="GtkCheckButton" id="smartcard_toggle">
+                                        <property name="label" translatable="yes">Use Smartcard</property>
+                                        <property name="tooltip-text" translatable="yes">If checked, use a 
security token (Smartcard) to authenticate.</property>
+                                        <property name="halign">start</property>
                                       </object>
                                     </child>
                                     <child>
-                                      <object class="GtkButton" id="pkuserid_button">
-                                        <property name="visible">True</property>
+                                      <object class="GtkBox">
                                         <child>
-                                          <object class="GtkImage">
-                                            <property name="visible">True</property>
-                                            <property name="icon-name">folder-open-symbolic</property>
+                                          <object class="GtkEntry" id="pkuserid_entry">
+                                            <property name="tooltip-text" translatable="yes">Certificate and 
private key used for authentication</property>
+                                            <property name="activates_default">True</property>
+                                          </object>
+                                        </child>
+                                        <child>
+                                          <object class="GtkButton" id="pkuserid_button">
+                                            <child>
+                                              <object class="GtkImage">
+                                                <property name="icon-name">folder-open-symbolic</property>
+                                              </object>
+                                            </child>
                                           </object>
                                         </child>
                                       </object>
@@ -256,40 +225,34 @@
                         </child>
                       </object>
                     </child>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkBox" id="vbox_anchors">
-                    <property name="visible">True</property>
-                    <property name="orientation">vertical</property>
-                    <property name="spacing">12</property>
-                    <child>
-                      <object class="GtkLabel" id="label_anchors">
-                        <property name="visible">True</property>
-                        <property name="halign">start</property>
-                        <property name="label" translatable="yes">X509 trust anchors</property>
-                        <style>
-                          <class name="heading"/>
-                        </style>
-                      </object>
-                    </child>
                     <child>
-                      <object class="GtkBox">
-                        <property name="visible">True</property>
+                      <object class="GtkBox" id="vbox_anchors">
+                        <property name="orientation">vertical</property>
+                        <property name="spacing">12</property>
                         <child>
-                          <object class="GtkEntry" id="pkanchors_entry">
-                            <property name="visible">True</property>
-                            <property name="tooltip-text" translatable="yes">Certificate used to verify 
digital signatures.</property>
-                            <property name="activates_default">True</property>
+                          <object class="GtkLabel" id="label_anchors">
+                            <property name="halign">start</property>
+                            <property name="label" translatable="yes">X509 trust anchors</property>
+                            <style>
+                              <class name="heading"/>
+                            </style>
                           </object>
                         </child>
                         <child>
-                          <object class="GtkButton" id="pkanchors_button">
-                            <property name="visible">True</property>
+                          <object class="GtkBox">
                             <child>
-                              <object class="GtkImage">
-                                <property name="visible">True</property>
-                                <property name="icon-name">folder-open-symbolic</property>
+                              <object class="GtkEntry" id="pkanchors_entry">
+                                <property name="tooltip-text" translatable="yes">Certificate used to verify 
digital signatures.</property>
+                                <property name="activates_default">True</property>
+                              </object>
+                            </child>
+                            <child>
+                              <object class="GtkButton" id="pkanchors_button">
+                                <child>
+                                  <object class="GtkImage">
+                                    <property name="icon-name">folder-open-symbolic</property>
+                                  </object>
+                                </child>
                               </object>
                             </child>
                           </object>
@@ -297,96 +260,88 @@
                       </object>
                     </child>
                   </object>
-                </child>
-              </object>
-            </child>
-            <child type="tab">
-              <object class="GtkLabel" id="label_pkinit">
-                <property name="visible">True</property>
-                <property name="tooltip-text" translatable="yes">Configure the use of certificates and 
smartcards for your Kerberos network authentication.</property>
-                <property name="label" translatable="yes">PKINIT</property>
+                </property>
+                <property name="tab">
+                  <object class="GtkLabel" id="label_pkinit">
+                    <property name="tooltip-text" translatable="yes">Configure the use of certificates and 
smartcards for your Kerberos network authentication.</property>
+                    <property name="label" translatable="yes">PKINIT</property>
+                  </object>
+                </property>
               </object>
             </child>
             <child>
-              <object class="GtkBox" id="vbox_notifications">
-                <property name="visible">True</property>
-                <property name="orientation">vertical</property>
-                <property name="margin-bottom">12</property>
-                <property name="margin-end">12</property>
-                <property name="margin-start">12</property>
-                <property name="margin-top">12</property>
-                <property name="spacing">18</property>
-                <child>
-                  <object class="GtkBox">
-                    <property name="visible">True</property>
+              <object class="GtkNotebookPage">
+                <property name="child">
+                  <object class="GtkBox" id="vbox_notifications">
                     <property name="orientation">vertical</property>
-                    <property name="spacing">12</property>
-                    <child>
-                      <object class="GtkLabel">
-                        <property name="visible">True</property>
-                        <property name="halign">start</property>
-                        <property name="label" translatable="yes">Notifications</property>
-                        <style>
-                          <class name="heading"/>
-                        </style>
-                      </object>
-                    </child>
+                    <property name="margin-bottom">12</property>
+                    <property name="margin-end">12</property>
+                    <property name="margin-start">12</property>
+                    <property name="margin-top">12</property>
+                    <property name="spacing">18</property>
                     <child>
                       <object class="GtkBox">
-                        <property name="visible">True</property>
+                        <property name="orientation">vertical</property>
                         <property name="spacing">12</property>
                         <child>
-                          <object class="GtkImage" id="image_notifications">
-                            <property name="visible">True</property>
-                            <property name="valign">start</property>
-                            <property name="icon_name">krb-expiring-ticket</property>
-                            <property name="pixel-size">48</property>
+                          <object class="GtkLabel">
+                            <property name="halign">start</property>
+                            <property name="label" translatable="yes">Notifications</property>
+                            <style>
+                              <class name="heading"/>
+                            </style>
                           </object>
                         </child>
                         <child>
                           <object class="GtkBox">
-                            <property name="orientation">vertical</property>
-                            <property name="visible">True</property>
-                            <property name="spacing">6</property>
+                            <property name="spacing">12</property>
+                            <child>
+                              <object class="GtkImage" id="image_notifications">
+                                <property name="valign">start</property>
+                                <property name="icon_name">krb-expiring-ticket</property>
+                                <property name="pixel-size">48</property>
+                              </object>
+                            </child>
                             <child>
                               <object class="GtkBox">
-                                <property name="visible">True</property>
+                                <property name="orientation">vertical</property>
                                 <property name="spacing">6</property>
                                 <child>
-                                  <object class="GtkLabel">
-                                    <property name="visible">True</property>
-                                    <property name="label" translatable="yes" comments="Used in combination: 
'Warn x minutes before expiry'">Warn</property>
+                                  <object class="GtkBox">
+                                    <property name="spacing">6</property>
+                                    <child>
+                                      <object class="GtkLabel">
+                                        <property name="label" translatable="yes" comments="Used in 
combination: &apos;Warn x minutes before expiry&apos;">Warn</property>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkSpinButton" id="prompt_mins_entry">
+                                        <property name="tooltip-text" translatable="yes">Send notification 
about ticket expiry that many minutes before it finally expires</property>
+                                        <property name="adjustment">adjustment1</property>
+                                        <property name="snap_to_ticks">True</property>
+                                        <property name="numeric">True</property>
+                                      </object>
+                                    </child>
                                   </object>
                                 </child>
                                 <child>
-                                  <object class="GtkSpinButton" id="prompt_mins_entry">
-                                    <property name="visible">True</property>
-                                    <property name="tooltip-text" translatable="yes">Send notification about 
ticket expiry that many minutes before it finally expires</property>
-                                    <property name="adjustment">adjustment1</property>
-                                    <property name="snap_to_ticks">True</property>
-                                    <property name="numeric">True</property>
+                                  <object class="GtkLabel">
+                                    <property name="label" translatable="yes" comments="Used in combination: 
&apos;Warn x minutes before expiry&apos;">minutes before ticket expiry</property>
                                   </object>
                                 </child>
                               </object>
                             </child>
-                            <child>
-                              <object class="GtkLabel">
-                                <property name="visible">True</property>
-                                <property name="label" translatable="yes" comments="Used in combination: 
'Warn x minutes before expiry'">minutes before ticket expiry</property>
-                              </object>
-                            </child>
                           </object>
                         </child>
                       </object>
                     </child>
                   </object>
-                </child>
-              </object>
-            </child>
-            <child type="tab">
-              <object class="GtkLabel">
-                <property name="visible">True</property>
-                <property name="label" translatable="yes">Notifications</property>
+                </property>
+                <property name="tab">
+                  <object class="GtkLabel">
+                    <property name="label" translatable="yes">Notifications</property>
+                  </object>
+                </property>
               </object>
             </child>
           </object>
diff --git a/src/resources/ui/ka-pwdialog.ui b/src/resources/ui/ka-pwdialog.ui
index 4b4f9b3..4213e1c 100644
--- a/src/resources/ui/ka-pwdialog.ui
+++ b/src/resources/ui/ka-pwdialog.ui
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <!-- interface-requires gtk+ 3.10 -->
+  <requires lib="gtk" version="4.0"/>
   <template class="KaPwDialog" parent="GtkDialog">
     <property name="title" translatable="yes">Kerberos Authentication</property>
     <property name="resizable">False</property>
@@ -9,14 +9,12 @@
     <property name="focus-widget">pw_entry</property>
     <child type="action">
       <object class="GtkButton" id="cancel_button">
-        <property name="visible">True</property>
         <property name="label" translatable="yes">_Cancel</property>
         <property name="use_underline">True</property>
       </object>
     </child>
     <child type="action">
       <object class="GtkButton" id="krb5_renew_button">
-        <property name="visible">True</property>
         <property name="label" translatable="yes">_Renew Ticket</property>
         <property name="use_underline">True</property>
       </object>
@@ -29,7 +27,6 @@
         <property name="margin-end">6</property>
         <child>
           <object class="GtkBox">
-            <property name="visible">True</property>
             <property name="margin-bottom">6</property>
             <property name="margin-end">6</property>
             <property name="margin-start">6</property>
@@ -37,7 +34,6 @@
             <property name="spacing">12</property>
             <child>
               <object class="GtkImage">
-                <property name="visible">True</property>
                 <property name="valign">start</property>
                 <property name="icon_name">krb-valid-ticket</property>
                 <property name="pixel-size">48</property>
@@ -45,26 +41,22 @@
             </child>
             <child>
               <object class="GtkBox">
-                <property name="visible">True</property>
                 <property name="orientation">vertical</property>
                 <property name="spacing">6</property>
                 <property name="margin-bottom">10</property>
                 <child>
                   <object class="GtkLabel" id="krb_label">
-                    <property name="visible">True</property>
--                    <property name="halign">start</property>
+                    <property name="halign">start</property>
                     <property name="use_markup">True</property>
                     <property name="wrap">True</property>
                   </object>
                 </child>
                 <child>
                   <object class="GtkBox">
-                    <property name="visible">True</property>
                     <property name="orientation">vertical</property>
                     <property name="spacing">3</property>
                     <child>
                       <object class="GtkEntry" id="pw_entry">
-                        <property name="visible">True</property>
                         <property name="activates-default">True</property>
                         <property name="visibility">False</property>
                         <property name="invisible-char">●</property>
@@ -75,9 +67,8 @@
                     </child>
                     <child>
                       <object class="GtkLabel" id="status_label">
-                        <property name="visible">True</property>
                         <property name="halign">end</property>
-                        <property name="label">&lt;span size="smaller"&gt; &lt;/span&gt;</property>
+                        <property name="label">&lt;span size=&quot;smaller&quot;&gt; &lt;/span&gt;</property>
                         <property name="use_markup">True</property>
                       </object>
                     </child>


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