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.
23 #include <gtk/gtkimmodule.h>
24 #include "gtkimcontextime.h"
28 static const GtkIMContextInfo ime_info = {
36 static const GtkIMContextInfo *info_list[] = {
41 im_module_init (GTypeModule * module)
43 gtk_im_context_ime_register_type (module);
52 im_module_list (const GtkIMContextInfo *** contexts, int *n_contexts)
54 *contexts = info_list;
55 *n_contexts = G_N_ELEMENTS (info_list);
59 im_module_create (const gchar * context_id)
61 g_return_val_if_fail (context_id, NULL);
63 if (!strcmp (context_id, "ime"))
64 return g_object_new (GTK_TYPE_IM_CONTEXT_IME, NULL);