Handbook
Glossary
configure-im ( win im -- )
Vocabulary
ui
.
backend
.
gtk2
Inputs
win
a
GtkWindow
im
a
GtkIMContext
Outputs
None
Word description
Configures the input methods of the window. Must only be run after the window has been realized.
See also
gtk_widget_realize
Definition
USING:
gtk2.ffi
threads
;
IN:
ui.backend.gtk2
::
configure-im
( win im -- )
im win
gtk_widget_get_window
gtk_im_context_set_client_window
im
f
gtk_im_context_set_use_preedit
im
"commit"
[
on-commit
yield
]
GtkIMContext:commit
win
connect-signal-with-data
im
"retrieve-surrounding"
[
on-retrieve-surrounding
yield
]
GtkIMContext:retrieve-surrounding
win
connect-signal-with-data
im
"delete-surrounding"
[
on-delete-surrounding
yield
]
GtkIMContext:delete-surrounding
win
connect-signal-with-data
win
"key-press-event"
[
im-on-key-event
yield
]
GtkWidget:key-press-event
im
connect-signal-with-data
win
"key-release-event"
[
im-on-key-event
yield
]
GtkWidget:key-release-event
im
connect-signal-with-data
win
"focus-in-event"
[
im-on-focus-in
yield
]
GtkWidget:focus-out-event
im
connect-signal-with-data
win
"focus-out-event"
[
im-on-focus-out
yield
]
GtkWidget:focus-out-event
im
connect-signal-with-data
win
"destroy"
[
im-on-destroy
yield
]
GtkObject:destroy
im
connect-signal-with-data
;