comparison src/glyphs-x.c @ 446:1ccc32a20af4 r21-2-38

Import from CVS: tag r21-2-38
author cvs
date Mon, 13 Aug 2007 11:37:21 +0200
parents 576fb035e263
children 3078fd1074e8
comparison
equal deleted inserted replaced
445:34f3776fcf0e 446:1ccc32a20af4
2952 "autodetect"); 2952 "autodetect");
2953 2953
2954 IIFORMAT_HAS_METHOD (autodetect, validate); 2954 IIFORMAT_HAS_METHOD (autodetect, validate);
2955 IIFORMAT_HAS_METHOD (autodetect, normalize); 2955 IIFORMAT_HAS_METHOD (autodetect, normalize);
2956 IIFORMAT_HAS_METHOD (autodetect, possible_dest_types); 2956 IIFORMAT_HAS_METHOD (autodetect, possible_dest_types);
2957 /* #### autodetect is flawed IMO:
2958 1. It makes the assumption that you can detect whether the user
2959 wanted a cursor or a string based on the data, since the data is a
2960 string you have to prioritise cursors. Instead we will force users
2961 to pick the appropriate image type, this is what we do under
2962 MS-Windows anyway.
2963 2. It doesn't fit with the new domain model - you cannot tell which
2964 domain it needs to be instantiated in until you've actually
2965 instantiated it, which mucks up caching.
2966 3. It only copes with cursors and strings which seems bogus. */
2967 IIFORMAT_HAS_SHARED_METHOD (autodetect, governing_domain, subwindow);
2957 IIFORMAT_HAS_METHOD (autodetect, instantiate); 2968 IIFORMAT_HAS_METHOD (autodetect, instantiate);
2958 IIFORMAT_VALID_CONSOLE (x, autodetect); 2969 IIFORMAT_VALID_CONSOLE (x, autodetect);
2959 2970
2960 IIFORMAT_VALID_KEYWORD (autodetect, Q_data, check_valid_string); 2971 IIFORMAT_VALID_KEYWORD (autodetect, Q_data, check_valid_string);
2961 } 2972 }