aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_gtk_namestore_ptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_ptr.c')
-rw-r--r--src/namestore/plugin_gtk_namestore_ptr.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/namestore/plugin_gtk_namestore_ptr.c b/src/namestore/plugin_gtk_namestore_ptr.c
index adf89f23..03a9c92a 100644
--- a/src/namestore/plugin_gtk_namestore_ptr.c
+++ b/src/namestore/plugin_gtk_namestore_ptr.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_ptr_entry_changed_cb (GtkEditable *entry, 38GNS_edit_dialog_ptr_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
@@ -117,7 +117,7 @@ ptr_validate (void *cls,
117/** 117/**
118 * Entry point for the plugin. 118 * Entry point for the plugin.
119 * 119 *
120 * @param cls the "struct GNUNET_GTK_NAMESTORE_PluginEnvironment*" 120 * @param cls the `struct GNUNET_GTK_NAMESTORE_PluginEnvironment`
121 * @return NULL on error, otherwise the plugin context 121 * @return NULL on error, otherwise the plugin context
122 */ 122 */
123void * 123void *
@@ -125,11 +125,17 @@ libgnunet_plugin_gtk_namestore_ptr_init (void *cls)
125{ 125{
126 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; 126 struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls;
127 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; 127 struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin;
128 static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = {
129 { "GNS_edit_dialog_ptr_entry_changed_cb",
130 G_CALLBACK (GNS_edit_dialog_ptr_entry_changed_cb) },
131 { NULL, NULL }
132 };
128 133
129 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); 134 plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions);
130 plugin->cls = env; 135 plugin->cls = env;
131 plugin->dialog_glade_filename = "gnunet_namestore_edit_ptr.glade"; 136 plugin->dialog_glade_filename = "gnunet_namestore_edit_ptr.glade";
132 plugin->dialog_widget_name = "edit_ptr_dialog"; 137 plugin->dialog_widget_name = "edit_ptr_dialog";
138 plugin->symbols = symbols;
133 plugin->load = &ptr_load; 139 plugin->load = &ptr_load;
134 plugin->store = &ptr_store; 140 plugin->store = &ptr_store;
135 plugin->validate = &ptr_validate; 141 plugin->validate = &ptr_validate;