gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis-gtk] branch master updated: starting point


From: gnunet
Subject: [taler-anastasis-gtk] branch master updated: starting point
Date: Fri, 04 Sep 2020 11:28:09 +0200

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 e18d65c  starting point
e18d65c is described below

commit e18d65cc2a4bd4195eb5530ad6d42ce172d07107
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Sep 4 11:28:06 2020 +0200

    starting point
---
 contrib/anastasis_gtk_about_window.glade.in |  61 +----
 contrib/anastasis_gtk_main_window.glade     | 381 +++++++++++++++++++++++-----
 m4/libtool.m4                               |  12 +-
 po/POTFILES.in                              |   1 -
 src/anastasis/Makefile.am                   |   1 +
 src/anastasis/anastasis-gtk.c               |   2 +-
 src/anastasis/anastasis-gtk_backup.c        |  45 ++++
 7 files changed, 376 insertions(+), 127 deletions(-)

diff --git a/contrib/anastasis_gtk_about_window.glade.in 
b/contrib/anastasis_gtk_about_window.glade.in
index e7cd503..508aaec 100644
--- a/contrib/anastasis_gtk_about_window.glade.in
+++ b/contrib/anastasis_gtk_about_window.glade.in
@@ -3,63 +3,16 @@
   <requires lib="gtk+" version="2.20"/>
   <!-- interface-naming-policy project-wide -->
   <object class="GtkTextBuffer" id="credits_art_contents">
-    <property name="text">Jakub 'jimmac' Steiner &lt;jimmac@ximian.org&gt;
-Christian Muellner &lt;chris@flop.de&gt;
-Alex Jones &lt;alexrjones@ntlworld.com&gt;
-Nicklas Larsson &lt;whybill@gmail.com&gt;</property>
+    <property name="text"></property>
   </object>
   <object class="GtkTextBuffer" id="credits_authors_contents">
-    <property name="text">Juergen Appel &lt;jappel@linux01.gwdg.de&gt;
-Krista Grothoff &lt;krista@grothoff.org&gt;
-James Blackwell &lt;jblack@linuxguru.net&gt;
-Ludovic Courtes &lt;ludo@chbouib.org&gt;
-Nils Durner &lt;durner@gnunet.org&gt;
-Renaldo Ferreira &lt;rf@cs.purdue.edu&gt;
-Christian Grothoff &lt;christian@grothoff.org&gt;
-Eric Haumant
-Tzvetan Horozov &lt;horozov@motorola.com&gt;
-Gerd Knorr &lt;kraxel@bytesex.org&gt;
-Werner Koch &lt;libgcrypt@g10code.com&gt;
-Uli Luckas &lt;luckas@musoft.de&gt;
-Blake Matheny
-Glenn McGrath
-Hendrik Pagenhardt &lt;Hendrik.Pagenhardt@gmx.net&gt;
-Ioana Patrascu &lt;ioanapatrascu@yahoo.com&gt;
-Marko Raeihae
-Paul Ruth &lt;ruth@cs.purdue.edu&gt;
-Risto Saarelma
-Antti Salonen
-Tiberius Stef &lt;tstef@cs.purdue.edu&gt;
-Tuomas Toivonen
-Tomi Tukiainen
-Kevin Vandersloot &lt;kfv101@psu.edu&gt;
-Simo Viitanen
-Larry Waldo
-Igor Wronsky &lt;iwronsky@users.sourceforge.net&gt;
-&lt;january@hushmail.com&gt;</property>
+    <property name="text"></property>
   </object>
   <object class="GtkTextBuffer" id="credits_docs_contents">
-    <property name="text">Christian Grothoff &lt;christian@grothoff.org&gt;
-Anders Carlsson &lt;andersca@gnu.org&gt;
-Nils Durner &lt;durner@gnunet.org&gt;
-Nicklas Larsson &lt;whybill@gmail.com&gt;
-Milan Bouchet-Valat &lt;nalimilan@club.fr&gt;
-Igor Wronsky &lt;iwronsky@users.sourceforge.net&gt;</property>
+    <property name="text"></property>
   </object>
   <object class="GtkTextBuffer" id="credits_trans_contents">
-    <property name="text">Di Ma
-Jens Palsberg &lt;palsberg@cs.ucla.edu&gt;
-Christian Grothoff &lt;christian@grothoff.org&gt;
-Nils Durner &lt;durner@gnunet.org&gt;
-Mathieu &lt;mollo@bghflt.org&gt;
-Eric Haumant
-milan@skoid.org
-Hiroshi Yamauchi &lt;yamauchi@cs.purdue.edu&gt;
-Adam Welc &lt;welc@cs.purdue.edu&gt;
-Bogdan Carbunar &lt;carbunar@cs.purdue.edu&gt;
-Steven Michael Murphy &lt;murf@e-tools.com&gt;
-Phan Vinh Thinh &lt;teppi82@gmail.com&gt;
-Daniel Nylander &lt;po@danielnylander.se&gt;</property>
+    <property name="text"></property>
   </object>
   <object class="GtkTextBuffer" id="license_contents">
     <property name="text" translatable="yes">License should be loaded here at 
runtime from the license file (no need to copy the whole GPL in 
here...).</property>
@@ -91,7 +44,7 @@ Daniel Nylander &lt;po@danielnylander.se&gt;</property>
           <object class="GtkLabel" id="about_name_version_label">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="label">@GNUNET_PEERINFO_GTK_NAME@ 
@GNUNET_PEERINFO_GTK_VERSION3@</property>
+            <property name="label">@ANASTASIS_GTK_NAME@ 
@ANASTASIS_GTK_VERSION3@</property>
             <attributes>
               <attribute name="weight" value="bold"/>
               <attribute name="size" value="200"/>
@@ -107,7 +60,7 @@ Daniel Nylander &lt;po@danielnylander.se&gt;</property>
           <object class="GtkLabel" id="about_copyright_label">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="label">(C) 
@GNUNET_PEERINFO_GTK_YEARFROM@-@GNUNET_PEERINFO_GTK_YEARTO@ The GNUnet 
Project</property>
+            <property name="label">(C) 
@ANASTASIS_GTK_YEARFROM@-@ANASTASIS_YEARTO@ The GNUnet Project</property>
           </object>
           <packing>
             <property name="expand">False</property>
@@ -119,7 +72,7 @@ Daniel Nylander &lt;po@danielnylander.se&gt;</property>
           <object class="GtkLabel" id="about_link_label">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="label">&lt;a href="https://gnunet.org/"&gt;GNUnet: 
GNU's Framework for Secure P2P Networking&lt;/a&gt;</property>
+            <property name="label">&lt;a 
href="https://anastasis.lu/"&gt;DESCRIPTION&lt;/a&gt;</property>
             <property name="use_markup">True</property>
             <property name="wrap">True</property>
           </object>
diff --git a/contrib/anastasis_gtk_main_window.glade 
b/contrib/anastasis_gtk_main_window.glade
index 886543b..42beffc 100644
--- a/contrib/anastasis_gtk_main_window.glade
+++ b/contrib/anastasis_gtk_main_window.glade
@@ -1,72 +1,35 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.22.2 -->
+<!-- Generated with glade 3.22.1 -->
 <interface>
   <requires lib="gtk+" version="3.0"/>
-  <object class="GtkListStore" id="anastasis_gtk_active_calls_liststore">
-    <columns>
-      <!-- column-name remote_user_name -->
-      <column type="gchararray"/>
-      <!-- column-name incoming_call -->
-      <column type="gpointer"/>
-      <!-- column-name number -->
-      <column type="gint"/>
-      <!-- column-name type -->
-      <column type="gint"/>
-      <!-- column-name in_call_state -->
-      <column type="gint"/>
-      <!-- column-name outgoing_call -->
-      <column type="gpointer"/>
-      <!-- column-name out_call_state -->
-      <column type="gint"/>
-      <!-- column-name state_name -->
-      <column type="gchararray"/>
-      <!-- column-name state_pixbuf -->
-      <column type="GdkPixbuf"/>
-    </columns>
-  </object>
-  <object class="GtkListStore" id="anastasis_gtk_contacts_liststore">
-    <columns>
-      <!-- column-name contact_name -->
-      <column type="gchararray"/>
-      <!-- column-name contact_type -->
-      <column type="gchararray"/>
-      <!-- column-name contact_value -->
-      <column type="gchararray"/>
-      <!-- column-name contact_is_public -->
-      <column type="gboolean"/>
-      <!-- column-name contact_is_editable -->
-      <column type="gboolean"/>
-    </columns>
-  </object>
-  <object class="GtkListStore" id="anastasis_gtk_contacts_zone_liststore">
-    <columns>
-      <!-- column-name ego_name -->
-      <column type="gchararray"/>
-      <!-- column-name ego -->
-      <column type="gpointer"/>
-    </columns>
+  <object class="GtkImage" id="backup_image">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="stock">gtk-go-up</property>
+    <property name="icon_size">6</property>
   </object>
-  <object class="GtkListStore" id="anastasis_gtk_ego_liststore">
+  <object class="GtkListStore" id="continent_liststore">
     <columns>
-      <!-- column-name ego_name -->
+      <!-- column-name continent_name -->
       <column type="gchararray"/>
-      <!-- column-name ego_ptr -->
-      <column type="gpointer"/>
     </columns>
+    <data>
+      <row>
+        <col id="0" translatable="yes">Europa</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes">Asien</col>
+      </row>
+      <row>
+        <col id="0" translatable="yes">Afrika</col>
+      </row>
+    </data>
   </object>
-  <object class="GtkListStore" id="anastasis_gtk_history_liststore">
-    <columns>
-      <!-- column-name logTime -->
-      <column type="gchararray"/>
-      <!-- column-name logEvent -->
-      <column type="gchararray"/>
-      <!-- column-name logContact -->
-      <column type="gchararray"/>
-      <!-- column-name logCallNumber -->
-      <column type="guint"/>
-      <!-- column-name logTimeNumber -->
-      <column type="guint64"/>
-    </columns>
+  <object class="GtkImage" id="restore_image">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="stock">gtk-go-down</property>
+    <property name="icon_size">6</property>
   </object>
   <object class="GtkWindow" id="anastasis_gtk_main_window">
     <property name="can_focus">False</property>
@@ -153,7 +116,250 @@
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <child>
-                  <placeholder/>
+                  <object class="GtkBox">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <child>
+                      <object class="GtkBox" id="anastasis_gtk_super_vbox">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="orientation">vertical</property>
+                        <child>
+                          <object class="GtkFrame">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="label_xalign">0</property>
+                            <property name="shadow_type">none</property>
+                            <child>
+                              <object class="GtkAlignment">
+                                <property name="visible">True</property>
+                                <property name="can_focus">False</property>
+                                <property name="left_padding">12</property>
+                                <child>
+                                  <object class="GtkBox" 
id="anastasis_gtk_primary_action_hbox">
+                                    <property name="visible">True</property>
+                                    <property name="can_focus">False</property>
+                                    <child>
+                                      <object class="GtkButton">
+                                        <property name="label" 
translatable="yes">Backup</property>
+                                        <property 
name="visible">True</property>
+                                        <property 
name="can_focus">True</property>
+                                        <property 
name="receives_default">True</property>
+                                        <property 
name="image">backup_image</property>
+                                        <signal name="clicked" 
handler="anastasis_gtk_backup_button_clicked" swapped="no"/>
+                                      </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">Restore</property>
+                                        <property 
name="visible">True</property>
+                                        <property 
name="can_focus">True</property>
+                                        <property 
name="receives_default">True</property>
+                                        <property 
name="image">restore_image</property>
+                                      </object>
+                                      <packing>
+                                        <property name="expand">True</property>
+                                        <property name="fill">True</property>
+                                        <property name="position">1</property>
+                                      </packing>
+                                    </child>
+                                  </object>
+                                </child>
+                              </object>
+                            </child>
+                            <child type="label">
+                              <object class="GtkLabel">
+                                <property name="visible">True</property>
+                                <property name="can_focus">False</property>
+                                <property name="label" translatable="yes">What 
do you want to do?</property>
+                              </object>
+                            </child>
+                          </object>
+                          <packing>
+                            <property name="expand">True</property>
+                            <property name="fill">True</property>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkFrame" id="continent_frame">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="label_xalign">0</property>
+                            <property name="shadow_type">none</property>
+                            <child>
+                              <object class="GtkAlignment">
+                                <property name="visible">True</property>
+                                <property name="can_focus">False</property>
+                                <property name="left_padding">12</property>
+                                <child>
+                                  <object class="GtkBox" 
id="anastasis_gtk_continent_vbox">
+                                    <property name="visible">True</property>
+                                    <property name="can_focus">False</property>
+                                    <child>
+                                      <object class="GtkTreeView" 
id="anastasis_gtk_continent_treeview">
+                                        <property 
name="visible">True</property>
+                                        <property 
name="can_focus">True</property>
+                                        <property 
name="model">continent_liststore</property>
+                                        <property 
name="enable_search">False</property>
+                                        <property 
name="search_column">0</property>
+                                        <child internal-child="selection">
+                                          <object class="GtkTreeSelection"/>
+                                        </child>
+                                        <child>
+                                          <object class="GtkTreeViewColumn" 
id="continent_column">
+                                            <property name="title" 
translatable="yes">Continent</property>
+                                            <child>
+                                              <object 
class="GtkCellRendererText" id="continent_name_cell_renderer"/>
+                                              <attributes>
+                                                <attribute 
name="text">0</attribute>
+                                              </attributes>
+                                            </child>
+                                          </object>
+                                        </child>
+                                      </object>
+                                      <packing>
+                                        <property name="expand">True</property>
+                                        <property name="fill">True</property>
+                                        <property name="position">0</property>
+                                      </packing>
+                                    </child>
+                                    <child>
+                                      <object class="GtkTreeView" 
id="anastasis_gtk_country_treeview">
+                                        <property 
name="visible">True</property>
+                                        <property 
name="can_focus">True</property>
+                                        <property 
name="search_column">0</property>
+                                        <child internal-child="selection">
+                                          <object class="GtkTreeSelection"/>
+                                        </child>
+                                        <child>
+                                          <object class="GtkTreeViewColumn" 
id="country_column">
+                                            <property name="title" 
translatable="yes">Country</property>
+                                            <child>
+                                              <object 
class="GtkCellRendererText" id="country_name_cell_renderer"/>
+                                              <attributes>
+                                                <attribute 
name="text">0</attribute>
+                                              </attributes>
+                                            </child>
+                                          </object>
+                                        </child>
+                                      </object>
+                                      <packing>
+                                        <property name="expand">True</property>
+                                        <property name="fill">True</property>
+                                        <property name="position">1</property>
+                                      </packing>
+                                    </child>
+                                  </object>
+                                </child>
+                              </object>
+                            </child>
+                            <child type="label">
+                              <object class="GtkLabel">
+                                <property name="visible">True</property>
+                                <property name="can_focus">False</property>
+                                <property name="label" 
translatable="yes">Where do you live?</property>
+                              </object>
+                            </child>
+                          </object>
+                          <packing>
+                            <property name="expand">True</property>
+                            <property name="fill">True</property>
+                            <property name="position">1</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="expand">True</property>
+                        <property name="fill">True</property>
+                        <property name="position">0</property>
+                      </packing>
+                    </child>
+                    <child>
+                      <object class="GtkBox" 
id="anastasis_gtk_illustration_vbox">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="orientation">vertical</property>
+                        <child>
+                          <object class="GtkImage" id="anastasis_gtk_logo">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="stock">gtk-missing-image</property>
+                            <property name="icon_size">6</property>
+                          </object>
+                          <packing>
+                            <property name="expand">True</property>
+                            <property name="fill">True</property>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkImage" 
id="anastasis_gtk_country_selection_image">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="stock">gtk-missing-image</property>
+                          </object>
+                          <packing>
+                            <property name="expand">True</property>
+                            <property name="fill">True</property>
+                            <property name="position">1</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkImage" id="anastasis_gtk_logo2">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="stock">gtk-missing-image</property>
+                          </object>
+                          <packing>
+                            <property name="expand">True</property>
+                            <property name="fill">True</property>
+                            <property name="position">2</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <object class="GtkImage" id="anastasis_gtk_logo3">
+                            <property name="visible">True</property>
+                            <property name="can_focus">False</property>
+                            <property name="stock">gtk-missing-image</property>
+                          </object>
+                          <packing>
+                            <property name="expand">True</property>
+                            <property name="fill">True</property>
+                            <property name="position">3</property>
+                          </packing>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
+                        <child>
+                          <placeholder/>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="expand">True</property>
+                        <property name="fill">True</property>
+                        <property name="position">1</property>
+                      </packing>
+                    </child>
+                  </object>
                 </child>
               </object>
             </child>
@@ -164,6 +370,57 @@
             <property name="position">1</property>
           </packing>
         </child>
+        <child>
+          <object class="GtkBox" id="anastasis_gtk_main_control_vbox">
+            <property name="can_focus">False</property>
+            <child>
+              <object class="GtkButton" id="anastasis_gtk_main_prev_button">
+                <property name="label">gtk-go-back</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_stock">True</property>
+                <signal name="clicked" 
handler="anastasis_gtk_main_window_back_clicked" swapped="no"/>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">0</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkSeparator">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="expand">True</property>
+                <property name="fill">True</property>
+                <property name="position">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" 
id="anastasis_gtk_main_window_forward_button">
+                <property name="label">gtk-go-forward</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_stock">True</property>
+                <signal name="clicked" 
handler="anastasis_gtk_main_window_forward_clicked" swapped="no"/>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">2</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">3</property>
+          </packing>
+        </child>
         <child>
           <object class="GtkStatusbar" id="anastasis_gtk_statusbar">
             <property name="visible">True</property>
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index a6d21ae..c81e669 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1041,8 +1041,8 @@ int forced_loaded() { return 2;}
 _LT_EOF
       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
-      echo "$AR cr libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
-      $AR cr libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
+      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
+      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
       echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
       $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
       cat > conftest.c << _LT_EOF
@@ -1492,7 +1492,7 @@ need_locks=$enable_libtool_lock
 m4_defun([_LT_PROG_AR],
 [AC_CHECK_TOOLS(AR, [ar], false)
 : ${AR=ar}
-: ${AR_FLAGS=cr}
+: ${AR_FLAGS=cru}
 _LT_DECL([], [AR], [1], [The archiver])
 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 
@@ -4704,12 +4704,6 @@ m4_if([$1], [CXX], [
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
         ;;
-      # flang / f18. f95 an alias for gfortran or flang on Debian
-      flang* | f18* | f95*)
-       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
-       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
-       _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
-        ;;
       # icc used to be incompatible with GCC.
       # ICC 10 doesn't accept -KPIC any more.
       icc* | ifort*)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5e1abc5..c9724d1 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,5 +1,4 @@
 src/anastasis/anastasis-gtk_about.c
 src/anastasis/anastasis-gtk.c
 src/anastasis/os_installation.c
-contrib/anastasis_gtk_about_window.glade
 contrib/anastasis_gtk_main_window.glade
diff --git a/src/anastasis/Makefile.am b/src/anastasis/Makefile.am
index e93b5aa..cb697c5 100644
--- a/src/anastasis/Makefile.am
+++ b/src/anastasis/Makefile.am
@@ -13,6 +13,7 @@ bin_PROGRAMS = anastasis-gtk
 anastasis_gtk_SOURCES = \
   anastasis-gtk.c \
   anastasis-gtk_about.c \
+  anastasis-gtk_backup.c \
   os_installation.c
 
 anastasis_gtk_LDADD = \
diff --git a/src/anastasis/anastasis-gtk.c b/src/anastasis/anastasis-gtk.c
index 67b8e5a..e431c99 100644
--- a/src/anastasis/anastasis-gtk.c
+++ b/src/anastasis/anastasis-gtk.c
@@ -1,6 +1,6 @@
 /*
      This file is part of anastasis-gtk.
-     Copyright (C) 2010-2014 Anastasis SARL
+     Copyright (C) 2020 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
diff --git a/src/anastasis/anastasis-gtk_backup.c 
b/src/anastasis/anastasis-gtk_backup.c
new file mode 100644
index 0000000..bfa62bd
--- /dev/null
+++ b/src/anastasis/anastasis-gtk_backup.c
@@ -0,0 +1,45 @@
+/*
+     This file is part of anastasis-gtk.
+     Copyright (C) 2020 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.c
+ * @brief Main function of anastasis-gtk
+ * @author Christian Grothoff
+ */
+#include <gnunet/platform.h>
+#include <gnunet/gnunet_util_lib.h>
+#include <gnunet-gtk/gnunet_gtk.h>
+
+
+/**
+ * Callback invoked if the application is supposed to exit.
+ *
+ * @param object
+ * @param user_data unused
+ */
+void
+anastasis_gtk_backup_button_clicked (GObject *object,
+                                     gpointer user_data)
+{
+  gtk_widget_hide (GTK_WIDGET (GCG_get_main_window_object (
+                                 "anastasis_gtk_primary_action_hbox")));
+  gtk_widget_show (GTK_WIDGET (GCG_get_main_window_object (
+                                 "anastasis_gtk_main_control_vbox")));
+}

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