diff options
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_phone.c')
-rw-r--r-- | src/namestore/plugin_gtk_namestore_phone.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/namestore/plugin_gtk_namestore_phone.c b/src/namestore/plugin_gtk_namestore_phone.c index 33defbf7..e3bbf0ca 100644 --- a/src/namestore/plugin_gtk_namestore_phone.c +++ b/src/namestore/plugin_gtk_namestore_phone.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 PHONE record value. Enable/disable 'save' | 31 | * The user has edited the PHONE 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_phone_peer_entry_changed_cb (GtkEditable *entry, | 38 | GNS_edit_dialog_phone_peer_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 | ||
@@ -152,7 +150,7 @@ phone_validate (void *cls, | |||
152 | /** | 150 | /** |
153 | * Entry point for the plugin. | 151 | * Entry point for the plugin. |
154 | * | 152 | * |
155 | * @param cls the "struct GNUNET_GTK_NAMESTORE_PluginEnvironment*" | 153 | * @param cls the `struct GNUNET_GTK_NAMESTORE_PluginEnvironment` |
156 | * @return NULL on error, otherwise the plugin context | 154 | * @return NULL on error, otherwise the plugin context |
157 | */ | 155 | */ |
158 | void * | 156 | void * |
@@ -160,11 +158,17 @@ libgnunet_plugin_gtk_namestore_phone_init (void *cls) | |||
160 | { | 158 | { |
161 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; | 159 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; |
162 | struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; | 160 | struct GNUNET_GTK_NAMESTORE_PluginFunctions *plugin; |
161 | static struct GNUNET_GTK_NAMESTORE_Symbol symbols[] = { | ||
162 | { "GNS_edit_dialog_phone_peer_entry_changed_cb", | ||
163 | G_CALLBACK (GNS_edit_dialog_phone_peer_entry_changed_cb) }, | ||
164 | { NULL, NULL } | ||
165 | }; | ||
163 | 166 | ||
164 | plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); | 167 | plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); |
165 | plugin->cls = env; | 168 | plugin->cls = env; |
166 | plugin->dialog_glade_filename = "gnunet_namestore_edit_phone.glade"; | 169 | plugin->dialog_glade_filename = "gnunet_namestore_edit_phone.glade"; |
167 | plugin->dialog_widget_name = "edit_phone_dialog"; | 170 | plugin->dialog_widget_name = "edit_phone_dialog"; |
171 | plugin->symbols = symbols; | ||
168 | plugin->load = &phone_load; | 172 | plugin->load = &phone_load; |
169 | plugin->store = &phone_store; | 173 | plugin->store = &phone_store; |
170 | plugin->validate = &phone_validate; | 174 | plugin->validate = &phone_validate; |