[libnma/lr-gcr-fixes: 4/5] pkcs11-cert-chooser: make it work with Gtk4




commit aa3ac8dd42af54cdab375a2e3f86da75a077564f
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Wed Aug 3 11:46:52 2022 +0200

    pkcs11-cert-chooser: make it work with Gtk4
    
    Previously it didn't, nor did it have have to, because Gcr was not ready
    for Gtk4.

 src/nma-pkcs11-cert-chooser-dialog.ui | 22 +++-------------------
 1 file changed, 3 insertions(+), 19 deletions(-)
---
diff --git a/src/nma-pkcs11-cert-chooser-dialog.ui b/src/nma-pkcs11-cert-chooser-dialog.ui
index 9237ca28..96b89a68 100644
--- a/src/nma-pkcs11-cert-chooser-dialog.ui
+++ b/src/nma-pkcs11-cert-chooser-dialog.ui
@@ -4,16 +4,15 @@
   <requires lib="gtk+" version="3.10"/>
   <template class="NMAPkcs11CertChooserDialog" parent="GtkDialog">
     <property name="can_focus">False</property>
-    <property name="role">NMAPkcs11CertChooserDialog</property>
     <child internal-child="vbox">
       <object class="GtkBox" id="dialog-vbox1">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <child internal-child="action_area">
-          <object class="GtkButtonBox" id="dialog-action_area1">
+          <object class="GtkBox">
+            <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="layout_style">end</property>
             <child>
               <object class="GtkButton" id="login_button">
                 <property name="label" translatable="yes">_Unlock token</property>
@@ -53,17 +52,7 @@
                     <property name="message_type">error</property>
                     <property name="show_close_button">True</property>
                     <signal name="response" handler="error_close" swapped="no"/>
-                    <child internal-child="action_area">
-                      <object class="GtkButtonBox">
-                        <property name="can_focus">False</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">False</property>
-                        <property name="position">0</property>
-                      </packing>
-                    </child>
-                    <child internal-child="content_area">
+                    <child>
                       <object class="GtkBox">
                         <property name="can_focus">False</property>
                         <child>
@@ -78,11 +67,6 @@
                           </packing>
                         </child>
                       </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">False</property>
-                        <property name="position">0</property>
-                      </packing>
                     </child>
                   </object>
                 </child>


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