aboutsummaryrefslogtreecommitdiff
path: root/src/setup/gnunet-setup-gns-edit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup/gnunet-setup-gns-edit.h')
-rw-r--r--src/setup/gnunet-setup-gns-edit.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/setup/gnunet-setup-gns-edit.h b/src/setup/gnunet-setup-gns-edit.h
index 25ac2551..2386553c 100644
--- a/src/setup/gnunet-setup-gns-edit.h
+++ b/src/setup/gnunet-setup-gns-edit.h
@@ -49,6 +49,13 @@ typedef void (*GNS_EditContinuation)(struct EditDialogContext *edc,
49 GtkResponseType ret); 49 GtkResponseType ret);
50 50
51 51
52/**
53 * Signature of a dialog-specific validation function to validate the
54 * value. Should either call 'edit_dialog_disable_save' if the value
55 * is invalid, or 'edit_dialog_check_save' if the value is valid.
56 */
57typedef void (*GNS_EditValidator)(struct EditDialogContext *edc);
58
52 59
53/** 60/**
54 * Context for edit operations. 61 * Context for edit operations.
@@ -72,6 +79,12 @@ struct EditDialogContext
72 GNS_EditContinuation cont; 79 GNS_EditContinuation cont;
73 80
74 /** 81 /**
82 * Function to call to validate the state of the dialog and
83 * ultimately update the 'save' button sensitivity.
84 */
85 GNS_EditValidator validator;
86
87 /**
75 * Builder for the dialog (internal to gnunet-setup-gns-edit.c). 88 * Builder for the dialog (internal to gnunet-setup-gns-edit.c).
76 */ 89 */
77 GtkBuilder *builder; 90 GtkBuilder *builder;