macos: export gdk_quartz_drag_source_context()

It's used in the gtk dnd code but not exported in gdk.
Append a "_libgtk_only" suffix as with other internal exports and
export the symbol.

See #32
This commit is contained in:
Christoph Reiter 2018-03-01 14:31:57 +01:00
parent 94d6d56913
commit 26e2af26ed
3 changed files with 6 additions and 5 deletions

View File

@ -28,7 +28,7 @@ G_DEFINE_TYPE (GdkQuartzDragContext, gdk_quartz_drag_context, GDK_TYPE_DRAG_CONT
GdkDragContext *_gdk_quartz_drag_source_context = NULL;
GdkDragContext *
gdk_quartz_drag_source_context ()
gdk_quartz_drag_source_context_libgtk_only ()
{
return _gdk_quartz_drag_source_context;
}

View File

@ -48,6 +48,9 @@ GType gdk_quartz_drag_context_get_type (void);
GDK_AVAILABLE_IN_ALL
id gdk_quartz_drag_context_get_dragging_info_libgtk_only (GdkDragContext *context);
GDK_AVAILABLE_IN_ALL
GdkDragContext *gdk_quartz_drag_source_context_libgtk_only (void);
G_END_DECLS
#endif /* __GDK_QUARTZ_DRAG_CONTEXT_H__ */

View File

@ -63,8 +63,6 @@ static GtkDragSourceInfo *gtk_drag_get_source_info (GdkDragContext *context,
static void gtk_drag_drop_finished (GtkDragSourceInfo *info,
GtkDragResult result);
extern GdkDragContext *gdk_quartz_drag_source_context (); /* gdk/quartz/gdkdnd-quartz.c */
struct _GtkDragSourceInfo
{
GtkWidget *source_widget;
@ -228,7 +226,7 @@ gtk_drag_finish (GdkDragContext *context,
guint32 time)
{
GtkDragSourceInfo *info;
GdkDragContext* source_context = gdk_quartz_drag_source_context ();
GdkDragContext* source_context = gdk_quartz_drag_source_context_libgtk_only ();
if (source_context)
{
@ -310,7 +308,7 @@ GtkWidget *
gtk_drag_get_source_widget (GdkDragContext *context)
{
GtkDragSourceInfo *info;
GdkDragContext* real_source_context = gdk_quartz_drag_source_context();
GdkDragContext* real_source_context = gdk_quartz_drag_source_context_libgtk_only ();
if (!real_source_context)
return NULL;