mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
94d6d56913
commit
26e2af26ed
@ -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;
|
||||
}
|
||||
|
@ -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__ */
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user