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 /include/gtk3-classic.h | |
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 'include/gtk3-classic.h')
-rw-r--r-- | include/gtk3-classic.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/gtk3-classic.h b/include/gtk3-classic.h new file mode 100644 index 0000000..51d8a54 --- /dev/null +++ b/include/gtk3-classic.h @@ -0,0 +1,25 @@ +#ifndef __GTK3_CLASSIC_H__ +#define __GTK3_CLASSIC_H__ + + +#define GTK_GETTEXT_DOMAIN "gtk30" +#include <glib/gi18n.h> + + +#define INTERCEPTED_CLASS_METHOD(type_name, method, parameters, return_type) \ + static return_type (* original_##type_name##_##method) parameters; \ + static return_type new_##type_name##_##method parameters; + +#define INTERCEPT_CLASS_METHOD(type_name, class_cast, method) \ + original_##type_name##_##method = class_cast (type_name##_class)->method; \ + class_cast (type_name##_class)->method = new_##type_name##_##method; + +#define CALL_ORIGINAL_CLASS_METHOD(type_name, method, parameters) \ + if (original_##type_name##_##method) \ + original_##type_name##_##method parameters; + +#define CALL_ORIGINAL_CLASS_METHOD_UNCHECKED(type_name, method, parameters) \ + original_##type_name##_##method parameters; + + +#endif /* __GTK3_CLASSIC_H__ */ |