diff options
Diffstat (limited to 'src/setup/gnunet-setup-gns-edit.c')
-rw-r--r-- | src/setup/gnunet-setup-gns-edit.c | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/src/setup/gnunet-setup-gns-edit.c b/src/setup/gnunet-setup-gns-edit.c index f4e6de65..7dc8e41e 100644 --- a/src/setup/gnunet-setup-gns-edit.c +++ b/src/setup/gnunet-setup-gns-edit.c | |||
@@ -77,6 +77,122 @@ edit_dialog_enable_save (struct EditDialogContext *edc) | |||
77 | 77 | ||
78 | 78 | ||
79 | /** | 79 | /** |
80 | * The user has edited the A record value. Enable/disable 'save' | ||
81 | * button depending on the validity of the value. | ||
82 | * | ||
83 | * @param entry editing widget | ||
84 | * @param preedit new value | ||
85 | * @param user_data the 'struct EditDialogContext' of the dialog | ||
86 | */ | ||
87 | void | ||
88 | GNS_edit_dialog_name_entry_changed_cb (GtkEditable *entry, | ||
89 | gpointer user_data) | ||
90 | { | ||
91 | struct EditDialogContext *edc = user_data; | ||
92 | const gchar *preedit; | ||
93 | struct in_addr v4; | ||
94 | |||
95 | preedit = gtk_editable_get_chars (entry, 0, -1); | ||
96 | #if 0 | ||
97 | /* FIXME: need a way to check if _rest_ of the dialog is | ||
98 | also consistent (like the _value_!) */ | ||
99 | if (1) | ||
100 | edit_dialog_enable_save (edc); | ||
101 | else | ||
102 | edit_dialog_disable_save (edc); | ||
103 | #endif | ||
104 | GNUNET_break (0); | ||
105 | } | ||
106 | |||
107 | |||
108 | /** | ||
109 | * The user has changed the relative expiration time. | ||
110 | * | ||
111 | * @param widget the combo box | ||
112 | * @param user_data the 'struct EditDialogContext' of the dialog | ||
113 | */ | ||
114 | void | ||
115 | GNS_edit_dialog_expiration_relative_combobox_changed_cb (GtkComboBox *widget, | ||
116 | gpointer user_data) | ||
117 | { | ||
118 | struct EditDialogContext *edc = user_data; | ||
119 | |||
120 | /* not sure if we need to do anything here */ | ||
121 | // FIXME | ||
122 | GNUNET_break (0); | ||
123 | } | ||
124 | |||
125 | |||
126 | /** | ||
127 | * The user finished adding an expiration value from hand. Add | ||
128 | * it to the model and select it -- if it is a valid value. | ||
129 | * | ||
130 | * @param cell_editable the changed cell | ||
131 | * @param user_data the 'struct EditDialogContext' of the dialog | ||
132 | */ | ||
133 | void | ||
134 | GNS_edit_dialog_expiration_relative_combobox_editing_done_cb (GtkCellEditable *cell_editable, | ||
135 | gpointer user_data) | ||
136 | { | ||
137 | struct EditDialogContext *edc = user_data; | ||
138 | |||
139 | // FIXME | ||
140 | GNUNET_break (0); | ||
141 | } | ||
142 | |||
143 | |||
144 | /** | ||
145 | * The 'relative' expiration time radiobutton was toggled (on or off). | ||
146 | * | ||
147 | * @param button the button | ||
148 | * @param user_data the 'struct EditDialogContext' of the dialog | ||
149 | */ | ||
150 | void | ||
151 | GNS_edit_dialog_expiration_relative_radiobutton_toggled_cb (GtkToggleButton *button, | ||
152 | gpointer user_data) | ||
153 | { | ||
154 | struct EditDialogContext *edc = user_data; | ||
155 | |||
156 | // FIXME | ||
157 | GNUNET_break (0); | ||
158 | } | ||
159 | |||
160 | |||
161 | /** | ||
162 | * The 'forever' expiration time radiobutton was toggled (on or off). | ||
163 | * | ||
164 | * @param button the button | ||
165 | * @param user_data the 'struct EditDialogContext' of the dialog | ||
166 | */ | ||
167 | void | ||
168 | GNS_edit_dialog_expiration_forever_radiobutton_toggled_cb (GtkToggleButton *button, | ||
169 | gpointer user_data) | ||
170 | { | ||
171 | struct EditDialogContext *edc = user_data; | ||
172 | |||
173 | // FIXME | ||
174 | GNUNET_break (0); | ||
175 | } | ||
176 | |||
177 | |||
178 | /** | ||
179 | * The 'absolute' expiration time radiobutton was toggled (on or off). | ||
180 | * | ||
181 | * @param button the button | ||
182 | * @param user_data the 'struct EditDialogContext' of the dialog | ||
183 | */ | ||
184 | void | ||
185 | GNS_edit_dialog_expiration_absolute_radiobutton_toggled_cb (GtkToggleButton *button, | ||
186 | gpointer user_data) | ||
187 | { | ||
188 | struct EditDialogContext *edc = user_data; | ||
189 | |||
190 | // FIXME | ||
191 | GNUNET_break (0); | ||
192 | } | ||
193 | |||
194 | |||
195 | /** | ||
80 | * Initialize widgets of the edit dialog that are the same regardless of | 196 | * Initialize widgets of the edit dialog that are the same regardless of |
81 | * the type of the record. | 197 | * the type of the record. |
82 | * | 198 | * |