mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
Bug 745957 - GTK+/Quartz >= 3.14.8: Symbol not found: _gtk_drag_cancel
Implement gtk_drag_cancel, made public inc160ba069
and62616a71
, in gtkdnd-quartz.c.
This commit is contained in:
parent
f5b245ff04
commit
13c303fec5
@ -62,6 +62,8 @@ static void gtk_drag_source_site_destroy (gpointer data);
|
||||
static GtkDragSourceInfo *gtk_drag_get_source_info (GdkDragContext *context,
|
||||
gboolean create);
|
||||
|
||||
static void gtk_drag_drop_finished (GtkDragSourceInfo *info);
|
||||
|
||||
extern GdkDragContext *gdk_quartz_drag_source_context (); /* gdk/quartz/gdkdnd-quartz.c */
|
||||
|
||||
struct _GtkDragSourceSite
|
||||
@ -1383,6 +1385,23 @@ gtk_drag_begin (GtkWidget *widget,
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_drag_cancel:
|
||||
* @context: a #GdkDragContext, as e.g. returned by gtk_drag_begin_with_coordinates()
|
||||
*
|
||||
*/
|
||||
void
|
||||
gtk_drag_cancel (GdkDragContext *context)
|
||||
{
|
||||
GtkDragSourceInfo *info;
|
||||
|
||||
g_return_if_fail (GDK_IS_DRAG_CONTEXT (context));
|
||||
|
||||
info = gtk_drag_get_source_info (context, FALSE);
|
||||
if (info != NULL)
|
||||
gtk_drag_drop_finished (info);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gtk_drag_source_event_cb (GtkWidget *widget,
|
||||
GdkEvent *event,
|
||||
|
Loading…
Reference in New Issue
Block a user