[gtk+/wip/baedert/box: 6/14] gtkdnd: Remove gtk_drag_begin



commit e9086a86c07593432e6661522fe9c4f7399d10b9
Author: Timm Bäder <mail baedert org>
Date:   Tue Oct 11 14:41:30 2016 +0200

    gtkdnd: Remove gtk_drag_begin

 gtk/gtkdnd-quartz.c |   25 -------------------------
 gtk/gtkdnd.c        |   32 --------------------------------
 gtk/gtkdnd.h        |    7 -------
 3 files changed, 0 insertions(+), 64 deletions(-)
---
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index b6cd243..7b7d319 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -1264,31 +1264,6 @@ gtk_drag_begin_with_coordinates (GtkWidget         *widget,
   return gtk_drag_begin_internal (widget, NULL, targets,
                                  actions, button, event, x, y);
 }
-/**
- * gtk_drag_begin: (method)
- * @widget: the source widget.
- * @targets: The targets (data formats) in which the
- *    source can provide the data.
- * @actions: A bitmask of the allowed drag actions for this drag.
- * @button: The button the user clicked to start the drag.
- * @event: The event that triggered the start of the drag.
- *
- * Returns: (transfer none):
- */
-GdkDragContext *
-gtk_drag_begin (GtkWidget         *widget,
-               GtkTargetList     *targets,
-               GdkDragAction      actions,
-               gint               button,
-               GdkEvent          *event)
-{
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-  g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
-  g_return_val_if_fail (targets != NULL, NULL);
-
-  return gtk_drag_begin_internal (widget, NULL, targets,
-                                 actions, button, event, -1, -1);
-}
 
 
 /**
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 92c57c3..a8c369a 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -1764,38 +1764,6 @@ gtk_drag_begin_with_coordinates (GtkWidget     *widget,
                                   actions, button, event, x, y);
 }
 
-/**
- * gtk_drag_begin: (method)
- * @widget: the source widget
- * @targets: The targets (data formats) in which the
- *    source can provide the data
- * @actions: A bitmask of the allowed drag actions for this drag
- * @button: The button the user clicked to start the drag
- * @event: (nullable): The event that triggered the start of the drag,
- *    or %NULL if none can be obtained.
- *
- * This function is equivalent to gtk_drag_begin_with_coordinates(),
- * passing -1, -1 as coordinates.
- *
- * Returns: (transfer none): the context for this drag
- *
- * Deprecated: 3.10: Use gtk_drag_begin_with_coordinates() instead
- */
-GdkDragContext *
-gtk_drag_begin (GtkWidget     *widget,
-                GtkTargetList *targets,
-                GdkDragAction  actions,
-                gint           button,
-                GdkEvent      *event)
-{
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-  g_return_val_if_fail (gtk_widget_get_realized (widget), NULL);
-  g_return_val_if_fail (targets != NULL, NULL);
-
-  return gtk_drag_begin_internal (widget, NULL, targets,
-                                  actions, button, event, -1, -1);
-}
-
 static void
 icon_widget_destroyed (GtkWidget         *widget,
                        GtkDragSourceInfo *info)
diff --git a/gtk/gtkdnd.h b/gtk/gtkdnd.h
index d975f06..afd3eda 100644
--- a/gtk/gtkdnd.h
+++ b/gtk/gtkdnd.h
@@ -69,13 +69,6 @@ GdkDragContext *gtk_drag_begin_with_coordinates (GtkWidget         *widget,
                                                  gint               x,
                                                  gint               y);
 
-GDK_DEPRECATED_IN_3_10_FOR(gtk_drag_begin_with_coordinates)
-GdkDragContext *gtk_drag_begin (GtkWidget         *widget,
-                               GtkTargetList     *targets,
-                               GdkDragAction      actions,
-                               gint               button,
-                               GdkEvent          *event);
-
 GDK_AVAILABLE_IN_3_16
 void gtk_drag_cancel           (GdkDragContext *context);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]