aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_gtk_namestore_gns2dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_gns2dns.c')
-rw-r--r--src/namestore/plugin_gtk_namestore_gns2dns.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/namestore/plugin_gtk_namestore_gns2dns.c b/src/namestore/plugin_gtk_namestore_gns2dns.c
index 88d41ba9..16ac03fb 100644
--- a/src/namestore/plugin_gtk_namestore_gns2dns.c
+++ b/src/namestore/plugin_gtk_namestore_gns2dns.c
@@ -35,13 +35,13 @@
35 * @param entry editing widget 35 * @param entry editing widget
36 * @param user_data the plugin environment 36 * @param user_data the plugin environment
37 */ 37 */
38void 38static void
39GNS_edit_dialog_gns2dns_entry_changed_cb (GtkEditable *entry, 39GNS_edit_dialog_gns2dns_entry_changed_cb (GtkEditable *entry,
40 gpointer user_data) 40 gpointer user_data)
41{ 41{
42 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = user_data; 42 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc = user_data;
43 43
44 env->check_validity (env->cls); 44 edc->check_validity (edc);
45} 45}
46 46
47 47
@@ -118,7 +118,7 @@ gns2dns_validate (void *cls,
118/** 118/**
119 * Entry point for the plugin. 119 * Entry point for the plugin.
120 * 120 *
121 * @param cls the "struct GNUNET_GTK_NAMESTORE_PluginEnvironment*" 121 * @param cls the `struct GNUNET_GTK_NAMESTORE_PluginEnvironment`
122 * @return NULL on error, otherwise the plugin context 122 * @return NULL on error, otherwise the plugin context
123 */ 123 */
124void * 124void *
@@ -126,11 +126,17 @@ libgnunet_plugin_gtk_namestore_gns2dns_init (void *cls)
126{ 126{
127 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; 127 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls;
128 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; 128 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin;
129 static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = {
130 { "GNS_edit_dialog_gns2dns_entry_changed_cb",
131 G_CALLBACK (GNS_edit_dialog_gns2dns_entry_changed_cb) },
132 { NULL, NULL }
133 };
129 134
130 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); 135 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions);
131 plugin->cls = env; 136 plugin->cls = env;
132 plugin->dialog_glade_filename = "gnunet_namestore_edit_gns2dns.glade"; 137 plugin->dialog_glade_filename = "gnunet_namestore_edit_gns2dns.glade";
133 plugin->dialog_widget_name = "edit_gns2dns_dialog"; 138 plugin->dialog_widget_name = "edit_gns2dns_dialog";
139 plugin->symbols = symbols;
134 plugin->load = &gns2dns_load; 140 plugin->load = &gns2dns_load;
135 plugin->store = &gns2dns_store; 141 plugin->store = &gns2dns_store;
136 plugin->validate = &gns2dns_validate; 142 plugin->validate = &gns2dns_validate;