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

« back to all changes in this revision

Viewing changes to modules/im/ximcp/imDefIm.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:
13
13
distribution of the software without specific, written prior permission.
14
14
Sun Microsystems, Inc., FUJITSU LIMITED and Sony Corporation makes no
15
15
representations about the suitability of this software for any purpose.  It
16
 
is provided "as is" without express or implied warranty. 
 
16
is provided "as is" without express or implied warranty.
17
17
 
18
18
Sun Microsystems Inc., FUJITSU LIMITED AND SONY CORPORATION DISCLAIMS ALL
19
19
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
22
22
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
23
23
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
24
24
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
25
 
OF THIS SOFTWARE. 
 
25
OF THIS SOFTWARE.
26
26
 
27
27
  Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
28
 
          Takashi Fujiwara     FUJITSU LIMITED 
 
28
          Takashi Fujiwara     FUJITSU LIMITED
29
29
                               fujiwara@a80.tech.yk.fujitsu.co.jp
30
30
          Makoto Wakamatsu     Sony Corporation
31
31
                               makoto@sm.sony.co.jp
109
109
 
110
110
    if(strncmp(str, XIM_SERVER_CATEGORY, category_len))
111
111
        return False;
112
 
 
 
112
 
113
113
    pp = &str[category_len];
114
114
 
115
115
    for(;;) {
145
145
 
146
146
    if(strncmp(address, XIM_LOCAL_CATEGORY, category_len))
147
147
        return (char*)NULL;
148
 
 
 
148
 
149
149
    pp = &address[category_len];
150
150
 
151
151
    for(;;) {
182
182
 
183
183
    if(strncmp(address, XIM_TRANSPORT_CATEGORY, category_len))
184
184
        return False;
185
 
 
 
185
 
186
186
    pp = &address[category_len];
187
187
 
188
188
    for(;;) {
257
257
    Xim                  im,
258
258
    Atom                 selection)
259
259
{
260
 
    Display             *display = im->core.display; 
 
260
    Display             *display = im->core.display;
261
261
    Atom                 locales, transport;
262
262
    char                *address;
263
263
    XLCd                 lcd;
367
367
        if( locale_name[i] != NULL )
368
368
            XFree( locale_name[i] );
369
369
    XDestroyWindow(display, window);
370
 
    return False; 
 
370
    return False;
371
371
}
372
372
 
373
373
Private Bool
374
374
_XimPreConnect(
375
375
    Xim             im)
376
376
{
377
 
    Display        *display = im->core.display; 
 
377
    Display        *display = im->core.display;
378
378
    Atom            imserver;
379
379
    Atom            actual_type;
380
380
    int             actual_format;
389
389
        return False;
390
390
 
391
391
    if(XGetWindowProperty(display, RootWindow(display, 0),
392
 
                        imserver, 0L, 1000000L, False, XA_ATOM, &actual_type, 
 
392
                        imserver, 0L, 1000000L, False, XA_ATOM, &actual_type,
393
393
                        &actual_format, &nitems, &bytes_after,
394
394
                        &prop_return) != Success)
395
395
        return False;
684
684
        }
685
685
    }
686
686
 
687
 
    if (!( buf_s[0] == im->private.proto.protocol_major_version 
 
687
    if (!( buf_s[0] == im->private.proto.protocol_major_version
688
688
        && buf_s[1] == im->private.proto.protocol_minor_version)) {
689
689
        if(reply != preply)
690
690
            Xfree(preply);
918
918
    buf_s[1] = 0;                               /* unused */
919
919
    len = sizeof(CARD16)                        /* sizeof imid */
920
920
        + sizeof(CARD16);                       /* sizeof unused */
921
 
  
 
921
 
922
922
    _XimSetHeader((XPointer)buf, XIM_CLOSE, 0, &len);
923
923
    if (!(_XimWrite(im, len, (XPointer)buf)))
924
924
        return False;