summaryrefslogtreecommitdiff
path: root/gtk/gtkquartz.h
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2015-07-24 15:09:48 +0200
committerChristoph Reiter <creiter@src.gnome.org>2015-07-27 17:28:14 +0200
commit4b23ba53c51a087851788c67f852281b085c9c33 (patch)
tree4ce856a9c8ad3a59d733cb285cb347cc5f37952d /gtk/gtkquartz.h
parent5003b5873a5e727a2b194bb5c4d8d784cc25b1e4 (diff)
downloadgtk+-4b23ba53c51a087851788c67f852281b085c9c33.tar.gz
quartz dnd: add hidpi support for gtk_drag_set_icon_surface()
Instead of storing the dnd icon as a pixbuf store it as a cairo surface and transfer the device scale when converting it to a NSImage. In the pixbuf/stock/named setters convert to a surface instead (no hidpi support yet)
Diffstat (limited to 'gtk/gtkquartz.h')
-rw-r--r--gtk/gtkquartz.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkquartz.h b/gtk/gtkquartz.h
index 70f9268fe1..e7395082cc 100644
--- a/gtk/gtkquartz.h
+++ b/gtk/gtkquartz.h
@@ -39,6 +39,8 @@ void _gtk_quartz_set_selection_data_for_pasteboard (NSPasteboard *pasteboard,
NSImage *_gtk_quartz_create_image_from_pixbuf (GdkPixbuf *pixbuf);
+NSImage *_gtk_quartz_create_image_from_surface (cairo_surface_t *surface);
+
G_END_DECLS
#endif /* __GTK_QUARTZ_H__ */