comparison dw.h @ 2264:5c981407b0f3

GTK4: Add experimental support for GTK4... This is in progress and doesn't compile yet. GTK4 support will likely be less full than GTK3 due to architectural decisions by the GTK team. Certain features have been removed with no replacements, such as status icon support. Additionally all of the thread safety has been removed and everything MUST run on the main thread. I will likely implement a similar solution to what I did on MacOS where threads will call into the main thread to do API calls, passing the arguments between threads. Copied from GTK3 removing all existing now dead thread safety, all deprecated code and everything supporting earlier versions of GTK3. GTK4 is not available in any mainstream distributions yet... hoping to have it at least functional by the time there are any.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 29 Jan 2021 10:57:12 +0000
parents 95ad22a4da2d
children 63bb97e94cd3
comparison
equal deleted inserted replaced
2263:176470d75695 2264:5c981407b0f3
980 980
981 #else 981 #else
982 /* GTK Specific section */ 982 /* GTK Specific section */
983 #define _GNU_SOURCE 983 #define _GNU_SOURCE
984 #include <gtk/gtk.h> 984 #include <gtk/gtk.h>
985 #if GTK_MAJOR_VERSION < 4
985 #ifdef GDK_WINDOWING_X11 986 #ifdef GDK_WINDOWING_X11
986 # include <gdk/gdkx.h> 987 # include <gdk/gdkx.h>
987 #else 988 #else
988 # include <gdk/gdk.h> 989 # include <gdk/gdk.h>
989 #endif 990 #endif
990 #include <gdk/gdkprivate.h> 991 #include <gdk/gdkprivate.h>
992 #endif
991 #include <gdk/gdkkeysyms.h> 993 #include <gdk/gdkkeysyms.h>
992 #include <pthread.h> 994 #include <pthread.h>
993 #if !defined(GDK_WINDOWING_WIN32) 995 #if !defined(GDK_WINDOWING_WIN32)
994 # include <dlfcn.h> 996 # include <dlfcn.h>
995 #endif 997 #endif