gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis-gtk] 05/05: fix


From: gnunet
Subject: [taler-anastasis-gtk] 05/05: fix
Date: Tue, 06 Oct 2020 09:57:41 +0200

This is an automated email from the git hooks/post-receive script.

dennis-neufeld pushed a commit to branch master
in repository anastasis-gtk.

commit c2158765b3569ae976600f270c285ffc51ef7244
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Mon Oct 5 16:21:13 2020 +0200

    fix
---
 contrib/anastasis_gtk_main_window.glade | 74 ++++++++++++++++++++++++++++++++-
 src/anastasis/anastasis-gtk_backup.c    | 13 ++++++
 2 files changed, 86 insertions(+), 1 deletion(-)

diff --git a/contrib/anastasis_gtk_main_window.glade 
b/contrib/anastasis_gtk_main_window.glade
index 3cebcea..7c8cab4 100644
--- a/contrib/anastasis_gtk_main_window.glade
+++ b/contrib/anastasis_gtk_main_window.glade
@@ -1023,6 +1023,77 @@
     <property name="can_focus">False</property>
     <property name="stock">gtk-yes</property>
   </object>
+  <object class="GtkListStore" id="provider_liststore"/>
+  <object class="GtkDialog" id="anastasis_gtk_b_edit_provider_dialog">
+    <property name="can_focus">False</property>
+    <property name="type_hint">dialog</property>
+    <child internal-child="vbox">
+      <object class="GtkBox">
+        <property name="can_focus">False</property>
+        <property name="orientation">vertical</property>
+        <property name="spacing">2</property>
+        <child internal-child="action_area">
+          <object class="GtkButtonBox">
+            <property name="can_focus">False</property>
+            <property name="layout_style">end</property>
+            <child>
+              <object class="GtkButton">
+                <property name="label" translatable="yes">Cancel</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+              </object>
+              <packing>
+                <property name="expand">True</property>
+                <property name="fill">True</property>
+                <property name="position">0</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton">
+                <property name="label" translatable="yes">OK</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+              </object>
+              <packing>
+                <property name="expand">True</property>
+                <property name="fill">True</property>
+                <property name="position">1</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">False</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkTreeView">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="model">provider_liststore</property>
+            <child internal-child="selection">
+              <object class="GtkTreeSelection"/>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+    <child type="titlebar">
+      <object class="GtkLabel">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="label" translatable="yes">Edit Provider</property>
+      </object>
+    </child>
+  </object>
   <object class="GtkImage" id="restore_image">
     <property name="visible">True</property>
     <property name="can_focus">False</property>
@@ -1657,13 +1728,14 @@ QUESTION</property>
                                                       <placeholder/>
                                                     </child>
                                                     <child>
-                                                      <object 
class="GtkButton">
+                                                      <object 
class="GtkButton" id="anastasis_gtk_btn_add_auth_edit_provider">
                                                         <property name="label" 
translatable="yes">Edit
 Provider</property>
                                                         <property 
name="visible">True</property>
                                                         <property 
name="can_focus">True</property>
                                                         <property 
name="receives_default">True</property>
                                                         <property 
name="halign">end</property>
+                                                        <signal name="clicked" 
handler="anastasis_gtk_btn_add_auth_edit_provider_clicked_cb" swapped="no"/>
                                                       </object>
                                                       <packing>
                                                         <property 
name="expand">False</property>
diff --git a/src/anastasis/anastasis-gtk_backup.c 
b/src/anastasis/anastasis-gtk_backup.c
index c892eba..de9e71b 100644
--- a/src/anastasis/anastasis-gtk_backup.c
+++ b/src/anastasis/anastasis-gtk_backup.c
@@ -156,6 +156,19 @@ anastasis_gtk_backup_button_clicked (GObject *object,
      }
 }
 
+/**
+ * Callback invoked if the the "backup"-button is clicked.
+ *
+ * @param object
+ * @param user_data unused
+ */
+void
+anastasis_gtk_btn_add_auth_edit_provider_clicked_cb
+{
+     gtk_widget_show (GTK_WIDGET (GCG_get_main_window_object (
+                                        
"anastasis_gtk_b_edit_provider_dialog")));
+}
+
 
 /**
  * Callback invoked if the the "authentication methods delete"-button is 
clicked.

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]