From xcb at freedesktop.org Mon Nov 2 06:55:19 2009 From: xcb at freedesktop.org (XCB site) Date: Mon, 2 Nov 2009 06:55:19 -0800 (PST) Subject: [Xcb-commit] colorsandpixmaps.mdwn Message-ID: <20091102145519.ED2DB13009B@annarchy.freedesktop.org> colorsandpixmaps.mdwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commits: commit 8f8b43458ee37e2dade132d8ab05b98da1e610af Author: yuanyelele Date: Mon Nov 2 06:55:18 2009 -0800 diff --git a/colorsandpixmaps.mdwn b/colorsandpixmaps.mdwn index a8ecc4b..4a6d019 100644 --- a/colorsandpixmaps.mdwn +++ b/colorsandpixmaps.mdwn @@ -14,7 +14,7 @@ On today's more modern screens where one runs an X server with support for 16 mi ### 2. Allocating and freeing Color Maps -When you draw using XCB, you can choose to use the standard color map of the screen your window is displayed on, or you can allocate a new color map and apply it to a window. In the latter case, each time the mouse moves onto your window, the screen color map will be replaced by your window's color map, and you'll see all the other windows on screen change their colors into something quite bizzare. In fact, this is the effect you get with X applications that use the "-install" command line option. +When you draw using XCB, you can choose to use the standard color map of the screen your window is displayed on, or you can allocate a new color map and apply it to a window. In the latter case, each time the mouse moves onto your window, the screen color map will be replaced by your window's color map, and you'll see all the other windows on screen change their colors into something quite bizarre. In fact, this is the effect you get with X applications that use the "-install" command line option. In XCB, a color map is (as often in X) an Id: @@ -112,7 +112,7 @@ XCB supplies these two functions to fill it: xcb_alloc_color_cookie_t cookie, xcb_generic_error_t **e ); -The fuction xcb_alloc_color() takes the 3 RGB components as parameters (red, green and blue). Here is an example of using these functions: +The function `xcb_alloc_color()` takes the 3 RGB components as parameters (red, green and blue). Here is an example of using these functions: #include From peterh at kemper.freedesktop.org Mon Nov 9 07:16:48 2009 From: peterh at kemper.freedesktop.org (Peter Harris) Date: Mon, 9 Nov 2009 07:16:48 -0800 (PST) Subject: [Xcb-commit] atom Message-ID: <20091109151651.7773010050@kemper.freedesktop.org> atom/xcb_atom.h.m4 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) New commits: commit b4438c430fd4c1de72c4509858beb8e20b3eb6cd Author: Peter Harris Date: Fri Nov 6 15:52:42 2009 -0500 Deprecate namespaceless pre-defined atoms Signed-off-by: Peter Harris diff --git a/atom/xcb_atom.h.m4 b/atom/xcb_atom.h.m4 index 3579211..0eb57d2 100644 --- a/atom/xcb_atom.h.m4 +++ b/atom/xcb_atom.h.m4 @@ -40,7 +40,17 @@ char *xcb_atom_name_by_screen(const char *base, uint8_t screen); char *xcb_atom_name_by_resource(const char *base, uint32_t resource); char *xcb_atom_name_unique(const char *base, uint32_t id); -define(`DO', `extern const xcb_atom_t $1;')dnl +#ifndef X_DEPRECATED +#ifdef __GNUC__ +#define X_DEPRECATED __attribute__((deprecated)) +#else +#define X_DEPRECATED +#endif +#endif + +/* These constants are deprecated in favour of XCB_ATOM_* + from xproto.h */ +define(`DO', `extern const xcb_atom_t $1 X_DEPRECATED;')dnl include(atomlist.m4)`'dnl #ifdef __cplusplus From peterh at kemper.freedesktop.org Mon Nov 9 07:17:12 2009 From: peterh at kemper.freedesktop.org (Peter Harris) Date: Mon, 9 Nov 2009 07:17:12 -0800 (PST) Subject: [Xcb-commit] src Message-ID: <20091109151713.905F610050@kemper.freedesktop.org> src/xproto.xml | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) New commits: commit 09beaa8043fe94ee47caf5da43fc5e81df5fd9da Author: Peter Harris Date: Fri Nov 6 15:48:00 2009 -0500 Add pre-defined atoms to Atom enum Signed-off-by: Peter Harris diff --git a/src/xproto.xml b/src/xproto.xml index 5a056e8..b6521c3 100644 --- a/src/xproto.xml +++ b/src/xproto.xml @@ -588,6 +588,75 @@ authorization from the authors. 0 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +