Changeset 205

Show
Ignore:
Timestamp:
01/17/08 13:28:12 (10 months ago)
Author:
conrad
Message:

Add basic handling of COMPOUND_TEXT.
We do not currently serve COMPOUND_TEXT; we can retrieve it but do not
perform charset conversion.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • xsel/trunk/xsel.c

    r200 r205  
    6262static Atom text_atom; /* The TEXT atom */ 
    6363static Atom utf8_atom; /* The UTF8 atom */ 
     64static Atom compound_text_atom; /* The COMPOUND_TEXT atom */ 
    6465 
    6566/* Number of selection targets served by this. 
    66  * (MULTIPLE, INCR, TARGETS, TIMESTAMP, DELETE, TEXT, UTF8_STRING and STRING) */ 
     67 * (MULTIPLE, INCR, TARGETS, TIMESTAMP, DELETE, TEXT, UTF8_STRING and STRING) 
     68 * NB. We do not currently serve COMPOUND_TEXT; we can retrieve it but do not 
     69 * perform charset conversion. 
     70 */ 
    6771#define MAX_NUM_TARGETS 8 
    6872static int NUM_TARGETS; 
     
    627631          keep_waiting = False; 
    628632        } else if (target != utf8_atom && target != XA_STRING && 
     633                   target != compound_text_atom && 
    629634                   request_target != delete_atom) { 
    630635          /* Report non-TEXT atoms */ 
     
    20122017  NUM_TARGETS++; 
    20132018 
     2019  /* Get the COMPOUND_TEXT atom. 
     2020   * NB. We do not currently serve COMPOUND_TEXT; we can retrieve it but 
     2021   * do not perform charset conversion. 
     2022   */ 
     2023  compound_text_atom = XInternAtom (display, "COMPOUND_TEXT", False); 
     2024 
    20142025  /* handle selection keeping and exit if so */ 
    20152026  if (do_keep) {