]>
Dogcows Code - chaz/homebank/blob - plugins/native.c
7 const gchar
* metadata
[] = {
8 "NAME: Some Native Plugin",
10 "ABSTRACT: Native plugins are also possible.",
11 "AUTHOR: Charles McGarvey <chazmcgarvey@brokenzipper.com>",
12 "WEBSITE: http://acme.tld/",
16 G_MODULE_EXPORT
void load(void);
17 G_MODULE_EXPORT
void unload(void);
18 G_MODULE_EXPORT
void execute(void);
20 G_MODULE_EXPORT
void on_create_main_window(GList
* args
);
21 G_MODULE_EXPORT
void on_enter_main_loop(GList
* args
);
24 G_MODULE_EXPORT
void load()
26 g_print("loading native plugin....... %p\n", load
);
29 G_MODULE_EXPORT
void unload()
31 g_print("destroy native plugin....... %p\n", unload
);
34 G_MODULE_EXPORT
void execute()
36 g_print("Configuring that native plugin!!!\n");
39 static GtkWidget
* win
= NULL
;
41 G_MODULE_EXPORT
void on_create_main_window(GList
* args
)
43 GList
* it
= g_list_first(args
);
44 win
= g_value_get_object(it
->data
);
45 /*gtk_window_set_title(GTK_WINDOW(GLOBALS->mainwindow), "This is the native hello-world plugin!");*/
48 G_MODULE_EXPORT
void on_enter_main_loop(GList
* args
)
50 g_print("setting main window title.....\n");
52 gtk_window_set_title(GTK_WINDOW(win
), "This is the native hello-world plugin!");
54 g_printerr("the main window is not set :(\n");
This page took 0.035513 seconds and 4 git commands to generate.