diff options
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_template.c')
-rw-r--r-- | src/namestore/plugin_gtk_namestore_template.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/namestore/plugin_gtk_namestore_template.c b/src/namestore/plugin_gtk_namestore_template.c index 962c97ca..833f0dd1 100644 --- a/src/namestore/plugin_gtk_namestore_template.c +++ b/src/namestore/plugin_gtk_namestore_template.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 | */ |
37 | void | 37 | static void |
38 | FOO_changed_cb (GtkEditable *entry, | 38 | FOO_changed_cb (GtkEditable *entry, |
39 | gpointer user_data) | 39 | gpointer user_data) |
40 | { | 40 | { |
41 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = user_data; | 41 | *edc = user_data; |
42 | 42 | ||
43 | env->check_validity (env->cls); | 43 | edc->check_validity (edc); |
44 | } | 44 | } |
45 | 45 | ||
46 | /** | 46 | /** |
@@ -101,7 +101,7 @@ template_validate (void *cls, | |||
101 | /** | 101 | /** |
102 | * Entry point for the plugin. | 102 | * Entry point for the plugin. |
103 | * | 103 | * |
104 | * @param cls the "struct GNUNET_GTK_NAMESTORE_PluginEnvironment*" | 104 | * @param cls the `struct GNUNET_GTK_NAMESTORE_PluginEnvironment` |
105 | * @return NULL on error, otherwise the plugin context | 105 | * @return NULL on error, otherwise the plugin context |
106 | */ | 106 | */ |
107 | void * | 107 | void * |
@@ -109,11 +109,17 @@ libgnunet_plugin_gtk_namestore_template_init (void *cls) | |||
109 | { | 109 | { |
110 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; | 110 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; |
111 | struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; | 111 | struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; |
112 | static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = { | ||
113 | { "FOO_changed_cb", | ||
114 | G_CALLBACK (FOO_changed_cb) }, | ||
115 | { NULL, NULL } | ||
116 | }; | ||
112 | 117 | ||
113 | plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); | 118 | plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); |
114 | plugin->cls = env; | 119 | plugin->cls = env; |
115 | plugin->dialog_glade_filename = "gnunet_namestore_edit_template.glade"; | 120 | plugin->dialog_glade_filename = "gnunet_namestore_edit_template.glade"; |
116 | plugin->dialog_widget_name = "edit_template_dialog"; | 121 | plugin->dialog_widget_name = "edit_template_dialog"; |
122 | plugin->symbols = symbols; | ||
117 | plugin->load = &a_load; | 123 | plugin->load = &a_load; |
118 | plugin->store = &a_store; | 124 | plugin->store = &a_store; |
119 | plugin->validate = &a_validate; | 125 | plugin->validate = &a_validate; |