projects
/
mim
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9fe8568
)
Small fix of unused variables, add todos
author
Alsor Zhou
<alsor.zhou@gmail.com>
Mon, 26 Oct 2009 07:39:04 +0000
(15:39 +0800)
committer
Alsor Zhou
<alsor.zhou@gmail.com>
Mon, 26 Oct 2009 07:39:04 +0000
(15:39 +0800)
src/ui/mim-immodule.c
patch
|
blob
|
history
diff --git
a/src/ui/mim-immodule.c
b/src/ui/mim-immodule.c
index
f459b62
..
0f7f534
100644
(file)
--- a/
src/ui/mim-immodule.c
+++ b/
src/ui/mim-immodule.c
@@
-16,18
+16,16
@@
GType type_mim = 0;
static gboolean
GType type_mim = 0;
static gboolean
-mim_filter_keypress(GtkIMContext *context, GdkEventKey *event)
+mim_filter_keypress(GtkIMContext *context,
+ GdkEventKey *event)
{
{
- gboolean is_initial;
- gint i;
-
if (event->type == GDK_KEY_RELEASE)
return FALSE;
/* don't filter key events with accelerator modifiers held down */
if (event->type == GDK_KEY_RELEASE)
return FALSE;
/* don't filter key events with accelerator modifiers held down */
- if (event->state & (gtk_accelerator_get_default_mod_mask()
- & ~GDK_SHIFT_MASK))
- return FALSE;
+// if (event->state & (gtk_accelerator_get_default_mod_mask()
+// & ~GDK_SHIFT_MASK))
+// return FALSE;
return TRUE;
}
return TRUE;
}
@@
-37,7
+35,7
@@
mim_set_client_window(GtkIMContext *context,
GdkWindow *window)
{
if (window == NULL) {
GdkWindow *window)
{
if (window == NULL) {
- /* create new client window */
+ /*TODO: create new client window */
//mim_mui_create_window();
}
}
//mim_mui_create_window();
}
}
@@
-104,6
+102,8
@@
im_module_init(GTypeModule *module)
{
g_debug("mim-immodule imported!");
mim_register_type(module);
{
g_debug("mim-immodule imported!");
mim_register_type(module);
+ /*TODO: Mask off the accelerators, except the CTRL (need for CTRL
+ * ^SPACE) */
}
void
}
void
@@
-123,7
+123,7
@@
im_module_list(const GtkIMContextInfo ***contexts,
GtkIMContext *
im_module_create(const gchar *context_id)
{
GtkIMContext *
im_module_create(const gchar *context_id)
{
- if (strcmp(context_id, "mim-n") == 0)
+ if (strcmp(context_id, "mim") == 0)
return GTK_IM_CONTEXT(g_object_new(type_mim, NULL));
else
return NULL;
return GTK_IM_CONTEXT(g_object_new(type_mim, NULL));
else
return NULL;