gdkwin32.h / gdk_win32_drawable_get_handle()
- Date: Sun, 22 Jan 2017 10:29:30 +0000
- From: John Emmas via gtk-devel-list <gtk-devel-list@xxxxxxxxx>
- Subject: 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 gtk-devel-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-devel-list