aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_gtk_namestore_a.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_a.c')
-rw-r--r--src/namestore/plugin_gtk_namestore_a.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/namestore/plugin_gtk_namestore_a.c b/src/namestore/plugin_gtk_namestore_a.c
index d72373e9..c4f302f2 100644
--- a/src/namestore/plugin_gtk_namestore_a.c
+++ b/src/namestore/plugin_gtk_namestore_a.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_a_entry_changed_cb (GtkEditable *entry, 38GNS_edit_dialog_a_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
@@ -121,7 +121,7 @@ a_validate (void *cls,
121/** 121/**
122 * Entry point for the plugin. 122 * Entry point for the plugin.
123 * 123 *
124 * @param cls the "struct GNUNET_GTK_NAMESTORE_PluginEnvironment*" 124 * @param cls the `struct GNUNET_GTK_NAMESTORE_PluginEnvironment`
125 * @return NULL on error, otherwise the plugin context 125 * @return NULL on error, otherwise the plugin context
126 */ 126 */
127void * 127void *
@@ -129,11 +129,17 @@ libgnunet_plugin_gtk_namestore_a_init (void *cls)
129{ 129{
130 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; 130 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls;
131 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; 131 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin;
132 static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = {
133 { "GNS_edit_dialog_a_entry_changed_cb",
134 G_CALLBACK (GNS_edit_dialog_a_entry_changed_cb) },
135 { NULL, NULL }
136 };
132 137
133 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); 138 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions);
134 plugin->cls = env; 139 plugin->cls = env;
135 plugin->dialog_glade_filename = "gnunet_namestore_edit_a.glade"; 140 plugin->dialog_glade_filename = "gnunet_namestore_edit_a.glade";
136 plugin->dialog_widget_name = "edit_a_dialog"; 141 plugin->dialog_widget_name = "edit_a_dialog";
142 plugin->symbols = symbols;
137 plugin->load = &a_load; 143 plugin->load = &a_load;
138 plugin->store = &a_store; 144 plugin->store = &a_store;
139 plugin->validate = &a_validate; 145 plugin->validate = &a_validate;