diff options
Diffstat (limited to 'src/anastasis/anastasis-gtk_handle-core-secret-changed.c')
-rw-r--r-- | src/anastasis/anastasis-gtk_handle-core-secret-changed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-core-secret-changed.c b/src/anastasis/anastasis-gtk_handle-core-secret-changed.c index 5498077..906ef29 100644 --- a/src/anastasis/anastasis-gtk_handle-core-secret-changed.c +++ b/src/anastasis/anastasis-gtk_handle-core-secret-changed.c @@ -37,7 +37,7 @@ anastasis_gtk_enter_secret_textbuffer_changed_cb (GtkTextBuffer *tb, gpointer user_data) { json_t *arguments; - struct GNUNET_TIME_Absolute expiration; + struct GNUNET_TIME_Timestamp expiration; GtkTextIter start; GtkTextIter end; const char *text; @@ -54,7 +54,7 @@ anastasis_gtk_enter_secret_textbuffer_changed_cb (GtkTextBuffer *tb, return; AG_in_secret_editing = true; expiration = AG_get_desired_expiration (); - if (0 == expiration.abs_value_us) + if (GNUNET_TIME_absolute_is_zero (expiration.abs_time)) return; /* failured */ if ( (NULL == text) || (0 == strlen (text)) ) @@ -75,7 +75,7 @@ anastasis_gtk_enter_secret_textbuffer_changed_cb (GtkTextBuffer *tb, "mime", "text/plain", "expiration", - GNUNET_JSON_from_time_abs (expiration)); + GNUNET_JSON_from_timestamp (expiration)); GNUNET_assert (NULL != arguments); AG_freeze (); AG_ra = ANASTASIS_redux_action (AG_redux_state, |