5
#include <gtk/gtkimmodule.h>
7
#include "scim-bridge-client-imcontext-gtk.h"
9
static const GtkIMContextInfo scim_bridge_info =
13
/* Human readable name */
14
"SCIM Bridge Input Method",
15
/* Translation domain */
17
/* Dir for bindtextdomain (not strictly needed for "gtk+") */
19
/* Languages for which this module is the default */
23
static const GtkIMContextInfo *info_list[] =
28
/* Public functions */
29
void im_module_init (GTypeModule *type_module);
30
void im_module_exit (void);
31
void im_module_list (const GtkIMContextInfo ***contexts, int *context_count);
32
GtkIMContext *im_module_create (const gchar *context_id);
35
void im_module_init (GTypeModule *type_module)
37
scim_bridge_client_imcontext_register_type (type_module);
41
void im_module_exit (void)
43
scim_bridge_client_imcontext_shutdown ();
47
void im_module_list (const GtkIMContextInfo ***contexts, int *context_count)
49
*contexts = info_list;
50
*context_count = G_N_ELEMENTS (info_list);
54
GtkIMContext *im_module_create (const gchar *context_id)
56
if (strcmp (context_id, "scim-bridge") == 0) {
57
return scim_bridge_client_imcontext_new ();