Commit 10b83ff1668132e1ccbd8c68161d6076f50f9c8b
1 parent
0b51c172
Exists in
master
and in
2 other branches
Adding method for setting application object just after the plugin load.
Showing
1 changed file
with
14 additions
and
0 deletions
Show diff stats
src/objects/application/application.c
@@ -311,6 +311,20 @@ static void pw3270Application_init(pw3270Application *app) { | @@ -311,6 +311,20 @@ static void pw3270Application_init(pw3270Application *app) { | ||
311 | 311 | ||
312 | } | 312 | } |
313 | 313 | ||
314 | + | ||
315 | + } | ||
316 | + | ||
317 | + // Initialize plugins | ||
318 | + { | ||
319 | + GSList * item; | ||
320 | + void (*call)(GtkApplication *application); | ||
321 | + | ||
322 | + for(item = app->plugins; item; item = g_slist_next(item)) { | ||
323 | + if(g_module_symbol((GModule *) item->data, "pw3270_plugin_set_application", (gpointer *) &call)) { | ||
324 | + call(GTK_APPLICATION(app)); | ||
325 | + } | ||
326 | + } | ||
327 | + | ||
314 | } | 328 | } |
315 | 329 | ||
316 | } | 330 | } |