1 #ifndef WAVE_GTK12COMPAT_H 2 #define WAVE_GTK12COMPAT_H 3 4 #ifdef MAC_INTEGRATION 5 /* #undef WAVE_ALLOW_QUARTZ_FLUSH_WORKAROUND */ 6 #endif 7 8 #if WAVE_USE_GTK2 9 10 #define WAVE_GTKIFE(a,b,c,d,e) {a,b,c,d,e,NULL} 11 #define WAVE_GDK_GET_POINTER(a,b,c,bi,ci,d) gdk_window_get_pointer(a,bi,ci,d) 12 #define WAVE_GDK_GET_POINTER_COPY x=xi; y=yi; 13 14 #define WAVE_GTK_SFUNCAST(x) ((void (*)(GtkWidget *, gpointer))(x)) 15 16 #else 17 18 #if !defined __MINGW32__ && !defined _MSC_VER 19 #ifndef G_CONST_RETURN 20 #define G_CONST_RETURN 21 #endif 22 #endif 23 24 #define WAVE_GTKIFE(a,b,c,d,e) {a,b,c,d,e} 25 #define WAVE_GDK_GET_POINTER(a,b,c,bi,ci,d) gdk_input_window_get_pointer(a, event->deviceid, b, c, NULL, NULL, NULL, d) 26 #define WAVE_GDK_GET_POINTER_COPY 27 #define WAVE_GTK_SIGFONT wavearea->style->font 28 #define WAVE_GTK_WAVEFONT wavearea->style->font 29 #define WAVE_GTK_SFUNCAST(x) ((GtkSignalFunc)(x)) 30 31 #define gtk_notebook_set_current_page(n,p) gtk_notebook_set_page((n),(p)) 32 33 34 #endif 35 36 #endif 37 38