~ubuntu-branches/ubuntu/trusty/hime/trusty

« back to all changes in this revision

Viewing changes to src/gtk-im/gtkimcontexthime.h

  • Committer: Package Import Robot
  • Author(s): Yao Wei (魏銘廷)
  • Date: 2012-01-14 00:24:08 UTC
  • Revision ID: package-import@ubuntu.com-20120114002408-e79gagbeg1rt8npv
Tags: upstream-0.9.9
Import upstream version 0.9.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.1 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 Free Software
 
16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 */
 
18
 
 
19
#include <gtk/gtk.h>
 
20
#if !GTK_CHECK_VERSION(3,0,0) // latest GTK+ 2.x can drop these, keep them for older GTK+ 2.x
 
21
#include <gtk/gtkimcontext.h>
 
22
#endif
 
23
#include "gdk/gdkx.h"
 
24
#include "../hime-gtk-compatible.h"
 
25
 
 
26
extern GType gtk_type_im_context_hime;
 
27
 
 
28
#define GTK_TYPE_IM_CONTEXT_HIME              gtk_type_im_context_hime
 
29
#define GTK_IM_CONTEXT_HIME(obj)              (GTK_CHECK_CAST ((obj), GTK_TYPE_IM_CONTEXT_HIME, GtkIMContextHIME))
 
30
#define GTK_IM_CONTEXT_HIME_CLASS(klass)      (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT_HIME, GtkIMContextHIMEClass))
 
31
#define GTK_IS_IM_CONTEXT_HIME(obj)           (GTK_CHECK_TYPE ((obj), GTK_TYPE_IM_CONTEXT_HIME))
 
32
#define GTK_IS_IM_CONTEXT_HIME_CLASS(klass)   (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT_HIME))
 
33
#define GTK_IM_CONTEXT_HIME_GET_CLASS(obj)    (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT_HIME, GtkIMContextHIMEClass))
 
34
 
 
35
typedef struct _GtkIMContextHIME       GtkIMContextHIME;
 
36
typedef struct _GtkIMContextHIMEClass  GtkIMContextHIMEClass;
 
37
 
 
38
struct _GtkIMContextHIMEClass
 
39
{
 
40
  GtkIMContextClass parent_class;
 
41
};
 
42
 
 
43
void gtk_im_context_hime_register_type (GTypeModule *type_module);
 
44
GtkIMContext *gtk_im_context_hime_new (void);
 
45
 
 
46
void gtk_im_context_hime_shutdown (void);