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

« back to all changes in this revision

Viewing changes to src/xcms/cmsProp.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:
4
4
 *
5
5
 * Code and supporting documentation (c) Copyright 1990 1991 Tektronix, Inc.
6
6
 *      All Rights Reserved
7
 
 * 
 
7
 *
8
8
 * This file is a component of an X Window System-specific implementation
9
9
 * of Xcms based on the TekColor Color Management System.  Permission is
10
10
 * hereby granted to use, copy, modify, sell, and otherwise distribute this
12
12
 * that this copyright, permission, and disclaimer notice is reproduced in
13
13
 * all copies of this software and in supporting documentation.  TekColor
14
14
 * is a trademark of Tektronix, Inc.
15
 
 * 
 
15
 *
16
16
 * Tektronix makes no representation about the suitability of this software
17
17
 * for any purpose.  It is provided "as is" and with all faults.
18
 
 * 
 
18
 *
19
19
 * TEKTRONIX DISCLAIMS ALL WARRANTIES APPLICABLE TO THIS SOFTWARE,
20
20
 * INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21
21
 * PARTICULAR PURPOSE.  IN NO EVENT SHALL TEKTRONIX BE LIABLE FOR ANY
123
123
    long len = 6516;
124
124
    unsigned long nitems_ret, after_ret;
125
125
    Atom atom_ret;
126
 
    
127
 
    while (XGetWindowProperty (pDpy, w, property, 0, len, False, 
128
 
                               XA_INTEGER, &atom_ret, &format_ret, 
129
 
                               &nitems_ret, &after_ret, 
 
126
 
 
127
    while (XGetWindowProperty (pDpy, w, property, 0, len, False,
 
128
                               XA_INTEGER, &atom_ret, &format_ret,
 
129
                               &nitems_ret, &after_ret,
130
130
                               (unsigned char **)&prop_ret)) {
131
131
        if (after_ret > 0) {
132
132
            len += nitems_ret * (format_ret >> 3);
135
135
            break;
136
136
        }
137
137
    }
138
 
    if (format_ret == 0 || nitems_ret == 0) { 
 
138
    if (format_ret == 0 || nitems_ret == 0) {
139
139
        /* the property does not exist or is of an unexpected type */
140
140
        return(XcmsFailure);
141
141
    }