Re: Impl specific functionality
- From: Kristian Rietveld <kris gtk org>
- To: John Emmas <johne53 tiscali co uk>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Impl specific functionality
- Date: Sat, 21 May 2011 15:39:04 +0200
Hi John,
The GTK+ source code makes use of the following defines:
GDK_WINDOWING_X11, GDK_WINDOWING_WIN32 and GDK_WINDOWING_QUARTZ.
These are defined in gdkconfig.h, which is installed as a public
header, so you should be able to make use of it as well.
For GTK+ 3.0, keep in mind that multiple backends can be compiled in
at the same time. This means that you might have to do some run-time
checks, for example if the display or screen the widget is created for
is a X11 or Win32 display/screen.
regards,
-kris.
On Sat, May 21, 2011 at 3:26 PM, John Emmas <johne53 tiscali co uk> wrote:
Suppose I'm writing an app that can either be built with gtk-x11 or gtk-win32. And suppose there's a
function that I'd only ever need to call in the X11 version (XSetErrorHandler() is probably a good
example). Is there a #define or something that I can use at compile time (or even something I could call
at run time) - for example:-
#if GDK_IMPL_X11
XSetErrorHandler ( some_func );
#elif GDK_IMPL_WIN32
// Do some Windows specific stuff
#endif
Of course I can define my own but I just wondered if there's something already available?
John
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]