docs: fix docs for GDK_XID_TO_POINTER and GDK_POINTER_TO_XID

This commit is contained in:
William Jon McCann
2014-01-20 15:41:31 -05:00
parent 40b540c854
commit ca61e63b2c

View File

@ -54,15 +54,17 @@ Display *gdk_x11_get_default_xdisplay (void);
/**
* GDK_XID_TO_POINTER:
* @xid: XID to stuff into the pointer
*
* Converts an XID into a @gpointer. This is useful with data structures
* that use pointer arguments such as #GHashTable. Use GDK_POINTER_TO_XID()
* to convert the argument back to an XID.
*/
#define GDK_XID_TO_POINTER(pointer) GUINT_TO_POINTER(pointer)
#define GDK_XID_TO_POINTER(xid) GUINT_TO_POINTER(xid)
/**
* GDK_POINTER_TO_XID:
* @pointer: pointer to extract an XID from
*
* Converts a @gpointer back to an XID that was previously converted
* using GDK_XID_TO_POINTER().