]> Pileus Git - ~andy/gtk/blob - gtk/gtkimmodule.h
New static function to set the background of all windows.
[~andy/gtk] / gtk / gtkimmodule.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2000 Red Hat Software
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __GTK_IM_MODULE_H__
21 #define __GTK_IM_MODULE_H__
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif /* __cplusplus */
26
27 #include <gtk/gtkimcontext.h>
28
29 typedef struct _GtkIMContextInfo GtkIMContextInfo;
30
31 struct _GtkIMContextInfo 
32 {
33   const gchar *context_id;
34   const gchar *context_name;
35   const gchar *domain;
36   const gchar *domain_dirname;
37   const gchar *default_locales;
38 };
39
40 /* Functions for use within GTK+
41  */
42 void          _gtk_im_module_list                   (const GtkIMContextInfo ***contexts,
43                                                     guint                    *n_contexts);
44 GtkIMContext *_gtk_im_module_create                 (const gchar             *context_id);
45 const gchar * _gtk_im_module_get_default_context_id (const gchar             *lang);
46
47 /* The following entry points are exported by each input method module
48  */
49
50 /*
51 void          im_module_list   (const GtkIMContextInfo ***contexts,
52                                 guint                    *n_contexts);
53 void          im_module_init   (GtkModule             *module);
54 void          im_module_exit   (void);
55 GtkIMContext *im_module_create (const gchar             *context_id);
56 */
57
58 #ifdef __cplusplus
59 }
60 #endif /* __cplusplus */
61
62 #endif /* __GTK_IM_MODULE_H__ */