diff options
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_leho.c')
-rw-r--r-- | src/namestore/plugin_gtk_namestore_leho.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/namestore/plugin_gtk_namestore_leho.c b/src/namestore/plugin_gtk_namestore_leho.c index 9187c4fd..a7ec9a25 100644 --- a/src/namestore/plugin_gtk_namestore_leho.c +++ b/src/namestore/plugin_gtk_namestore_leho.c | |||
@@ -27,8 +27,6 @@ | |||
27 | #include "gnunet_gtk_namestore_plugin.h" | 27 | #include "gnunet_gtk_namestore_plugin.h" |
28 | 28 | ||
29 | 29 | ||
30 | |||
31 | |||
32 | /** | 30 | /** |
33 | * The user has edited the LEHO record value. Enable/disable 'save' | 31 | * The user has edited the LEHO record value. Enable/disable 'save' |
34 | * button depending on the validity of the value. | 32 | * button depending on the validity of the value. |
@@ -36,13 +34,13 @@ | |||
36 | * @param entry editing widget | 34 | * @param entry editing widget |
37 | * @param user_data the plugin environment | 35 | * @param user_data the plugin environment |
38 | */ | 36 | */ |
39 | void | 37 | static void |
40 | GNS_edit_dialog_leho_entry_changed_cb (GtkEditable *entry, | 38 | GNS_edit_dialog_leho_entry_changed_cb (GtkEditable *entry, |
41 | gpointer user_data) | 39 | gpointer user_data) |
42 | { | 40 | { |
43 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = user_data; | 41 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc = user_data; |
44 | 42 | ||
45 | env->check_validity (env->cls); | 43 | edc->check_validity (edc); |
46 | } | 44 | } |
47 | 45 | ||
48 | 46 | ||
@@ -122,7 +120,7 @@ leho_validate (void *cls, | |||
122 | /** | 120 | /** |
123 | * Entry point for the plugin. | 121 | * Entry point for the plugin. |
124 | * | 122 | * |
125 | * @param cls the "struct GNUNET_GTK_NAMESTORE_PluginEnvironment*" | 123 | * @param cls the `struct GNUNET_GTK_NAMESTORE_PluginEnvironment` |
126 | * @return NULL on error, otherwise the plugin context | 124 | * @return NULL on error, otherwise the plugin context |
127 | */ | 125 | */ |
128 | void * | 126 | void * |
@@ -130,11 +128,17 @@ libgnunet_plugin_gtk_namestore_leho_init (void *cls) | |||
130 | { | 128 | { |
131 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; | 129 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; |
132 | struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; | 130 | struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; |
131 | static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = { | ||
132 | { "GNS_edit_dialog_leho_entry_changed_cb", | ||
133 | G_CALLBACK (GNS_edit_dialog_leho_entry_changed_cb) }, | ||
134 | { NULL, NULL } | ||
135 | }; | ||
133 | 136 | ||
134 | plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); | 137 | plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); |
135 | plugin->cls = env; | 138 | plugin->cls = env; |
136 | plugin->dialog_glade_filename = "gnunet_namestore_edit_leho.glade"; | 139 | plugin->dialog_glade_filename = "gnunet_namestore_edit_leho.glade"; |
137 | plugin->dialog_widget_name = "edit_leho_dialog"; | 140 | plugin->dialog_widget_name = "edit_leho_dialog"; |
141 | plugin->symbols = symbols; | ||
138 | plugin->load = &leho_load; | 142 | plugin->load = &leho_load; |
139 | plugin->store = &leho_store; | 143 | plugin->store = &leho_store; |
140 | plugin->validate = &leho_validate; | 144 | plugin->validate = &leho_validate; |