]> Pileus Git - ~andy/gtk/commitdiff
API: gdk: Make GDK_DRAG_PROTOCOL_NONE equal to 0
authorBenjamin Otte <otte@redhat.com>
Tue, 1 Feb 2011 16:29:33 +0000 (17:29 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 1 Feb 2011 17:51:57 +0000 (18:51 +0100)
THis way, we can do comparisons like "if (protocol)"

gdk/gdkdnd.h

index 06c5f31ccfd11acd4801fad7d5e5b95abb39cb61..5840569449dbb8a383aaafa1815dc505211bd34a 100644 (file)
@@ -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