~ubuntu-branches/ubuntu/hardy/uim/hardy

« back to all changes in this revision

Viewing changes to uim/uim-internal.h

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2007-04-21 03:46:09 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070421034609-gpcurkutp8vaysqj
Tags: 1:1.4.1-3
* Switch to dh_gtkmodules for the gtk 2.10 transition (Closes:
  #419318)
  - debian/control: Add ${misc:Depends} and remove libgtk2.0-bin on
    uim-gtk2.0.
  - debian/uim-gtk2.0.post{inst,rm}: Removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 
3
 
  Copyright (c) 2003-2006 uim Project http://uim.freedesktop.org/
 
3
  Copyright (c) 2003-2007 uim Project http://uim.freedesktop.org/
4
4
 
5
5
  All rights reserved.
6
6
 
76
76
  int is_enable;
77
77
 
78
78
  struct uim_code_converter *conv_if;
79
 
  void *conv;
 
79
  void *outbound_conv;
 
80
  void *inbound_conv;
80
81
  char *current_im_name;
81
82
  char *short_desc;
82
83
  char *encoding;
109
110
  void (*candidate_selector_select_cb)(void *ptr, int index);
110
111
  void (*candidate_selector_shift_page_cb)(void *ptr, int direction);
111
112
  void (*candidate_selector_deactivate_cb)(void *ptr);
112
 
  /* surrounding text */
113
 
  void (*request_surrounding_text_cb)(void *ptr);
114
 
  int (*delete_surrounding_text_cb)(void *ptr, int offset, int len);
 
113
  /* text acquisition */
 
114
  int (*acquire_text_cb)(void *ptr, enum UTextArea text_id, enum UTextOrigin origin, int former_len, int latter_len, char **former, char **latter);
 
115
  int (*delete_text_cb)(void *ptr, enum UTextArea text_id, enum UTextOrigin origin, int former_len, int latter_len);
115
116
  /* configuration changed */
116
117
  void (*configuration_changed_cb)(void *ptr);
117
118
  /* switch IM */
122
123
  int nr_psegs;
123
124
};
124
125
 
 
126
 
 
127
#if 0
 
128
/*
 
129
  Evaluating a S-expression in C involves the two problems, performance and
 
130
  sourcecode-simpleness. Traditional UIM_EVAL_FSTRINGn() satisfies the latter,
 
131
  but loses former. Manual sexp construction and evaluation by a sequence of
 
132
  function calling is an opponent. The two should co-exist until better
 
133
  solution has been implemented as a uim-scm API.  -- YamaKen 2005-07-30
 
134
 */
 
135
#define UIM_EVAL_SEXP_AS_STRING
 
136
#endif
 
137
 
125
138
#ifdef ENABLE_NLS
126
139
#define UIM_PREPARE_SAVING_TEXTDOMAIN_CODESET() \
127
140
    char *enc, *orig_encoding = NULL; \
271
284
extern int uim_nr_im;
272
285
extern char *uim_last_client_encoding;
273
286
 
 
287
void uim_internal_escape_string(char *str);
274
288
#ifdef __cplusplus
275
289
}
276
290
#endif