aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_gtk_namestore_aaaa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_aaaa.c')
-rw-r--r--src/namestore/plugin_gtk_namestore_aaaa.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/namestore/plugin_gtk_namestore_aaaa.c b/src/namestore/plugin_gtk_namestore_aaaa.c
index 08da0bec..76b64dcb 100644
--- a/src/namestore/plugin_gtk_namestore_aaaa.c
+++ b/src/namestore/plugin_gtk_namestore_aaaa.c
@@ -34,13 +34,13 @@
34 * @param entry editing widget 34 * @param entry editing widget
35 * @param user_data the plugin environment 35 * @param user_data the plugin environment
36 */ 36 */
37void 37static void
38GNS_edit_dialog_aaaa_entry_changed_cb (GtkEditable *entry, 38GNS_edit_dialog_aaaa_entry_changed_cb (GtkEditable *entry,
39 gpointer user_data) 39 gpointer user_data)
40{ 40{
41 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = user_data; 41 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc = user_data;
42 42
43 env->check_validity (env->cls); 43 edc->check_validity (edc);
44} 44}
45 45
46 46
@@ -116,7 +116,7 @@ aaaa_validate (void *cls,
116/** 116/**
117 * Entry point for the plugin. 117 * Entry point for the plugin.
118 * 118 *
119 * @param cls the "struct GNUNET_GTK_NAMESTORE_PluginEnvironment*" 119 * @param cls the `struct GNUNET_GTK_NAMESTORE_PluginEnvironment`
120 * @return NULL on error, otherwise the plugin context 120 * @return NULL on error, otherwise the plugin context
121 */ 121 */
122void * 122void *
@@ -124,11 +124,17 @@ libgnunet_plugin_gtk_namestore_aaaa_init (void *cls)
124{ 124{
125 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; 125 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls;
126 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; 126 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin;
127 static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = {
128 { "GNS_edit_dialog_aaaa_entry_changed_cb",
129 G_CALLBACK (GNS_edit_dialog_aaaa_entry_changed_cb) },
130 { NULL, NULL }
131 };
127 132
128 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); 133 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions);
129 plugin->cls = env; 134 plugin->cls = env;
130 plugin->dialog_glade_filename = "gnunet_namestore_edit_aaaa.glade"; 135 plugin->dialog_glade_filename = "gnunet_namestore_edit_aaaa.glade";
131 plugin->dialog_widget_name = "edit_aaaa_dialog"; 136 plugin->dialog_widget_name = "edit_aaaa_dialog";
137 plugin->symbols = symbols;
132 plugin->load = &aaaa_load; 138 plugin->load = &aaaa_load;
133 plugin->store = &aaaa_store; 139 plugin->store = &aaaa_store;
134 plugin->validate = &aaaa_validate; 140 plugin->validate = &aaaa_validate;