From 472d7c466d33bd1fe4cd293b354e52bf16384520 Mon Sep 17 00:00:00 2001 From: Gordon Norman Squash Date: Tue, 10 Sep 2024 01:28:29 -0400 Subject: Initial commit This is where I have started tracking development with Git. I declare this as version 0.89. --- include/gtk3-classic.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/gtk3-classic.h (limited to 'include/gtk3-classic.h') 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 + + +#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__ */ -- cgit