ui.backend.gtk: make it so configure-im is called after realize (#1307)
gtk_im_context_set_client_window must be called with a realized window otherwise IM won't work, http://lists.maemo.org/pipermail//maemo-developers/2006-January/002337.htmldb4
parent
535422de49
commit
94f863f33e
|
@ -0,0 +1,7 @@
|
|||
USING: gtk.ffi help.markup help.syntax ;
|
||||
IN: ui.backend.gtk
|
||||
|
||||
HELP: configure-im
|
||||
{ $values { "win" GtkWindow } { "im" GtkIMContext } }
|
||||
{ $description "Configures the input methods of the window. Must only be run after the window hasbeen realized." }
|
||||
{ $see-also gtk_widget_realize } ;
|
|
@ -467,11 +467,11 @@ M:: gtk-ui-backend (open-window) ( world -- )
|
|||
gtk_window_set_wmclass
|
||||
|
||||
world configure-gl
|
||||
win gtk_widget_realize
|
||||
|
||||
win im configure-im
|
||||
win connect-user-input-signals
|
||||
win connect-win-state-signals
|
||||
|
||||
win gtk_widget_realize
|
||||
win world window-controls>> configure-window-controls
|
||||
|
||||
win gtk_widget_show_all ;
|
||||
|
|
Loading…
Reference in New Issue