blob: 11fafd51cee190b01b27c73e06be86d65aaaee95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-aa,v 1.5 2004/08/04 21:36:52 minskim Exp $$)C
--- src/fe-gtk/fkeys.c.orig 2004-07-01 11:28:43.000000000 -0500
+++ src/fe-gtk/fkeys.c
@@ -1368,9 +1368,14 @@ key_action_tab_comp (GtkWidget *t, GdkEv
prefix_len, skip_len = 0, is_nick, is_cmd = 0;
char buf[COMP_BUF], ent[CHANLEN], *postfix = NULL, *result, *ch;
GList *list = NULL, *tmp_list = NULL;
- const char *text = gtk_entry_get_text (GTK_ENTRY (t));
+ const char *text;
GCompletion *gcomp = NULL;
+ /* force the IM Context to reset */
+ gtk_editable_set_editable (GTK_EDITABLE (t), FALSE);
+ gtk_editable_set_editable (GTK_EDITABLE (t), TRUE);
+
+ text = GTK_ENTRY (t)->text;
if (text[0] == 0)
return 1;
|