Web lists-archives.com

gdkwin32.h / gdk_win32_drawable_get_handle()

Is it permissiable to #include <gdk/gdkprivate.h> in client code?  Here's the scenario (I discovered this in gtk-2-24 so apologies if it's been fixed in a more recent version...)

'gdk/gdkwin32.h' declares some functions, including gdk_win32_drawable_get_handle().  It isn't declared anywhere else AFAICT and there's an accompanying macro called GDK_WINDOW_HWND.  A #ifdef test (called INSIDE_GDK_WIN32) makes the macro call that function if the build is not INSIDE_GDK_WIN32.  So it looks like it's allowable to #include <gdk/gdkwin32.h> from within client code.

HOWEVER... gdkwin32.h #includes gdk/gdkprivate.h (which I'd guess is NOT supposed to get #included in client code).

Just wanted to check if #including a private header is okay in client code.

gtk-devel-list mailing list