aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-05 23:23:01 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-05 23:23:22 +0200
commitbecf81b7244da0691486fe7e01558d7b35be28d9 (patch)
tree7e37ea537d19ff0fc9eabe66c8295f378dd0c9ac
parent0f7adfaad9db008c61fcfedd17248642144f1c94 (diff)
downloadgnunet-gtk-becf81b7244da0691486fe7e01558d7b35be28d9.tar.gz
gnunet-gtk-becf81b7244da0691486fe7e01558d7b35be28d9.zip
update gnunet-gtk to follow latest NAMESTORE API changes
-rw-r--r--src/conversation/gnunet-conversation-gtk_contacts.c2
-rw-r--r--src/fs/gnunet-fs-gtk.c2
-rw-r--r--src/namestore/gnunet-namestore-gtk.c10
3 files changed, 14 insertions, 0 deletions
diff --git a/src/conversation/gnunet-conversation-gtk_contacts.c b/src/conversation/gnunet-conversation-gtk_contacts.c
index 8c175389..e131847b 100644
--- a/src/conversation/gnunet-conversation-gtk_contacts.c
+++ b/src/conversation/gnunet-conversation-gtk_contacts.c
@@ -175,6 +175,8 @@ display_record (void *cls,
175 gboolean is_public; 175 gboolean is_public;
176 char *value; 176 char *value;
177 177
178 GNUNET_NAMESTORE_zone_monitor_next (zone_mon,
179 1);
178 do_display = FALSE; 180 do_display = FALSE;
179 value = NULL; 181 value = NULL;
180 for (unsigned int i = 0; i < rd_len; i++) 182 for (unsigned int i = 0; i < rd_len; i++)
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c
index 7d39f1e3..24bfdbe5 100644
--- a/src/fs/gnunet-fs-gtk.c
+++ b/src/fs/gnunet-fs-gtk.c
@@ -598,6 +598,8 @@ monitor_zone_records (void *cls,
598 gchar *id; 598 gchar *id;
599 gchar *label_gnu; 599 gchar *label_gnu;
600 600
601 GNUNET_NAMESTORE_zone_monitor_next (main_context.zm,
602 1);
601 ls = GTK_LIST_STORE (GNUNET_FS_GTK_get_main_window_object ("namespace_label_liststore")); 603 ls = GTK_LIST_STORE (GNUNET_FS_GTK_get_main_window_object ("namespace_label_liststore"));
602 label_gnu = g_strdup_printf ("%s.%s", 604 label_gnu = g_strdup_printf ("%s.%s",
603 label, 605 label,
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c
index ab30f597..e2150c1c 100644
--- a/src/namestore/gnunet-namestore-gtk.c
+++ b/src/namestore/gnunet-namestore-gtk.c
@@ -66,6 +66,12 @@
66#define QRCODE_IMAGE_SIZE 64 66#define QRCODE_IMAGE_SIZE 64
67 67
68/** 68/**
69 * How many notifications do we allow the namestore to send us
70 * before we need to start to catch up?
71 */
72#define NAMESTORE_MONITOR_WINDOW_SIZE 50
73
74/**
69 * Columns in the gns model. 75 * Columns in the gns model.
70 */ 76 */
71enum GNSTreestoreColumn 77enum GNSTreestoreColumn
@@ -2402,6 +2408,8 @@ zone_iteration_proc (void *cls,
2402 GtkTreeIter sel_iter; 2408 GtkTreeIter sel_iter;
2403 GtkTreePath *sel_path; 2409 GtkTreePath *sel_path;
2404 2410
2411 GNUNET_NAMESTORE_zone_monitor_next (zmon,
2412 1);
2405 if ( (GNUNET_SYSERR == GNUNET_DNSPARSER_check_label (name)) && 2413 if ( (GNUNET_SYSERR == GNUNET_DNSPARSER_check_label (name)) &&
2406 (0 != strcmp (name, GNUNET_GNS_EMPTY_LABEL_AT)) ) 2414 (0 != strcmp (name, GNUNET_GNS_EMPTY_LABEL_AT)) )
2407 { 2415 {
@@ -2641,6 +2649,8 @@ load_zone (const char *name,
2641 NULL, 2649 NULL,
2642 &zone_sync_proc, 2650 &zone_sync_proc,
2643 NULL); 2651 NULL);
2652 GNUNET_NAMESTORE_zone_monitor_next (zmon,
2653 NAMESTORE_MONITOR_WINDOW_SIZE - 1);
2644} 2654}
2645 2655
2646 2656