~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/xkb/XKBSetGeom.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
fee is hereby granted, provided that the above copyright
9
9
notice appear in all copies and that both that copyright
10
10
notice and this permission notice appear in supporting
11
 
documentation, and that the name of Silicon Graphics not be 
12
 
used in advertising or publicity pertaining to distribution 
 
11
documentation, and that the name of Silicon Graphics not be
 
12
used in advertising or publicity pertaining to distribution
13
13
of the software without specific prior written permission.
14
 
Silicon Graphics makes no representation about the suitability 
 
14
Silicon Graphics makes no representation about the suitability
15
15
of this software for any purpose. It is provided "as is"
16
16
without any express or implied warranty.
17
17
 
18
 
SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 
19
 
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 
 
18
SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
 
19
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
20
20
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
21
 
GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
22
 
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 
23
 
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 
 
21
GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
 
22
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 
23
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
24
24
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
25
25
THE USE OR PERFORMANCE OF THIS SOFTWARE.
26
26
 
71
71
{
72
72
register int    i,size;
73
73
XkbPropertyPtr  prop;
74
 
    
 
74
 
75
75
    for (size=i=0,prop=geom->properties;i<geom->num_properties;i++,prop++) {
76
76
        size+= _SizeCountedString(prop->name);
77
77
        size+= _SizeCountedString(prop->value);
175
175
{
176
176
register int    i;
177
177
register XkbPropertyPtr prop;
178
 
    
 
178
 
179
179
    for (i=0,prop=geom->properties;i<geom->num_properties;i++,prop++) {
180
180
        wire= _WriteCountedString(wire,prop->name);
181
181
        wire= _WriteCountedString(wire,prop->value);
378
378
_WriteGeomKeyAliases(char *wire,XkbGeometryPtr geom)
379
379
{
380
380
register int sz;
381
 
    
 
381
 
382
382
    sz= geom->num_key_aliases*(XkbKeyNameLength*2);
383
383
    if (sz>0) {
384
384
        memcpy(wire,(char *)geom->key_aliases,sz);
445
445
    if ( (!geom) || (dpy->flags & XlibDisplayNoXkb) ||
446
446
        (!dpy->xkb_info && !XkbUseExtension(dpy,NULL,NULL)))
447
447
        return BadAccess;
448
 
    
 
448
 
449
449
    LockDisplay(dpy);
450
450
    GetReq(kbSetGeometry, req);
451
451
    req->reqType = dpy->xkb_info->codes->major_opcode;