[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis-gtk] branch master updated: -fix FTBFS
From: |
gnunet |
Subject: |
[taler-anastasis-gtk] branch master updated: -fix FTBFS |
Date: |
Tue, 16 Nov 2021 19:28:59 +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 e8e8396 -fix FTBFS
e8e8396 is described below
commit e8e83969e6cf71f7ab86010433aa6f63e74bd19f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Nov 16 19:28:57 2021 +0100
-fix FTBFS
---
src/anastasis/anastasis-gtk_action.c | 21 +++++++++++++++------
.../anastasis-gtk_handle-core-secret-changed.c | 12 +++++++++++-
2 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/src/anastasis/anastasis-gtk_action.c
b/src/anastasis/anastasis-gtk_action.c
index 8581808..07b387e 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -1293,11 +1293,20 @@ action_secret_editing (void)
text = NULL;
if (! AG_in_secret_editing)
{
- GtkTextBuffer *tb = GCG_get_main_window_object (
- "anastasis_gtk_enter_secret_textbuffer");
+ GtkTextBuffer *tb = GTK_TEXT_BUFFER (GCG_get_main_window_object (
+
"anastasis_gtk_enter_secret_textbuffer"));
const char *old;
-
- old = gtk_entry_get_text (tb);
+ GtkTextIter start;
+ GtkTextIter end;
+
+ gtk_text_buffer_get_start_iter (tb,
+ &start);
+ gtk_text_buffer_get_end_iter (tb,
+ &end);
+ old = gtk_text_buffer_get_text (tb,
+ &start,
+ &end,
+ true);
if (0 != strcmp (old,
text))
gtk_text_buffer_set_text (tb,
@@ -1328,8 +1337,8 @@ action_secret_editing (void)
else
{
/* secret is NULL */
- GtkTextBuffer *tb = GCG_get_main_window_object (
- "anastasis_gtk_enter_secret_textbuffer");
+ GtkTextBuffer *tb = GTK_TEXT_BUFFER (GCG_get_main_window_object (
+
"anastasis_gtk_enter_secret_textbuffer"));
gtk_text_buffer_set_text (tb,
"",
diff --git a/src/anastasis/anastasis-gtk_handle-core-secret-changed.c
b/src/anastasis/anastasis-gtk_handle-core-secret-changed.c
index c0ca4c1..5498077 100644
--- a/src/anastasis/anastasis-gtk_handle-core-secret-changed.c
+++ b/src/anastasis/anastasis-gtk_handle-core-secret-changed.c
@@ -36,10 +36,20 @@ void
anastasis_gtk_enter_secret_textbuffer_changed_cb (GtkTextBuffer *tb,
gpointer user_data)
{
- const char *text = gtk_text_buffer_get_text (tb);
json_t *arguments;
struct GNUNET_TIME_Absolute expiration;
+ GtkTextIter start;
+ GtkTextIter end;
+ const char *text;
+ gtk_text_buffer_get_start_iter (tb,
+ &start);
+ gtk_text_buffer_get_end_iter (tb,
+ &end);
+ text = gtk_text_buffer_get_text (tb,
+ &start,
+ &end,
+ true);
if (AG_in_action)
return;
AG_in_secret_editing = true;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis-gtk] branch master updated: -fix FTBFS,
gnunet <=