[Xcb] Problems with latest XCB in Ubuntu 11.10

Arnaud Fontaine arnaud at andesi.org
Tue Oct 18 23:52:43 PDT 2011


Hi,

Nicholas Allen <nick.allen at onlinehome.de> writes:

> I  have  upgraded to  Ubuntu  11.10  and  can  no longer  compile  our
> application  because of  some large  changes that  seem to  have taken
> place in the XCB library.
>
> The main problem is that  xcb_atom_get and xcb_atom_get_name no longer
> exist. I'm not sure what I should use to replace these functions.

Both  functions were  removed  because they  were synchronous[0][1]  and
useless as they are strictly equivalent to existing functions of libxcb.

Instead you should use: xcb_intern_atom() and xcb_intern_atom_reply() to
replace  xcb_atom_get()   (an  example   is  available   there[0]),  and
xcb_get_atom_name()    and    xcb_get_atom_name_reply()    to    replace
xcb_atom_get_name() (an example is available there[1]).

> Also I  can't find the xcb_property_handler  functions anywhere. These
> seem to have vanished (eg xcb_property_handlers_init).

Please have  a look at  this page[2],  it explains the  rationale behind
this removal.   You can also  have a look  at Awesome[3] or  Unagi[4] to
figure out how to update your code.

Hope that helps.

Regards,
-- 
Arnaud Fontaine

[0] http://cgit.freedesktop.org/xcb/util/commit/?id=00a192d88d96bc838366e1541eab80fa9ecd23b3
[1] http://cgit.freedesktop.org/xcb/util/commit/?id=4010e925c7afe0c38dc20a364bf6fc41c99f6da1
[2] http://cgit.freedesktop.org/xcb/util/commit/?id=38a5dc83a861d041f78257cf554d4ae4c75aece2
[3] http://git.naquadah.org/?p=awesome.git;a=blob;f=property.c;h=d5b030f62e7e2ed86ec3286aef5e69f91c25e6c4;hb=HEAD#l369
[4] http://rcs-git-viewer.duckcorp.org/?p=projects/unagi/unagi.git;a=blob;f=src/event.c;h=03325356c6a7b6fd3653a928ad69061db53e0911;hb=HEAD#l646


More information about the Xcb mailing list