Index: src/interface.c =================================================================== RCS file: /sfhome/cvs/dillo/dillo/src/interface.c,v retrieving revision 1.96 diff -p -u -r1.96 interface.c --- src/interface.c 11 Jun 2004 18:45:34 -0000 1.96 +++ src/interface.c 14 Jun 2004 19:41:32 -0000 @@ -352,6 +352,12 @@ static void Interface_entry_clear(GtkEnt gtk_widget_grab_focus(GTK_WIDGET(entry)); } +static gint Interface_entry_activate_callback(gpointer data) +{ + gtk_widget_activate(GTK_WIDGET(data)); + return FALSE; +} + /* * Paste the selected text into the entry, and activate it. */ @@ -366,8 +372,8 @@ static void Interface_entry_paste_select GDK_SELECTION_PRIMARY, gdk_atom_intern ("COMPOUND_TEXT", FALSE), GDK_CURRENT_TIME); - gtk_widget_activate(GTK_WIDGET(entry)); gtk_widget_grab_focus(GTK_WIDGET(entry)); + gtk_idle_add (Interface_entry_activate_callback, (gpointer)entry); } /*