Install backend specific header (bug #405915). Also add a getter for the

2007-12-10  Richard Hult  <richard@imendio.com>

	* gdk/quartz/Makefile.am:
	* gdk/quartz/gdkquartz.h:
	* gdk/quartz/gdkwindow-quartz.c: Install backend specific
	header (bug #405915). Also add a getter for the toplevel nswindow.

svn path=/trunk/; revision=19151
This commit is contained in:
Richard Hult 2007-12-10 20:44:23 +00:00 committed by Richard Hult
parent d7f3ab0569
commit 8082fbc437
4 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2007-12-10 Richard Hult <richard@imendio.com>
* gdk/quartz/Makefile.am:
* gdk/quartz/gdkquartz.h:
* gdk/quartz/gdkwindow-quartz.c: Install backend specific
header (bug #405915). Also add a getter for the toplevel nswindow.
2007-12-10 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkdrawable-quartz.c:

View File

@ -52,3 +52,7 @@ libgdk_quartz_la_SOURCES = \
gdkwindow-quartz.c \
gdkwindow-quartz.h \
xcursors.h
libgdkinclude_HEADERS = \
gdkquartz.h

View File

@ -26,6 +26,7 @@
G_BEGIN_DECLS
NSWindow*gdk_quartz_window_get_nswindow (GdkWindow *window);
NSView *gdk_quartz_window_get_nsview (GdkWindow *window);
NSImage *gdk_quartz_pixbuf_to_ns_image_libgtk_only (GdkPixbuf *pixbuf);
id gdk_quartz_drag_context_get_dragging_info_libgtk_only (GdkDragContext *context);

View File

@ -44,9 +44,23 @@ gdk_quartz_window_get_nsview (GdkWindow *window)
{
GdkWindowObject *private = (GdkWindowObject *)window;
if (GDK_WINDOW_DESTROYED (window))
return NULL;
return ((GdkWindowImplQuartz *)private->impl)->view;
}
NSWindow *
gdk_quartz_window_get_nswindow (GdkWindow *window)
{
GdkWindowObject *private = (GdkWindowObject *)window;
if (GDK_WINDOW_DESTROYED (window))
return NULL;
return ((GdkWindowImplQuartz *)private->impl)->toplevel;
}
static void
gdk_window_impl_quartz_get_size (GdkDrawable *drawable,
gint *width,