~ubuntu-branches/ubuntu/precise/ibus-chewing/precise-updates

« back to all changes in this revision

Viewing changes to src/IBusChewingEngine-def.c

  • Committer: Bazaar Package Importer
  • Author(s): LI Daobing
  • Date: 2009-05-30 13:20:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090530132034-slp2vk4vef7hg38b
Tags: 1.0.10.20090523-1
* new upstream release.
* debian/rules: use "dh clean"
* debian/clean: added.
* debian/copyright: (C) -> ©

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
#endif
127
127
}
128
128
 
 
129
/* Additional symbol buffer length */
129
130
static void maxChiSymbolLen_set_callback(PropertyContext *ctx, GValue *value){
130
131
#ifdef IBUS_CHEWING_MAIN
131
132
    IBusChewingEngine *engine=(IBusChewingEngine *) ctx->userData;
133
134
#endif
134
135
}
135
136
 
 
137
static void forceLowercaseEnglish_set_callback(PropertyContext *ctx, GValue *value){
 
138
#ifdef IBUS_CHEWING_MAIN
 
139
    IBusChewingEngine *engine=(IBusChewingEngine *) ctx->userData;
 
140
    engine->forceLowercaseEnglish=g_value_get_boolean(value);
 
141
#endif
 
142
}
 
143
 
136
144
static void syncCapsLockLocal_set_callback(PropertyContext *ctx, GValue *value){
137
145
#ifdef IBUS_CHEWING_MAIN
138
146
    IBusChewingEngine *engine=(IBusChewingEngine *) ctx->userData;
215
223
        N_("Adding phrases in the front."),
216
224
    },
217
225
    {G_TYPE_BOOLEAN, "easySymbolInput", "Editing", N_("Easy symbol input"),
218
 
        "0", NULL, NULL,  0, 1,
 
226
        "1", NULL, NULL,  0, 1,
219
227
        NULL, easySymbolInput_set_callback,
220
228
        0, 0, 0,
221
229
        N_("Easy symbol input."),
227
235
        N_("Escape key cleans the text in pre-edit-buffer."),
228
236
    },
229
237
    {G_TYPE_INT, "maxChiSymbolLen", "Editing", N_("Maximum Chinese characters"),
230
 
        "16", NULL, NULL,  8, 40,
 
238
        "20", NULL, NULL,  8, 40,
231
239
        NULL, maxChiSymbolLen_set_callback,
232
240
        0, 0, 0,
233
241
        N_("Maximum Chinese characters in pre-edit buffer, including inputing Zhuyin symbols"),
234
242
    },
 
243
    {G_TYPE_BOOLEAN, "forceLowercaseEnglish", "Editing", N_("Force lowercase in En mode"),
 
244
        "0", NULL, NULL,  0, 1,
 
245
        NULL, forceLowercaseEnglish_set_callback,
 
246
        0, 0, 0,
 
247
        N_("Ignore CapsLock status and input lowercase by default.\n\
 
248
It is handy if you wish to enter lowercase by default. Uppercase can still be inputted with Shift."),
 
249
    },
235
250
 
236
251
    /* Sync between CapsLock and IM */
237
252
    {G_TYPE_STRING, "syncCapsLockLocal", "Editing", N_("Sync between CapsLock and IM"),
278
293
        0, 0, 0,
279
294
        NULL,
280
295
    },
281
 
 
282
296
};
283
297
 
284
298