GNOME Bugzilla – Bug 405915
gdkquartz.h should be publicly available
Last modified: 2007-12-10 20:47:16 UTC
Please describe the problem: Just like gdkx.h is installed so that a program can access the X11 internals, gdkquartz.h should be installed so the NSViews can be accessed. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 82186 [details] [review] update to Makefile.am so that gdkquartz.h is installed.
Created attachment 82188 [details] [review] updated diff that includes updates to gdkquartz.h so it conditionally includes headers #ifdef GDK_COMPILATION #include "gdkprivate-quartz.h" #include "gdkdrawable-quartz.h" #include "gdkwindow-quartz.h" #endif
We could do that, BUT, the internals are not set in stone and will most likely change, so I'm not convinced it's a good idea. What do you need the view for, maybe there is a way to do what you want through the public API?
One future feature we'd like to add is AudioUnits. I was thinking it'd be neat if we could embed the AudioUnit NSView inside a Gtk Window.
Hm, I don't think you could do that by poking at the private internals of a gdkwindow though. You'd probably have to write your own GtkWidget that can swallow an NSView, handling events across the two systems etc.
The header file only exposes non-private things now so the second patch is not needed anymore.
I've committed a similar patch from Paul, I had forgotten we had this bug open here.