After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 631088 - Bind nsview/nswindow attributes
Bind nsview/nswindow attributes
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: gdk
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-01 11:45 UTC by Olivier Aubert
Modified: 2010-10-15 14:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implement nsview/nswindow attribute wrapping (1.63 KB, patch)
2010-10-01 11:45 UTC, Olivier Aubert
none Details | Review

Description Olivier Aubert 2010-10-01 11:45:54 UTC
Created attachment 171484 [details] [review]
Implement nsview/nswindow attribute wrapping

When using the gdk-quartz backend, the nsview and nswindow properties are needed to embed windows into the interface. Here is a patch that wraps the get_nsview/get_nswindow functions as nsview/nswindow attributes (similar to the existing xid and handle attributes).

One thing missing from this patch is the addition of -ObjC option to CFLAGS (because of the inclusion of AppKit.h). The right way IMHO would be to have it in gtk+ pkg-config. Should I file a bug against gtk+/quartz ?
Comment 1 John Stowers 2010-10-14 20:27:17 UTC
(In reply to comment #0)
> Created an attachment (id=171484) [details] [review]
> Implement nsview/nswindow attribute wrapping
> 
> When using the gdk-quartz backend, the nsview and nswindow properties are
> needed to embed windows into the interface. Here is a patch that wraps the
> get_nsview/get_nswindow functions as nsview/nswindow attributes (similar to the
> existing xid and handle attributes).

Thanks, patch committed.

> One thing missing from this patch is the addition of -ObjC option to CFLAGS
> (because of the inclusion of AppKit.h). The right way IMHO would be to have it
> in gtk+ pkg-config. Should I file a bug against gtk+/quartz ?

Yes please.
Comment 2 Olivier Aubert 2010-10-15 14:53:19 UTC
For reference, bug 632221 filed against gtk+/quartz