[Uim] Focus and cursor position shift handlings (bug #7729)

YAMAMOTO Kengo / YamaKen yamaken at bp.iij4u.or.jp
Mon Nov 6 14:44:59 EET 2006


At Mon, 06 Nov 2006 21:31:27 +0900,
yamaken at bp.iij4u.or.jp wrote:
> 
> I supposed following. But since it requires considerable changes
> of GTK+ and also involves hard discussions, it should be kept
> unimplemented for now. We should focus to more important things
> first.
> 
> gtk_a_text_widget_focus_in(widget, event)
> {
>   ...
>   if (last_text_widget)
>     gtk_im_context_displace(last_text_widget->im_context);
>   ...
>   gtk_im_context_focus_in(widget->im_context);
>   gtk_im_context_place(widget->im_context);
> }

Oops, it will not work. Maybe following code is closer than
above although incorrect.

gtk_internal_focus_in_somewhere()
{
  ...
  if (last_text_widget)
    gtk_im_context_displace(last_text_widget->im_context);
  ...
  gtk_a_text_widget_focus_in(w, e);
}

gtk_a_text_widget_focus_in(widget, event)
{
  ...
  gtk_im_context_focus_in(widget->im_context);
  gtk_im_context_place(widget->im_context);
}

------------------------------------------------
YAMAMOTO Kengo / YamaKen  yamaken at bp.iij4u.or.jp
FAMILY   Given / Nick



More information about the uim mailing list