~ubuntu-branches/ubuntu/wily/scim/wily-proposed

« back to all changes in this revision

Viewing changes to extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.h

  • Committer: Package Import Robot
  • Author(s): Rolf Leggewie, Rolf Leggewie, Tz-Huan Huang
  • Date: 2012-06-30 11:21:42 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120630112142-a4cwzsr16dty8dk7
Tags: 1.4.14-1
[ Rolf Leggewie ]
* new upstream release 1.4.14
  - drop 32_scim-1.4.8-fix-dlopen.patch which has landed upstream
* bump compat level to 9
* debian/control: add Toni Mueller as co-maintainer
  Welcome aboard!

[ Tz-Huan Huang ]
* start shipping a couple of newly introduced im-module packages
* debian/rules:
  - simplify dh_auto_install override where upstream changes allow this
  - drop -fpermissive from CXXFLAGS, fixed upstream
* debian/README.*: update the documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * SCIM Bridge
 
3
 *
 
4
 * Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
 
5
 *
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Lesser General Public
 
9
 * License as published by the Free Software Foundation and 
 
10
 * appearing in the file LICENSE.LGPL included in the package of this file.
 
11
 * You can also redistribute it and/or modify it under the terms of 
 
12
 * the GNU General Public License as published by the Free Software Foundation and 
 
13
 * appearing in the file LICENSE.GPL included in the package of this file.
 
14
 *
 
15
 * This library is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
18
 */
 
19
 
 
20
/**
 
21
 * @file
 
22
 * @author Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
 
23
 * @brief This is the header for gtk imcontext of scim-bridge.
 
24
 */
 
25
 
 
26
 
 
27
#ifndef SCIMBRIDGECLIENTIMCONTEXTGTK_H_
 
28
#define SCIMBRIDGECLIENTIMCONTEXTGTK_H_
 
29
 
 
30
#include <gtk/gtk.h>
 
31
#if GTK_CHECK_VERSION(3, 0, 0)
 
32
#else
 
33
#include <gtk/gtkimcontext.h>
 
34
#endif
 
35
 
 
36
#include <gdk/gdk.h>
 
37
 
 
38
#include "scim-bridge.h"
 
39
#include "scim-bridge-client-imcontext.h"
 
40
 
 
41
#define GTK_TYPE_SCIM_CLIENT_IMCONTEXT  (scim_bridge_client_imcontext_get_type ())
 
42
#if GTK_CHECK_VERSION(3, 0, 0)
 
43
#define SCIM_BRIDGE_CLIENT_IMCONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContext))
 
44
#else
 
45
#define SCIM_BRIDGE_CLIENT_IMCONTEXT(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContext))
 
46
#endif
 
47
#define SCIM_BRIDGE_CLIENT_IMCONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContextClass))
 
48
#if GTK_CHECK_VERSION(3, 0, 0)
 
49
#define IS_SCIM_BRIDGE_CLIENT_IMCONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT))
 
50
#else
 
51
#define IS_SCIM_BRIDGE_CLIENT_IMCONTEXT(class) (GTK_CHECK_TYPE ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT))
 
52
#endif
 
53
#define IS_SCIM_BRIDGE_CLIENT_IMCONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCIM_CLIENT_IMCONTEXT))
 
54
#if GTK_CHECK_VERSION(3, 0, 0)
 
55
#define SCIM_BRIDGE_CLIENT_IMCONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContextClass))
 
56
#else
 
57
#define SCIM_BRIDGE_CLIENT_IMCONTEXT_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContextClass))
 
58
#endif
 
59
 
 
60
struct _ScimBridgeClientIMContextClass
 
61
{
 
62
    GtkIMContextClass parent_class;
 
63
};
 
64
 
 
65
/**
 
66
 * IMContext class for gtk client.
 
67
 */
 
68
typedef struct _ScimBridgeClientIMContextClass ScimBridgeClientIMContextClass;
 
69
 
 
70
/**
 
71
 * Initialize IMContext class itself.
 
72
 */
 
73
void scim_bridge_client_imcontext_static_initialize ();
 
74
 
 
75
/**
 
76
 * Finalize IMContext class itself.
 
77
 */
 
78
void scim_bridge_client_imcontext_static_finalize ();
 
79
 
 
80
/**
 
81
 * The connection with the agent is opened.
 
82
 */
 
83
void scim_bridge_client_imcontext_connection_opened ();
 
84
 
 
85
/**
 
86
 * The connection with the agent is closed.
 
87
 */
 
88
void scim_bridge_client_imcontext_connection_closed ();
 
89
 
 
90
/**
 
91
 * Allocate an IMContext.
 
92
 *
 
93
 * @return new IMContext.
 
94
 */
 
95
GtkIMContext *scim_bridge_client_imcontext_new ();
 
96
 
 
97
/**
 
98
 * Get the type value of IMContexts.
 
99
 *
 
100
 * @return The type value of IMContexts.
 
101
 */
 
102
GType scim_bridge_client_imcontext_get_type ();
 
103
 
 
104
/**
 
105
 * Register the type value for IMContexts.
 
106
 *
 
107
 * @param type_module The type module.
 
108
 */
 
109
void scim_bridge_client_imcontext_register_type (GTypeModule *type_module);
 
110
 
 
111
#endif                                            /*SCIMBRIDGECLIENTIMCONTEXTGTK_H_*/