aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_gtk_namestore_mx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_mx.c')
-rw-r--r--src/namestore/plugin_gtk_namestore_mx.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/namestore/plugin_gtk_namestore_mx.c b/src/namestore/plugin_gtk_namestore_mx.c
index 34b9df71..d2ce3b15 100644
--- a/src/namestore/plugin_gtk_namestore_mx.c
+++ b/src/namestore/plugin_gtk_namestore_mx.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_mx_entry_changed_cb (GtkEditable *entry, 38GNS_edit_dialog_mx_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
@@ -148,7 +148,7 @@ mx_validate (void *cls,
148/** 148/**
149 * Entry point for the plugin. 149 * Entry point for the plugin.
150 * 150 *
151 * @param cls the "struct GNUNET_GTK_NAMESTORE_PluginEnvironment*" 151 * @param cls the `struct GNUNET_GTK_NAMESTORE_PluginEnvironment`
152 * @return NULL on error, otherwise the plugin context 152 * @return NULL on error, otherwise the plugin context
153 */ 153 */
154void * 154void *
@@ -156,11 +156,17 @@ libgnunet_plugin_gtk_namestore_mx_init (void *cls)
156{ 156{
157 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; 157 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls;
158 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; 158 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin;
159 static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = {
160 { "GNS_edit_dialog_mx_entry_changed_cb",
161 G_CALLBACK (GNS_edit_dialog_mx_entry_changed_cb) },
162 { NULL, NULL }
163 };
159 164
160 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); 165 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions);
161 plugin->cls = env; 166 plugin->cls = env;
162 plugin->dialog_glade_filename = "gnunet_namestore_edit_mx.glade"; 167 plugin->dialog_glade_filename = "gnunet_namestore_edit_mx.glade";
163 plugin->dialog_widget_name = "edit_mx_dialog"; 168 plugin->dialog_widget_name = "edit_mx_dialog";
169 plugin->symbols = symbols;
164 plugin->load = &mx_load; 170 plugin->load = &mx_load;
165 plugin->store = &mx_store; 171 plugin->store = &mx_store;
166 plugin->validate = &mx_validate; 172 plugin->validate = &mx_validate;