summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-07-23 16:43:06 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-07-23 16:43:06 +0800
commit975ea39af250fee96d8dbe2991ecaef094484ab7 (patch)
treeeb4490d9701809dbabd152b0e649736986adfd92 /x11
parent8aeddd1ae12262fcb3be4e41dd2c763890844970 (diff)
downloadibus-975ea39af250fee96d8dbe2991ecaef094484ab7.tar.gz
ibus-975ea39af250fee96d8dbe2991ecaef094484ab7.tar.xz
ibus-975ea39af250fee96d8dbe2991ecaef094484ab7.zip
Remove preedit related functions.
Diffstat (limited to 'x11')
-rw-r--r--x11/main.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/x11/main.c b/x11/main.c
index 16fe6e8..034764c 100644
--- a/x11/main.c
+++ b/x11/main.c
@@ -198,64 +198,6 @@ _xim_commit_cb (GtkIMContext *context, gchar *arg, gpointer data)
}
-#if 0
-static void
-_xim_preedit_start (X11IC *ic)
-{
- if (ic->preedit_start)
- return;
- ic->preedit_start = TRUE;
-
- IMPreeditCBStruct pcb;
-
- pcb.major_code = XIM_PREEDIT_START;
- pcb.minor_code = 0;
- pcb.connect_id = ic->connect_id;
- pcb.icid = ic->icid;
- pcb.todo.return_value = 0;
- IMCallCallback (_xims, (XPointer) & pcb);
-}
-
-static void
-_xim_preedit_start (X11IC *ic)
-{
- if (!ic->preedit_start)
- return;
- ic->preedit_start = FALSE;
-
- IMPreeditCBStruct pcb;
-
- pcb.major_code = XIM_PREEDIT_DONE;
- pcb.minor_code = 0;
- pcb.connect_id = ic->connect_id;
- pcb.icid = ic->icid;
- pcb.todo.return_value = 0;
- IMCallCallback (_xims, (XPointer) & pcb);
-}
-
-static void
-_xim_preedit_changed_cb (GtkIMContext *context, gpointer data)
-{
- char *clist[1];
- XTextProperty tp;
- IMCommitStruct cms;
-
- X11IC *ic = (X11IC *)data;
-
- gchar *preedit_string = NULL;
- gint cursor_pos = 0;
-
- gtk_im_context_get_preedit_string (ic->context, &preedit_string, NULL, &cursor_pos);
-
- if (preedit_string != NULL && preedit_string[0] != 0) {
- _xim_preedit_start (ic);
- }
- else {
- }
-
-}
-#endif
-
int
xim_create_ic (XIMS xims, IMChangeICStruct *call_data)
{