diff options
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_pkey.c')
-rw-r--r-- | src/namestore/plugin_gtk_namestore_pkey.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/namestore/plugin_gtk_namestore_pkey.c b/src/namestore/plugin_gtk_namestore_pkey.c index f7cdc3de..0f1915fe 100644 --- a/src/namestore/plugin_gtk_namestore_pkey.c +++ b/src/namestore/plugin_gtk_namestore_pkey.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 | GNS_edit_dialog_pkey_entry_changed_cb (GtkEditable *entry, | 38 | GNS_edit_dialog_pkey_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 @@ pkey_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 | */ |
127 | void * | 127 | void * |
@@ -129,11 +129,17 @@ libgnunet_plugin_gtk_namestore_pkey_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_pkey_entry_changed_cb", | ||
134 | G_CALLBACK (GNS_edit_dialog_pkey_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_pkey.glade"; | 140 | plugin->dialog_glade_filename = "gnunet_namestore_edit_pkey.glade"; |
136 | plugin->dialog_widget_name = "edit_pkey_dialog"; | 141 | plugin->dialog_widget_name = "edit_pkey_dialog"; |
142 | plugin->symbols = symbols; | ||
137 | plugin->load = &pkey_load; | 143 | plugin->load = &pkey_load; |
138 | plugin->store = &pkey_store; | 144 | plugin->store = &pkey_store; |
139 | plugin->validate = &pkey_validate; | 145 | plugin->validate = &pkey_validate; |