gdk: Remove gdk_drag_grop_succeeded()
authorBenjamin Otte <otte@redhat.com>
Tue, 1 May 2018 22:39:41 +0000 (00:39 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 2 May 2018 23:31:39 +0000 (01:31 +0200)
It's unused and most backends don't implement it.

docs/reference/gdk/gdk4-sections.txt
gdk/broadway/gdkdnd-broadway.c
gdk/gdkdnd.c
gdk/gdkdnd.h
gdk/gdkdndprivate.h
gdk/quartz/gdkdnd-quartz.c
gdk/wayland/gdkdnd-wayland.c
gdk/win32/gdkdnd-win32.c
gdk/win32/gdkdrag-win32.c
gdk/win32/gdkdrop-win32.c
gdk/x11/gdkdnd-x11.c

index 71a23259f7e1948208b378b46de3d7170839f6b4..2553c35c2c8bb54f7eaa37a95e73c0b6ea264bb8 100644 (file)
@@ -781,7 +781,6 @@ gdk_drag_begin
 gdk_drop_finish
 GdkDragAction
 gdk_drag_status
-gdk_drag_drop_succeeded
 
 gdk_drag_context_get_display
 gdk_drag_context_get_actions
index 660c36aa74323fe059439ddc075f7c71a162808d..71545c565cc46a3ad201ba145f62d65d1ed89f29 100644 (file)
@@ -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
 _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->drop_reply = gdk_broadway_drag_context_drop_reply;
   context_class->drop_finish = gdk_broadway_drag_context_drop_finish;
-  context_class->drop_status = gdk_broadway_drag_context_drop_status;
 }
index d480ea37376bbb6fd0b8294df1c2e1169ff11864..a86f405c8a1b9beae0d1b0260f17d82e1231d332 100644 (file)
@@ -575,25 +575,6 @@ gdk_drop_finish (GdkDragContext *context,
   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
 gdk_drag_context_write_done (GObject      *content,
                              GAsyncResult *result,
index 0cc1d33131872dbfb8bb5cee4556ba1286da7ab2..5b35f066c49681d1c291e5908548748470e3d170 100644 (file)
@@ -139,9 +139,6 @@ GdkDragContext *        gdk_drag_begin                  (GdkSurface
                                                          gint                    dx,
                                                          gint                    dy);
 
-GDK_AVAILABLE_IN_ALL
-gboolean        gdk_drag_drop_succeeded (GdkDragContext *context);
-
 GDK_AVAILABLE_IN_ALL
 void            gdk_drag_drop_done   (GdkDragContext *context,
                                       gboolean        success);
index ee8edf8bdcb2ebbe915885a1babd7b6f63315828..a2fa2b99960ab34feaf5002305ce7b814fb11299 100644 (file)
@@ -56,7 +56,6 @@ struct _GdkDragContextClass {
                                                                  const char            **out_mime_type,
                                                                  GAsyncResult           *result,
                                                                  GError                **error);
-  gboolean    (*drop_status)   (GdkDragContext  *context);
   GdkSurface*  (*get_drag_surface) (GdkDragContext *context);
   void        (*set_hotspot)   (GdkDragContext  *context,
                                 gint             hot_x,
index f091185751bd7f229181483fe53e7e61fee00c35..47612010173bba594d6f75c1e8855517d28d0954 100644 (file)
@@ -100,13 +100,6 @@ _gdk_quartz_surface_register_dnd (GdkSurface *window)
   /* FIXME: Implement */
 }
 
-static gboolean
-gdk_quartz_drag_context_drop_status (GdkDragContext *context)
-{
-  /* FIXME: Implement */
-  return FALSE;
-}
-
 id
 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->drop_reply = gdk_quartz_drag_context_drop_reply;
   context_class->drop_finish = gdk_quartz_drag_context_drop_finish;
-  context_class->drop_status = gdk_quartz_drag_context_drop_status;
 }
index 24d9070b1d5d5406b21ea6ace6180621dc0e2297..74d9c0e1c92f33fdb782825a7eda0ee3c3ceb8c6 100644 (file)
@@ -341,12 +341,6 @@ gdk_wayland_drag_context_read_finish (GdkDragContext  *context,
   return g_task_propagate_pointer (task, error);
 }
 
-static gboolean
-gdk_wayland_drag_context_drop_status (GdkDragContext *context)
-{
-  return FALSE;
-}
-
 static void
 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->read_async = gdk_wayland_drag_context_read_async;
   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->set_hotspot = gdk_wayland_drag_context_set_hotspot;
   context_class->drop_done = gdk_wayland_drag_context_drop_done;
index 97c753c91d4f6aef9c5339bf37575fdb52403a31..68ed58d3b3f9f7158bec3241ec2a1e681517ac32 100644 (file)
@@ -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
 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->drop_reply = gdk_win32_drag_context_drop_reply;
   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->set_hotspot = gdk_win32_drag_context_set_hotspot;
index 830af3232f2e351e1edaa9509a469ba74d03031a..d2e5b877b539a51b9a063b8d12b441722b0d9924 100644 (file)
@@ -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
 gdk_win32_drag_context_set_cursor (GdkDragContext *context,
                                    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_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->set_hotspot = gdk_win32_drag_context_set_hotspot;
index b41a6cfa4b80400ab7dac0176c51f7f6c026f5fb..1d9dac87f638167578508821de2cd9414ee2c364 100644 (file)
@@ -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
 grab_data_from_hdata (GTask  *task,
                       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->drop_reply = gdk_win32_drop_context_drop_reply;
   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_finish = gdk_win32_drop_context_read_finish;
 }
index ddcd22632a8bfdd7132f2f19769d6bdb1793621e..d65ed28254ae3d0808ade8416d6cdbb28c54197f 100644 (file)
@@ -249,7 +249,6 @@ static void        gdk_x11_drag_context_drop_reply  (GdkDragContext  *context,
 static void        gdk_x11_drag_context_drop_finish (GdkDragContext  *context,
                                                      gboolean         success,
                                                      guint32          time_);
-static gboolean    gdk_x11_drag_context_drop_status (GdkDragContext  *context);
 static GdkSurface * gdk_x11_drag_context_get_drag_surface (GdkDragContext *context);
 static void        gdk_x11_drag_context_set_hotspot (GdkDragContext  *context,
                                                      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->drop_reply = gdk_x11_drag_context_drop_reply;
   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_finish = gdk_x11_drag_context_read_finish;
   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);
 }
 
-static gboolean
-gdk_x11_drag_context_drop_status (GdkDragContext *context)
-{
-  return ! GDK_X11_DRAG_CONTEXT (context)->drop_failed;
-}
-
 static GdkSurface *
 gdk_x11_drag_context_get_drag_surface (GdkDragContext *context)
 {