[gtk+] API: gdk: Make GDK_DRAG_PROTOCOL_NONE equal to 0
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] API: gdk: Make GDK_DRAG_PROTOCOL_NONE equal to 0
- Date: Tue, 1 Feb 2011 17:52:42 +0000 (UTC)
commit 9210347600c640becebe19ac12de5bdf332acaa5
Author: Benjamin Otte <otte redhat com>
Date: Tue Feb 1 17:29:33 2011 +0100
API: gdk: Make GDK_DRAG_PROTOCOL_NONE equal to 0
THis way, we can do comparisons like "if (protocol)"
gdk/gdkdnd.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkdnd.h b/gdk/gdkdnd.h
index 06c5f31..5840569 100644
--- a/gdk/gdkdnd.h
+++ b/gdk/gdkdnd.h
@@ -67,11 +67,11 @@ typedef enum
/**
* GdkDragProtocol:
+ * @GDK_DRAG_PROTO_NONE: no protocol.
* @GDK_DRAG_PROTO_MOTIF: The Motif DND protocol.
* @GDK_DRAG_PROTO_XDND: The Xdnd protocol.
* @GDK_DRAG_PROTO_ROOTWIN: An extension to the Xdnd protocol for
* unclaimed root window drops.
- * @GDK_DRAG_PROTO_NONE: no protocol.
* @GDK_DRAG_PROTO_WIN32_DROPFILES: The simple WM_DROPFILES protocol.
* @GDK_DRAG_PROTO_OLE2: The complex OLE2 DND protocol (not implemented).
* @GDK_DRAG_PROTO_LOCAL: Intra-application DND.
@@ -81,10 +81,10 @@ typedef enum
*/
typedef enum
{
+ GDK_DRAG_PROTO_NONE = 0,
GDK_DRAG_PROTO_MOTIF,
GDK_DRAG_PROTO_XDND,
GDK_DRAG_PROTO_ROOTWIN,
- GDK_DRAG_PROTO_NONE,
GDK_DRAG_PROTO_WIN32_DROPFILES,
GDK_DRAG_PROTO_OLE2,
GDK_DRAG_PROTO_LOCAL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]