gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis-gtk] branch master updated: implement recovery button c


From: gnunet
Subject: [taler-anastasis-gtk] branch master updated: implement recovery button click
Date: Sun, 14 Mar 2021 18:41:16 +0100

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

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

The following commit(s) were added to refs/heads/master by this push:
     new 181607c  implement recovery button click
181607c is described below

commit 181607c7344967284545bd6abe3aa6b95492aa6d
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sun Mar 14 18:41:09 2021 +0100

    implement recovery button click
---
 contrib/anastasis_gtk_main_window.glade            |  1 +
 src/anastasis/Makefile.am                          |  1 +
 .../anastasis-gtk_handle-recovery-button-clicked.c | 52 ++++++++++++++++++++++
 3 files changed, 54 insertions(+)

diff --git a/contrib/anastasis_gtk_main_window.glade 
b/contrib/anastasis_gtk_main_window.glade
index b1b9c7a..7578b1c 100644
--- a/contrib/anastasis_gtk_main_window.glade
+++ b/contrib/anastasis_gtk_main_window.glade
@@ -283,6 +283,7 @@ Author: Christian Grothoff, Dennis Neufeld
                                             <property 
name="receives-default">True</property>
                                             <property name="tooltip-text" 
translatable="yes">Begin secret recovery process</property>
                                             <property 
name="image">restore_image</property>
+                                            <signal name="clicked" 
handler="anastasis_gtk_recovery_button_clicked" swapped="no"/>
                                           </object>
                                           <packing>
                                             <property 
name="expand">True</property>
diff --git a/src/anastasis/Makefile.am b/src/anastasis/Makefile.am
index 6942eb9..2fa19a4 100644
--- a/src/anastasis/Makefile.am
+++ b/src/anastasis/Makefile.am
@@ -29,6 +29,7 @@ anastasis_gtk_SOURCES = \
   anastasis-gtk_handle-core-secret-changed.c \
   anastasis-gtk_handle-identity-changed.c \
   anastasis-gtk_handle-identity-changed.h \
+  anastasis-gtk_handle-recovery-button-clicked.c \
   anastasis-gtk_handle-secret-buttons.c \
   anastasis-gtk_handle-main-window-forward-clicked.c \
   anastasis-gtk_handle-main-window-forward-clicked.h \
diff --git a/src/anastasis/anastasis-gtk_handle-recovery-button-clicked.c 
b/src/anastasis/anastasis-gtk_handle-recovery-button-clicked.c
new file mode 100644
index 0000000..c635dce
--- /dev/null
+++ b/src/anastasis/anastasis-gtk_handle-recovery-button-clicked.c
@@ -0,0 +1,52 @@
+/*
+     This file is part of anastasis-gtk.
+     Copyright (C) 2021 Anastasis SARL
+
+     Anastasis is free software; you can redistribute it and/or modify
+     it under the terms of the GNU General Public License as published
+     by the Free Software Foundation; either version 3, or (at your
+     option) any later version.
+
+     Anastasis is distributed in the hope that it will be useful, but
+     WITHOUT ANY WARRANTY; without even the implied warranty of
+     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+     General Public License for more details.
+
+     You should have received a copy of the GNU General Public License
+     along with Anastasis; see the file COPYING.  If not, write to the
+     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+     Boston, MA 02110-1301, USA.
+*/
+
+/**
+ * @file src/anastasis/anastasis-gtk_handle-recovery-button-clicked.c
+ * @brief Main function of anastasis-gtk
+ * @author Christian Grothoff
+ * @author Dennis Neufeld
+ */
+#include <gnunet/platform.h>
+#include <gnunet/gnunet_util_lib.h>
+#include "anastasis-gtk_action.h"
+#include "anastasis-gtk_helper.h"
+#include <jansson.h>
+
+
+/**
+ * Callback invoked if the "recovery"-button is clicked.
+ *
+ * @param object
+ * @param user_data unused
+ */
+void
+anastasis_gtk_reocvery_button_clicked (GObject *object,
+                                     gpointer user_data)
+{
+  json_t *j;
+
+  AG_freeze ();
+  j = ANASTASIS_recovery_start (cfg);
+  AG_action_cb (NULL,
+                TALER_EC_NONE,
+                j);
+  json_decref (j);
+}

-- 
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]