diff options
Diffstat (limited to 'src/namestore/gnunet-namestore-gtk.c')
-rw-r--r-- | src/namestore/gnunet-namestore-gtk.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c index a9d42f91..2981e16f 100644 --- a/src/namestore/gnunet-namestore-gtk.c +++ b/src/namestore/gnunet-namestore-gtk.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <gnunet/gnunet_gns_service.h> | 30 | #include <gnunet/gnunet_gns_service.h> |
31 | #include <gnunet/gnunet_identity_service.h> | 31 | #include <gnunet/gnunet_identity_service.h> |
32 | #include <gnunet/gnunet_namestore_service.h> | 32 | #include <gnunet/gnunet_namestore_service.h> |
33 | #include <gnunet/gnunet_dnsparser_lib.h> | ||
34 | 33 | ||
35 | /** | 34 | /** |
36 | * Text we use for the 'name' entry for the user to select | 35 | * Text we use for the 'name' entry for the user to select |
@@ -1049,7 +1048,7 @@ edit_dialog_continuation (struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc, | |||
1049 | else | 1048 | else |
1050 | rd.flags = GNUNET_GNSRECORD_RF_PRIVATE; | 1049 | rd.flags = GNUNET_GNSRECORD_RF_PRIVATE; |
1051 | if (edc->n_is_shadow) | 1050 | if (edc->n_is_shadow) |
1052 | rd.flags |= GNUNET_GNSRECORD_RF_SHADOW_RECORD; | 1051 | rd.flags |= GNUNET_GNSRECORD_RF_SHADOW; |
1053 | rd.record_type = edc->record_type; | 1052 | rd.record_type = edc->record_type; |
1054 | rd.expiration_time = edc->n_exp_time; | 1053 | rd.expiration_time = edc->n_exp_time; |
1055 | if (edc->n_is_relative) | 1054 | if (edc->n_is_relative) |
@@ -1691,7 +1690,7 @@ launch_edit_dialog (gint n_type, | |||
1691 | edc->n_is_relative = | 1690 | edc->n_is_relative = |
1692 | (0 != (rd_old[off].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)); | 1691 | (0 != (rd_old[off].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)); |
1693 | edc->n_is_shadow = | 1692 | edc->n_is_shadow = |
1694 | (0 != (rd_old[off].flags & GNUNET_GNSRECORD_RF_SHADOW_RECORD)); | 1693 | (0 != (rd_old[off].flags & GNUNET_GNSRECORD_RF_SHADOW)); |
1695 | edc->n_exp_time = rd_old[off].expiration_time; | 1694 | edc->n_exp_time = rd_old[off].expiration_time; |
1696 | edc->old_record_in_namestore = GNUNET_YES; | 1695 | edc->old_record_in_namestore = GNUNET_YES; |
1697 | } | 1696 | } |
@@ -2202,7 +2201,7 @@ gnunet_namestore_gtk_treeview_key_press_event_cb (GtkWidget *widget, | |||
2202 | if (n_is_relative) | 2201 | if (n_is_relative) |
2203 | rd.flags |= GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION; | 2202 | rd.flags |= GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION; |
2204 | if (n_is_shadow) | 2203 | if (n_is_shadow) |
2205 | rd.flags |= GNUNET_GNSRECORD_RF_SHADOW_RECORD; | 2204 | rd.flags |= GNUNET_GNSRECORD_RF_SHADOW; |
2206 | rd.record_type = n_type; | 2205 | rd.record_type = n_type; |
2207 | rd.expiration_time = n_exp_time; | 2206 | rd.expiration_time = n_exp_time; |
2208 | if (GNUNET_OK != GNUNET_GNSRECORD_string_to_value (n_type, | 2207 | if (GNUNET_OK != GNUNET_GNSRECORD_string_to_value (n_type, |
@@ -2497,8 +2496,8 @@ zone_iteration_proc (void *cls, | |||
2497 | is_public = ((rd[c].flags & GNUNET_GNSRECORD_RF_PRIVATE) != | 2496 | is_public = ((rd[c].flags & GNUNET_GNSRECORD_RF_PRIVATE) != |
2498 | GNUNET_GNSRECORD_RF_PRIVATE); | 2497 | GNUNET_GNSRECORD_RF_PRIVATE); |
2499 | /* Set shadow toggle */ | 2498 | /* Set shadow toggle */ |
2500 | is_shadow = ((rd[c].flags & GNUNET_GNSRECORD_RF_SHADOW_RECORD) == | 2499 | is_shadow = ((rd[c].flags & GNUNET_GNSRECORD_RF_SHADOW) == |
2501 | GNUNET_GNSRECORD_RF_SHADOW_RECORD); | 2500 | GNUNET_GNSRECORD_RF_SHADOW); |
2502 | /* Expiration time */ | 2501 | /* Expiration time */ |
2503 | time_is_relative = | 2502 | time_is_relative = |
2504 | (0 != (rd[c].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)); | 2503 | (0 != (rd[c].flags & GNUNET_GNSRECORD_RF_RELATIVE_EXPIRATION)); |