[uim-commit] r1140 - in trunk: gtk xim

ekato at freedesktop.org ekato at freedesktop.org
Sat Aug 6 22:41:15 EST 2005


Author: ekato
Date: 2005-08-06 05:41:13 -0700 (Sat, 06 Aug 2005)
New Revision: 1140

Modified:
   trunk/gtk/gtk-im-uim.c
   trunk/xim/helper.cpp
Log:
* xim/helper.cpp (helper_str_parse) : Hide caret state upon
  receiving "focus_in".
* gtk/gtk-im-uim.c (im_uim_parse_helper_str) : Ditto.


Modified: trunk/gtk/gtk-im-uim.c
===================================================================
--- trunk/gtk/gtk-im-uim.c	2005-08-06 12:14:48 UTC (rev 1139)
+++ trunk/gtk/gtk-im-uim.c	2005-08-06 12:41:13 UTC (rev 1140)
@@ -1013,6 +1013,7 @@
 	g_signal_emit_by_name(focused_context, "commit", lines[1]);
     } else if (g_str_has_prefix(str, "focus_in") == TRUE) {
       disable_focused_context = TRUE;
+      gtk_widget_hide(focused_context->caret_state_indicator);
       /* We shouldn't do "focused_context = NULL" here, because some
 	 window manager has some focus related bugs. */
     }

Modified: trunk/xim/helper.cpp
===================================================================
--- trunk/xim/helper.cpp	2005-08-06 12:14:48 UTC (rev 1139)
+++ trunk/xim/helper.cpp	2005-08-06 12:41:13 UTC (rev 1140)
@@ -175,6 +175,7 @@
 	    InputContext::deletefocusedContext();
 	    Canddisp *disp = canddisp_singleton();
 	    disp->hide();
+	    disp->hide_caret_state();
 	    return;
  	} else if (strcmp("im_list_get", line) == 0) {
 	    send_im_list();



More information about the uim-commit mailing list