forked from AuroraMiddleware/gtk
gdk: Remove gdk_drag_grop_succeeded()
It's unused and most backends don't implement it.
This commit is contained in:
parent
622a150bb4
commit
fb53568c04
@ -781,7 +781,6 @@ gdk_drag_begin
|
|||||||
gdk_drop_finish
|
gdk_drop_finish
|
||||||
GdkDragAction
|
GdkDragAction
|
||||||
gdk_drag_status
|
gdk_drag_status
|
||||||
gdk_drag_drop_succeeded
|
|
||||||
|
|
||||||
gdk_drag_context_get_display
|
gdk_drag_context_get_display
|
||||||
gdk_drag_context_get_actions
|
gdk_drag_context_get_actions
|
||||||
|
@ -149,14 +149,6 @@ _gdk_broadway_surface_register_dnd (GdkSurface *surface)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gdk_broadway_drag_context_drop_status (GdkDragContext *context)
|
|
||||||
{
|
|
||||||
g_return_val_if_fail (context != NULL, FALSE);
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_gdk_broadway_display_init_dnd (GdkDisplay *display)
|
_gdk_broadway_display_init_dnd (GdkDisplay *display)
|
||||||
{
|
{
|
||||||
@ -175,5 +167,4 @@ gdk_broadway_drag_context_class_init (GdkBroadwayDragContextClass *klass)
|
|||||||
context_class->drag_drop = gdk_broadway_drag_context_drag_drop;
|
context_class->drag_drop = gdk_broadway_drag_context_drag_drop;
|
||||||
context_class->drop_reply = gdk_broadway_drag_context_drop_reply;
|
context_class->drop_reply = gdk_broadway_drag_context_drop_reply;
|
||||||
context_class->drop_finish = gdk_broadway_drag_context_drop_finish;
|
context_class->drop_finish = gdk_broadway_drag_context_drop_finish;
|
||||||
context_class->drop_status = gdk_broadway_drag_context_drop_status;
|
|
||||||
}
|
}
|
||||||
|
19
gdk/gdkdnd.c
19
gdk/gdkdnd.c
@ -575,25 +575,6 @@ gdk_drop_finish (GdkDragContext *context,
|
|||||||
GDK_DRAG_CONTEXT_GET_CLASS (context)->drop_finish (context, success, time_);
|
GDK_DRAG_CONTEXT_GET_CLASS (context)->drop_finish (context, success, time_);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* gdk_drag_drop_succeeded:
|
|
||||||
* @context: a #GdkDragContext
|
|
||||||
*
|
|
||||||
* Returns whether the dropped data has been successfully
|
|
||||||
* transferred. This function is intended to be used while
|
|
||||||
* handling a %GDK_DROP_FINISHED event, its return value is
|
|
||||||
* meaningless at other times.
|
|
||||||
*
|
|
||||||
* Returns: %TRUE if the drop was successful.
|
|
||||||
**/
|
|
||||||
gboolean
|
|
||||||
gdk_drag_drop_succeeded (GdkDragContext *context)
|
|
||||||
{
|
|
||||||
g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), FALSE);
|
|
||||||
|
|
||||||
return GDK_DRAG_CONTEXT_GET_CLASS (context)->drop_status (context);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gdk_drag_context_write_done (GObject *content,
|
gdk_drag_context_write_done (GObject *content,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
|
@ -139,9 +139,6 @@ GdkDragContext * gdk_drag_begin (GdkSurface
|
|||||||
gint dx,
|
gint dx,
|
||||||
gint dy);
|
gint dy);
|
||||||
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
|
||||||
gboolean gdk_drag_drop_succeeded (GdkDragContext *context);
|
|
||||||
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
void gdk_drag_drop_done (GdkDragContext *context,
|
void gdk_drag_drop_done (GdkDragContext *context,
|
||||||
gboolean success);
|
gboolean success);
|
||||||
|
@ -56,7 +56,6 @@ struct _GdkDragContextClass {
|
|||||||
const char **out_mime_type,
|
const char **out_mime_type,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
GError **error);
|
GError **error);
|
||||||
gboolean (*drop_status) (GdkDragContext *context);
|
|
||||||
GdkSurface* (*get_drag_surface) (GdkDragContext *context);
|
GdkSurface* (*get_drag_surface) (GdkDragContext *context);
|
||||||
void (*set_hotspot) (GdkDragContext *context,
|
void (*set_hotspot) (GdkDragContext *context,
|
||||||
gint hot_x,
|
gint hot_x,
|
||||||
|
@ -100,13 +100,6 @@ _gdk_quartz_surface_register_dnd (GdkSurface *window)
|
|||||||
/* FIXME: Implement */
|
/* FIXME: Implement */
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gdk_quartz_drag_context_drop_status (GdkDragContext *context)
|
|
||||||
{
|
|
||||||
/* FIXME: Implement */
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
id
|
id
|
||||||
gdk_quartz_drag_context_get_dragging_info_libgtk_only (GdkDragContext *context)
|
gdk_quartz_drag_context_get_dragging_info_libgtk_only (GdkDragContext *context)
|
||||||
{
|
{
|
||||||
@ -137,5 +130,4 @@ gdk_quartz_drag_context_class_init (GdkQuartzDragContextClass *klass)
|
|||||||
context_class->drag_drop = gdk_quartz_drag_context_drag_drop;
|
context_class->drag_drop = gdk_quartz_drag_context_drag_drop;
|
||||||
context_class->drop_reply = gdk_quartz_drag_context_drop_reply;
|
context_class->drop_reply = gdk_quartz_drag_context_drop_reply;
|
||||||
context_class->drop_finish = gdk_quartz_drag_context_drop_finish;
|
context_class->drop_finish = gdk_quartz_drag_context_drop_finish;
|
||||||
context_class->drop_status = gdk_quartz_drag_context_drop_status;
|
|
||||||
}
|
}
|
||||||
|
@ -341,12 +341,6 @@ gdk_wayland_drag_context_read_finish (GdkDragContext *context,
|
|||||||
return g_task_propagate_pointer (task, error);
|
return g_task_propagate_pointer (task, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gdk_wayland_drag_context_drop_status (GdkDragContext *context)
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gdk_wayland_drag_context_init (GdkWaylandDragContext *context_wayland)
|
gdk_wayland_drag_context_init (GdkWaylandDragContext *context_wayland)
|
||||||
{
|
{
|
||||||
@ -449,7 +443,6 @@ gdk_wayland_drag_context_class_init (GdkWaylandDragContextClass *klass)
|
|||||||
context_class->drop_finish = gdk_wayland_drag_context_drop_finish;
|
context_class->drop_finish = gdk_wayland_drag_context_drop_finish;
|
||||||
context_class->read_async = gdk_wayland_drag_context_read_async;
|
context_class->read_async = gdk_wayland_drag_context_read_async;
|
||||||
context_class->read_finish = gdk_wayland_drag_context_read_finish;
|
context_class->read_finish = gdk_wayland_drag_context_read_finish;
|
||||||
context_class->drop_status = gdk_wayland_drag_context_drop_status;
|
|
||||||
context_class->get_drag_surface = gdk_wayland_drag_context_get_drag_surface;
|
context_class->get_drag_surface = gdk_wayland_drag_context_get_drag_surface;
|
||||||
context_class->set_hotspot = gdk_wayland_drag_context_set_hotspot;
|
context_class->set_hotspot = gdk_wayland_drag_context_set_hotspot;
|
||||||
context_class->drop_done = gdk_wayland_drag_context_drop_done;
|
context_class->drop_done = gdk_wayland_drag_context_drop_done;
|
||||||
|
@ -2634,14 +2634,6 @@ _gdk_win32_surface_register_dnd (GdkSurface *window)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gdk_win32_drag_context_drop_status (GdkDragContext *context)
|
|
||||||
{
|
|
||||||
GdkWin32DragContext *context_win32 = GDK_WIN32_DRAG_CONTEXT (context);
|
|
||||||
|
|
||||||
return ! context_win32->drop_failed;
|
|
||||||
}
|
|
||||||
|
|
||||||
static GdkAtom
|
static GdkAtom
|
||||||
gdk_win32_drag_context_get_selection (GdkDragContext *context)
|
gdk_win32_drag_context_get_selection (GdkDragContext *context)
|
||||||
{
|
{
|
||||||
@ -3244,7 +3236,6 @@ gdk_win32_drag_context_class_init (GdkWin32DragContextClass *klass)
|
|||||||
context_class->drag_drop = gdk_win32_drag_context_drag_drop;
|
context_class->drag_drop = gdk_win32_drag_context_drag_drop;
|
||||||
context_class->drop_reply = gdk_win32_drag_context_drop_reply;
|
context_class->drop_reply = gdk_win32_drag_context_drop_reply;
|
||||||
context_class->drop_finish = gdk_win32_drag_context_drop_finish;
|
context_class->drop_finish = gdk_win32_drag_context_drop_finish;
|
||||||
context_class->drop_status = gdk_win32_drag_context_drop_status;
|
|
||||||
|
|
||||||
context_class->get_drag_surface = gdk_win32_drag_context_get_drag_surface;
|
context_class->get_drag_surface = gdk_win32_drag_context_get_drag_surface;
|
||||||
context_class->set_hotspot = gdk_win32_drag_context_set_hotspot;
|
context_class->set_hotspot = gdk_win32_drag_context_set_hotspot;
|
||||||
|
@ -2279,14 +2279,6 @@ gdk_win32_drag_context_drag_abort (GdkDragContext *context,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gdk_win32_drag_context_drop_status (GdkDragContext *context)
|
|
||||||
{
|
|
||||||
GdkWin32DragContext *context_win32 = GDK_WIN32_DRAG_CONTEXT (context);
|
|
||||||
|
|
||||||
return ! context_win32->drop_failed;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gdk_win32_drag_context_set_cursor (GdkDragContext *context,
|
gdk_win32_drag_context_set_cursor (GdkDragContext *context,
|
||||||
GdkCursor *cursor)
|
GdkCursor *cursor)
|
||||||
@ -2875,7 +2867,6 @@ gdk_win32_drag_context_class_init (GdkWin32DragContextClass *klass)
|
|||||||
|
|
||||||
context_class->drag_abort = gdk_win32_drag_context_drag_abort;
|
context_class->drag_abort = gdk_win32_drag_context_drag_abort;
|
||||||
context_class->drag_drop = gdk_win32_drag_context_drag_drop;
|
context_class->drag_drop = gdk_win32_drag_context_drag_drop;
|
||||||
context_class->drop_status = gdk_win32_drag_context_drop_status;
|
|
||||||
|
|
||||||
context_class->get_drag_surface = gdk_win32_drag_context_get_drag_surface;
|
context_class->get_drag_surface = gdk_win32_drag_context_get_drag_surface;
|
||||||
context_class->set_hotspot = gdk_win32_drag_context_set_hotspot;
|
context_class->set_hotspot = gdk_win32_drag_context_set_hotspot;
|
||||||
|
@ -1019,14 +1019,6 @@ _gdk_win32_surface_register_dnd (GdkSurface *window)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gdk_win32_drop_context_drop_status (GdkDragContext *context)
|
|
||||||
{
|
|
||||||
GdkWin32DropContext *context_win32 = GDK_WIN32_DROP_CONTEXT (context);
|
|
||||||
|
|
||||||
return ! context_win32->drop_failed;
|
|
||||||
}
|
|
||||||
|
|
||||||
static gpointer
|
static gpointer
|
||||||
grab_data_from_hdata (GTask *task,
|
grab_data_from_hdata (GTask *task,
|
||||||
HANDLE hdata,
|
HANDLE hdata,
|
||||||
@ -1223,7 +1215,6 @@ gdk_win32_drop_context_class_init (GdkWin32DropContextClass *klass)
|
|||||||
context_class->drag_status = gdk_win32_drop_context_drag_status;
|
context_class->drag_status = gdk_win32_drop_context_drag_status;
|
||||||
context_class->drop_reply = gdk_win32_drop_context_drop_reply;
|
context_class->drop_reply = gdk_win32_drop_context_drop_reply;
|
||||||
context_class->drop_finish = gdk_win32_drop_context_drop_finish;
|
context_class->drop_finish = gdk_win32_drop_context_drop_finish;
|
||||||
context_class->drop_status = gdk_win32_drop_context_drop_status;
|
|
||||||
context_class->read_async = gdk_win32_drop_context_read_async;
|
context_class->read_async = gdk_win32_drop_context_read_async;
|
||||||
context_class->read_finish = gdk_win32_drop_context_read_finish;
|
context_class->read_finish = gdk_win32_drop_context_read_finish;
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,6 @@ static void gdk_x11_drag_context_drop_reply (GdkDragContext *context,
|
|||||||
static void gdk_x11_drag_context_drop_finish (GdkDragContext *context,
|
static void gdk_x11_drag_context_drop_finish (GdkDragContext *context,
|
||||||
gboolean success,
|
gboolean success,
|
||||||
guint32 time_);
|
guint32 time_);
|
||||||
static gboolean gdk_x11_drag_context_drop_status (GdkDragContext *context);
|
|
||||||
static GdkSurface * gdk_x11_drag_context_get_drag_surface (GdkDragContext *context);
|
static GdkSurface * gdk_x11_drag_context_get_drag_surface (GdkDragContext *context);
|
||||||
static void gdk_x11_drag_context_set_hotspot (GdkDragContext *context,
|
static void gdk_x11_drag_context_set_hotspot (GdkDragContext *context,
|
||||||
gint hot_x,
|
gint hot_x,
|
||||||
@ -405,7 +404,6 @@ gdk_x11_drag_context_class_init (GdkX11DragContextClass *klass)
|
|||||||
context_class->drag_drop = gdk_x11_drag_context_drag_drop;
|
context_class->drag_drop = gdk_x11_drag_context_drag_drop;
|
||||||
context_class->drop_reply = gdk_x11_drag_context_drop_reply;
|
context_class->drop_reply = gdk_x11_drag_context_drop_reply;
|
||||||
context_class->drop_finish = gdk_x11_drag_context_drop_finish;
|
context_class->drop_finish = gdk_x11_drag_context_drop_finish;
|
||||||
context_class->drop_status = gdk_x11_drag_context_drop_status;
|
|
||||||
context_class->read_async = gdk_x11_drag_context_read_async;
|
context_class->read_async = gdk_x11_drag_context_read_async;
|
||||||
context_class->read_finish = gdk_x11_drag_context_read_finish;
|
context_class->read_finish = gdk_x11_drag_context_read_finish;
|
||||||
context_class->get_drag_surface = gdk_x11_drag_context_get_drag_surface;
|
context_class->get_drag_surface = gdk_x11_drag_context_get_drag_surface;
|
||||||
@ -2534,12 +2532,6 @@ _gdk_x11_surface_register_dnd (GdkSurface *surface)
|
|||||||
(guchar *)&xdnd_version, 1);
|
(guchar *)&xdnd_version, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gdk_x11_drag_context_drop_status (GdkDragContext *context)
|
|
||||||
{
|
|
||||||
return ! GDK_X11_DRAG_CONTEXT (context)->drop_failed;
|
|
||||||
}
|
|
||||||
|
|
||||||
static GdkSurface *
|
static GdkSurface *
|
||||||
gdk_x11_drag_context_get_drag_surface (GdkDragContext *context)
|
gdk_x11_drag_context_get_drag_surface (GdkDragContext *context)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user