diff options
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_txt.c')
-rw-r--r-- | src/namestore/plugin_gtk_namestore_txt.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/namestore/plugin_gtk_namestore_txt.c b/src/namestore/plugin_gtk_namestore_txt.c index c8c84dd3..9af4371d 100644 --- a/src/namestore/plugin_gtk_namestore_txt.c +++ b/src/namestore/plugin_gtk_namestore_txt.c | |||
@@ -41,7 +41,9 @@ txt_load (void *cls, | |||
41 | gchar *n_value, | 41 | gchar *n_value, |
42 | GtkBuilder *builder) | 42 | GtkBuilder *builder) |
43 | { | 43 | { |
44 | GNUNET_break (0); | 44 | gtk_entry_set_text (GTK_ENTRY (gtk_builder_get_object (builder, |
45 | "edit_dialog_txt_entry")), | ||
46 | n_value); | ||
45 | } | 47 | } |
46 | 48 | ||
47 | 49 | ||
@@ -57,8 +59,13 @@ static gchar * | |||
57 | txt_store (void *cls, | 59 | txt_store (void *cls, |
58 | GtkBuilder *builder) | 60 | GtkBuilder *builder) |
59 | { | 61 | { |
60 | GNUNET_break (0); | 62 | GtkEntry *entry; |
61 | return NULL; | 63 | const gchar *value; |
64 | |||
65 | entry = GTK_ENTRY (gtk_builder_get_object (builder, | ||
66 | "edit_dialog_txt_entry")); | ||
67 | value = gtk_entry_get_text (entry); | ||
68 | return g_strdup (value); | ||
62 | } | 69 | } |
63 | 70 | ||
64 | 71 | ||
@@ -77,7 +84,6 @@ static int | |||
77 | txt_validate (void *cls, | 84 | txt_validate (void *cls, |
78 | GtkBuilder *builder) | 85 | GtkBuilder *builder) |
79 | { | 86 | { |
80 | GNUNET_break (0); | ||
81 | return GNUNET_OK; | 87 | return GNUNET_OK; |
82 | } | 88 | } |
83 | 89 | ||