+2012-02-21 Philippe Normand <pnormand@igalia.com>
+
+ Fix one more GTK+ unit test after r108278.
+
+ Reviewed by Alejandro G. Castro.
+
+ * tests/testkeyevents.c:
+ (map_event_cb): No longer grab focus here.
+ (setup_keyevent_test): Grabbing focus here seems to be late enough in the process.
+
2012-02-20 Martin Robinson <mrobinson@igalia.com>
Fix GTK+ unit tests after r108281.
gboolean map_event_cb(GtkWidget *widget, GdkEvent* event, gpointer data)
{
- gtk_widget_grab_focus(widget);
KeyEventFixture* fixture = (KeyEventFixture*)data;
webkit_web_view_load_string(fixture->webView, fixture->info->page,
"text/html", "utf-8", "file://");
g_signal_connect(fixture->window, "map-event",
G_CALLBACK(map_event_cb), fixture);
+ gtk_widget_grab_focus(GTK_WIDGET(fixture->webView));
gtk_widget_show(fixture->window);
gtk_widget_show(GTK_WIDGET(fixture->webView));
gtk_window_present(GTK_WINDOW(fixture->window));