3 * Copyright (C) 2003 Takuro Ashie
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
26 #include "gtk/gtkintl.h"
27 #include "gtk/gtkimmodule.h"
28 #include "gtkimcontextime.h"
30 static const GtkIMContextInfo ime_info = {
38 static const GtkIMContextInfo *info_list[] = {
42 #ifndef INCLUDE_IM_ime
43 #define MODULE_ENTRY(type,function) G_MODULE_EXPORT type im_module_ ## function
45 #define MODULE_ENTRY(type, function) type _gtk_immodule_ime_ ## function
48 MODULE_ENTRY (void, init) (GTypeModule * module)
50 gtk_im_context_ime_register_type (module);
53 MODULE_ENTRY (void, exit) (void)
57 MODULE_ENTRY (void, list) (const GtkIMContextInfo *** contexts, int *n_contexts)
59 *contexts = info_list;
60 *n_contexts = G_N_ELEMENTS (info_list);
63 MODULE_ENTRY (GtkIMContext *, create) (const gchar * context_id)
65 g_return_val_if_fail (context_id, NULL);
67 if (!strcmp (context_id, "ime"))
68 return g_object_new (GTK_TYPE_IM_CONTEXT_IME, NULL);