diff options
Diffstat (limited to 'src/setup/gnunet-setup-gns-edit.c')
-rw-r--r-- | src/setup/gnunet-setup-gns-edit.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/setup/gnunet-setup-gns-edit.c b/src/setup/gnunet-setup-gns-edit.c index af389801..be3ca42f 100644 --- a/src/setup/gnunet-setup-gns-edit.c +++ b/src/setup/gnunet-setup-gns-edit.c | |||
@@ -100,24 +100,6 @@ edit_dialog_check_save (struct EditDialogContext *edc) | |||
100 | 100 | ||
101 | 101 | ||
102 | /** | 102 | /** |
103 | * The user has edited the A record value. Enable/disable 'save' | ||
104 | * button depending on the validity of the value. | ||
105 | * | ||
106 | * @param entry editing widget | ||
107 | * @param preedit new value | ||
108 | * @param user_data the 'struct EditDialogContext' of the dialog | ||
109 | */ | ||
110 | void | ||
111 | GNS_edit_dialog_name_entry_changed_cb (GtkEditable *entry, | ||
112 | gpointer user_data) | ||
113 | { | ||
114 | struct EditDialogContext *edc = user_data; | ||
115 | |||
116 | edc->validator (edc); | ||
117 | } | ||
118 | |||
119 | |||
120 | /** | ||
121 | * The 'relative' expiration time radiobutton was toggled (on or off). | 103 | * The 'relative' expiration time radiobutton was toggled (on or off). |
122 | * | 104 | * |
123 | * @param button the button | 105 | * @param button the button |
@@ -210,7 +192,7 @@ edit_dialog_setup_common_elements (struct EditDialogContext *edc) | |||
210 | } | 192 | } |
211 | gtk_entry_set_text (GTK_ENTRY (gtk_builder_get_object (edc->builder, | 193 | gtk_entry_set_text (GTK_ENTRY (gtk_builder_get_object (edc->builder, |
212 | "edit_dialog_name_entry")), | 194 | "edit_dialog_name_entry")), |
213 | edc->n_new_name); | 195 | edc->name); |
214 | gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gtk_builder_get_object (edc->builder, | 196 | gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gtk_builder_get_object (edc->builder, |
215 | "edit_dialog_options_public_checkbutton")), | 197 | "edit_dialog_options_public_checkbutton")), |
216 | edc->n_public); | 198 | edc->n_public); |
@@ -327,7 +309,6 @@ edit_dialog_setup_common_elements (struct EditDialogContext *edc) | |||
327 | static void | 309 | static void |
328 | edit_dialog_putes_common_elements (struct EditDialogContext *edc) | 310 | edit_dialog_putes_common_elements (struct EditDialogContext *edc) |
329 | { | 311 | { |
330 | GtkEntry *entry; | ||
331 | const char *rt_s; | 312 | const char *rt_s; |
332 | struct GNUNET_TIME_Relative rt; | 313 | struct GNUNET_TIME_Relative rt; |
333 | GtkComboBox *cb; | 314 | GtkComboBox *cb; |
@@ -335,12 +316,6 @@ edit_dialog_putes_common_elements (struct EditDialogContext *edc) | |||
335 | GtkTreeIter iter; | 316 | GtkTreeIter iter; |
336 | gchar *opt; | 317 | gchar *opt; |
337 | 318 | ||
338 | /* record name */ | ||
339 | entry = GTK_ENTRY (gtk_builder_get_object (edc->builder, | ||
340 | "edit_dialog_name_entry")); | ||
341 | g_free (edc->n_new_name); | ||
342 | edc->n_new_name = g_strdup (gtk_entry_get_text (entry)); | ||
343 | |||
344 | /* is public flag */ | 319 | /* is public flag */ |
345 | edc->n_public = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (gtk_builder_get_object (edc->builder, | 320 | edc->n_public = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (gtk_builder_get_object (edc->builder, |
346 | "edit_dialog_options_public_checkbutton"))); | 321 | "edit_dialog_options_public_checkbutton"))); |