diff options
author | Gordon Norman Squash <gordsqsh@protonmail.com> | 2024-09-10 01:28:29 -0400 |
---|---|---|
committer | Gordon Norman Squash <gordsqsh@protonmail.com> | 2024-09-10 01:30:42 -0400 |
commit | 472d7c466d33bd1fe4cd293b354e52bf16384520 (patch) | |
tree | 08398a71fd7838967649c73f005f98bfe7b843d2 /main.c | |
download | gtk3-classic-module-472d7c466d33bd1fe4cd293b354e52bf16384520.tar.gz gtk3-classic-module-472d7c466d33bd1fe4cd293b354e52bf16384520.tar.bz2 gtk3-classic-module-472d7c466d33bd1fe4cd293b354e52bf16384520.zip |
Initial commit
This is where I have started tracking development with Git. I declare this
as version 0.89.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 56 |
1 files changed, 56 insertions, 0 deletions
@@ -0,0 +1,56 @@ +#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 (); + +static const InitFunc init_funcs[] = +{ + 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; +} |