[gtk+/gdk-backend-deprecations] Deprecated gdk_drag_find_window and gdk_drag_get_protocol
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend-deprecations] Deprecated gdk_drag_find_window and gdk_drag_get_protocol
- Date: Tue, 21 Dec 2010 13:45:40 +0000 (UTC)
commit 5ecafffcc53d522ff2661c487d28b18b90164614
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 21 08:43:33 2010 -0500
Deprecated gdk_drag_find_window and gdk_drag_get_protocol
gdk/gdk.symbols | 2 ++
gdk/gdkdnd.c | 4 ++++
gdk/gdkdnd.h | 4 ++++
3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index a471186..f65d708 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -563,10 +563,12 @@ gdk_drag_context_list_targets
gdk_drag_context_get_source_window
gdk_drag_context_get_dest_window
gdk_drag_context_get_protocol
+#ifndef GDK_DISABLE_DEPRECATED
gdk_drag_find_window
gdk_drag_get_protocol
#endif
#endif
+#endif
#if IN_HEADER(__GDK_DRAWABLE_H__)
#if IN_FILE(__GDK_DRAW_C__)
diff --git a/gdk/gdkdnd.c b/gdk/gdkdnd.c
index c34974a..58d4452 100644
--- a/gdk/gdkdnd.c
+++ b/gdk/gdkdnd.c
@@ -45,6 +45,8 @@
*
* This function is called by the drag source to obtain the
* @dest_window and @protocol parameters for gdk_drag_motion().
+ *
+ * Deprecated: 2.24: Use gdk_drag_find_window_for_screen() instead.
**/
void
gdk_drag_find_window (GdkDragContext *context,
@@ -69,6 +71,8 @@ gdk_drag_find_window (GdkDragContext *context,
* Return value: the windowing system specific id for the window where
* the drop should happen. This may be @xid or the id of a proxy
* window, or zero if @xid doesn't support Drag and Drop.
+ *
+ * Deprecated: 2.24: Use gdk_drag_get_protocol_for_display() instead
**/
GdkNativeWindow
gdk_drag_get_protocol (GdkNativeWindow xid,
diff --git a/gdk/gdkdnd.h b/gdk/gdkdnd.h
index 1f6e341..c5c7906 100644
--- a/gdk/gdkdnd.h
+++ b/gdk/gdkdnd.h
@@ -104,7 +104,9 @@ struct _GdkDragContextClass {
/* Drag and Drop */
GType gdk_drag_context_get_type (void) G_GNUC_CONST;
+#if !defined (GDK_DISABLE_DEPRECATED) || defined (GDK_COMPILATION
GdkDragContext * gdk_drag_context_new (void);
+#endif
GList *gdk_drag_context_list_targets (GdkDragContext *context);
GdkDragAction gdk_drag_context_get_actions (GdkDragContext *context);
@@ -152,6 +154,7 @@ void gdk_drag_find_window_for_screen (GdkDragContext *context,
GdkDragProtocol *protocol);
#ifndef GDK_MULTIHEAD_SAFE
+#ifndef GDK_DISABLE_DEPRECATED
GdkNativeWindow gdk_drag_get_protocol (GdkNativeWindow xid,
GdkDragProtocol *protocol);
@@ -161,6 +164,7 @@ void gdk_drag_find_window (GdkDragContext *context,
gint y_root,
GdkWindow **dest_window,
GdkDragProtocol *protocol);
+#endif /* GDK_DISABLE_DEPRECATED */
#endif /* GDK_MULTIHEAD_SAFE */
gboolean gdk_drag_motion (GdkDragContext *context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]