-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.c
58 lines (43 loc) · 1.02 KB
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include <glib.h>
#include <gmodule.h>
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "Gtk3-Classic-Module"
typedef void (* InitFunc) ();
void button_menu_icons_init ();
void dialogs_init ();
void icon_sizes_init ();
void no_emojis_init ();
void persistent_mnemonics_init ();
void smaller_widgets_init ();
void treeview_zebra_stripes_init ();
static const InitFunc init_funcs[] =
{
treeview_zebra_stripes_init,
smaller_widgets_init,
/* No Emojis must be loaded before Button/Menu Icons since the former
* overrides GtkMenuItem, the superclass of the GtkImageMenuItem class
* which Button/Menu Icons taps into.
*/
no_emojis_init,
button_menu_icons_init,
persistent_mnemonics_init,
dialogs_init,
icon_sizes_init,
NULL
};
G_MODULE_EXPORT
const char * g_module_check_init (GModule *module)
{
g_module_make_resident (module);
return NULL;
}
G_MODULE_EXPORT
int gtk_module_init (gint * argc, char *** argv)
{
int i;
(void) argc;
(void) argv;
for (i = 0; init_funcs[i] != NULL; i++)
init_funcs[i] ();
return 0;
}