diff options
Diffstat (limited to 'src/namestore/plugin_gtk_namestore_cname.c')
-rw-r--r-- | src/namestore/plugin_gtk_namestore_cname.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/namestore/plugin_gtk_namestore_cname.c b/src/namestore/plugin_gtk_namestore_cname.c index e9f2c119..c8fb176c 100644 --- a/src/namestore/plugin_gtk_namestore_cname.c +++ b/src/namestore/plugin_gtk_namestore_cname.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_cname_entry_changed_cb (GtkEditable *entry, | 38 | GNS_edit_dialog_cname_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 | ||
@@ -120,7 +120,7 @@ cname_validate (void *cls, | |||
120 | /** | 120 | /** |
121 | * Entry point for the plugin. | 121 | * Entry point for the plugin. |
122 | * | 122 | * |
123 | * @param cls the "struct GNUNET_GTK_NAMESTORE_PluginEnvironment*" | 123 | * @param cls the `struct GNUNET_GTK_NAMESTORE_PluginEnvironment` |
124 | * @return NULL on error, otherwise the plugin context | 124 | * @return NULL on error, otherwise the plugin context |
125 | */ | 125 | */ |
126 | void * | 126 | void * |
@@ -128,11 +128,17 @@ libgnunet_plugin_gtk_namestore_cname_init (void *cls) | |||
128 | { | 128 | { |
129 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; | 129 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *env = cls; |
130 | 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_cname_entry_changed_cb", | ||
133 | G_CALLBACK (GNS_edit_dialog_cname_entry_changed_cb) }, | ||
134 | { NULL, NULL } | ||
135 | }; | ||
131 | 136 | ||
132 | plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); | 137 | plugin = GNUNET_new (struct GNUNET_GTK_NAMESTORE_PluginFunctions); |
133 | plugin->cls = env; | 138 | plugin->cls = env; |
134 | plugin->dialog_glade_filename = "gnunet_namestore_edit_cname.glade"; | 139 | plugin->dialog_glade_filename = "gnunet_namestore_edit_cname.glade"; |
135 | plugin->dialog_widget_name = "edit_cname_dialog"; | 140 | plugin->dialog_widget_name = "edit_cname_dialog"; |
141 | plugin->symbols = symbols; | ||
136 | plugin->load = &cname_load; | 142 | plugin->load = &cname_load; |
137 | plugin->store = &cname_store; | 143 | plugin->store = &cname_store; |
138 | plugin->validate = &cname_validate; | 144 | plugin->validate = &cname_validate; |