gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis-gtk] branch master updated: add text for progress indic


From: gnunet
Subject: [taler-anastasis-gtk] branch master updated: add text for progress indicators
Date: Sat, 03 Jul 2021 14:58:27 +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 b7d6882  add text for progress indicators
b7d6882 is described below

commit b7d6882a137d228d2fc8ca036310155104dbc771
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sat Jul 3 14:58:24 2021 +0200

    add text for progress indicators
---
 contrib/anastasis_gtk_main_window.glade | 28 ++++++++--------
 src/anastasis/Makefile.am               |  1 +
 src/anastasis/anastasis-gtk_progress.c  | 57 +++++++++++++++++++++++++++++++++
 3 files changed, 73 insertions(+), 13 deletions(-)

diff --git a/contrib/anastasis_gtk_main_window.glade 
b/contrib/anastasis_gtk_main_window.glade
index ea7cb6e..e4fda55 100644
--- a/contrib/anastasis_gtk_main_window.glade
+++ b/contrib/anastasis_gtk_main_window.glade
@@ -45,37 +45,37 @@ Author: Christian Grothoff, Dennis Neufeld
     <data>
       <row>
         <col id="0" translatable="yes">1. Location &amp; currency</col>
-        <col id="1" translatable="no">*_SELECTING</col>
+        <col id="1">*_SELECTING</col>
         <col id="2" translatable="yes">Where you live will determine which 
personal information can be used to identify your backup.</col>
       </row>
       <row>
         <col id="0" translatable="yes">2. Personal information</col>
-        <col id="1" translatable="no">USER_ATTRIBUTES_COLLECTING</col>
+        <col id="1">USER_ATTRIBUTES_COLLECTING</col>
         <col id="2" translatable="yes">Your personal information will not be 
shared with anyone. But you must provide the same information during 
recovery.\</col>
       </row>
       <row>
         <col id="0" translatable="yes">3. Authorization methods</col>
-        <col id="1" translatable="no">AUTHENTICATIONS_EDITING</col>
+        <col id="1">AUTHENTICATIONS_EDITING</col>
         <col id="2" translatable="yes"/>
       </row>
       <row>
         <col id="0" translatable="yes">4. Recovery policies</col>
-        <col id="1" translatable="no">POLICIES_REVIEWING</col>
+        <col id="1">POLICIES_REVIEWING</col>
         <col id="2" translatable="yes"/>
       </row>
       <row>
         <col id="0" translatable="yes">5. Enter secret</col>
-        <col id="1" translatable="no">SECRET_EDITING</col>
+        <col id="1">SECRET_EDITING</col>
         <col id="2" translatable="yes"/>
       </row>
       <row>
         <col id="0" translatable="yes">6. Payment (optional)</col>
-        <col id="1" translatable="no">*_PAYING</col>
+        <col id="1">*_PAYING</col>
         <col id="2" translatable="yes"/>
       </row>
       <row>
         <col id="0" translatable="yes">7. Backup completed</col>
-        <col id="1" translatable="no">BACKUP_FINISHED</col>
+        <col id="1">BACKUP_FINISHED</col>
         <col id="2" translatable="yes"/>
       </row>
     </data>
@@ -92,22 +92,22 @@ Author: Christian Grothoff, Dennis Neufeld
     <data>
       <row>
         <col id="0" translatable="yes">1. Location &amp; currency</col>
-        <col id="1" translatable="no">*_SELECTING</col>
+        <col id="1">*_SELECTING</col>
         <col id="2" translatable="yes">Where you live will determine which 
personal information can be used to identify your backup.</col>
       </row>
       <row>
         <col id="0" translatable="yes">2. Personal information</col>
-        <col id="1" translatable="no">USER_ATTRIBUTES_COLLECTING</col>
+        <col id="1">USER_ATTRIBUTES_COLLECTING</col>
         <col id="2" translatable="yes">Your personal information will not be 
shared with anyone. But you must provide the same information during 
recovery.</col>
       </row>
       <row>
         <col id="0" translatable="yes">3. Solve challenges</col>
-        <col id="1" translatable="no">CHALLENGE_SELECTING</col>
+        <col id="1">CHALLENGE_SELECTING</col>
         <col id="2" translatable="yes"/>
       </row>
       <row>
         <col id="0" translatable="yes">4. Secret recovered</col>
-        <col id="1" translatable="no">RECOVERY_FINISHED</col>
+        <col id="1">RECOVERY_FINISHED</col>
         <col id="2" translatable="yes"/>
       </row>
     </data>
@@ -398,6 +398,7 @@ Author: Christian Grothoff, Dennis Neufeld
                         <property name="enable_search">False</property>
                         <property name="search_column">0</property>
                         <property name="tooltip_column">2</property>
+                        <signal name="button-press-event" 
handler="anastasis_gtk_backup_progress_treeview_button_press_event_cb" 
swapped="no"/>
                         <child internal-child="selection">
                           <object class="GtkTreeSelection"/>
                         </child>
@@ -411,7 +412,7 @@ Author: Christian Grothoff, Dennis Neufeld
                                 <property name="ypad">15</property>
                               </object>
                               <attributes>
-                                <attribute name="markup">0</attribute>
+                                <attribute name="text">0</attribute>
                               </attributes>
                             </child>
                           </object>
@@ -441,6 +442,7 @@ Author: Christian Grothoff, Dennis Neufeld
                         <property name="enable_search">False</property>
                         <property name="search_column">0</property>
                         <property name="tooltip_column">2</property>
+                        <signal name="button-press-event" 
handler="anastasis_gtk_recovery_progress_treeview_button_press_event_cb" 
swapped="no"/>
                         <child internal-child="selection">
                           <object class="GtkTreeSelection"/>
                         </child>
@@ -452,7 +454,7 @@ Author: Christian Grothoff, Dennis Neufeld
                             <child>
                               <object class="GtkCellRendererText" 
id="anastasis_gtk_recovery_progress_description"/>
                               <attributes>
-                                <attribute name="markup">0</attribute>
+                                <attribute name="text">0</attribute>
                               </attributes>
                             </child>
                           </object>
diff --git a/src/anastasis/Makefile.am b/src/anastasis/Makefile.am
index 27b63b0..469d904 100644
--- a/src/anastasis/Makefile.am
+++ b/src/anastasis/Makefile.am
@@ -50,6 +50,7 @@ anastasis_gtk_SOURCES = \
   anastasis-gtk_pe-delete-challenge.c \
   anastasis-gtk_pe-delete-policy.c \
   anastasis-gtk_pe-edit-policy.c \
+  anastasis-gtk_progress.c \
   os_installation.c
 
 anastasis_gtk_LDADD = \
diff --git a/src/anastasis/anastasis-gtk_progress.c 
b/src/anastasis/anastasis-gtk_progress.c
new file mode 100644
index 0000000..9b22a72
--- /dev/null
+++ b/src/anastasis/anastasis-gtk_progress.c
@@ -0,0 +1,57 @@
+/*
+     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_progress.c
+ * @brief Functions dealing with the tree views used to show the user where we 
are in the process
+ * @author Christian Grothoff
+ */
+#include <gnunet/platform.h>
+#include <gnunet/gnunet_util_lib.h>
+#include "anastasis-gtk_helper.h"
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+
+/**
+ * Ensure signals are ignored where the user 
+ * clicks in the widget.
+ */
+gboolean
+anastasis_gtk_backup_progress_treeview_button_press_event_cb (GtkWidget 
*widget,
+               GdkEvent  *event,
+               gpointer   user_data)
+{
+  return TRUE;
+}
+
+
+
+/**
+ * Ensure signals are ignored where the user 
+ * clicks in the widget.
+ */
+gboolean
+anastasis_gtk_recovery_progress_treeview_button_press_event_cb (GtkWidget 
*widget,
+               GdkEvent  *event,
+               gpointer   user_data)
+{
+  return TRUE;
+}
+
+

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