mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
testsuite: Actually wait for focus
We were failing to properly iterate the main context here. Oops.
This commit is contained in:
parent
c57e5811f1
commit
585fb497c1
@ -208,14 +208,14 @@ load_ui_file (GFile *ui_file,
|
|||||||
timeout_handle_id = g_timeout_add (2000,
|
timeout_handle_id = g_timeout_add (2000,
|
||||||
quit_iteration_loop,
|
quit_iteration_loop,
|
||||||
&keep_running);
|
&keep_running);
|
||||||
while (keep_running)
|
while (keep_running && !gtk_window_is_active (GTK_WINDOW (window)))
|
||||||
{
|
g_main_context_iteration (NULL, TRUE);
|
||||||
if (!g_main_context_iteration (NULL, FALSE))
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (keep_running)
|
if (keep_running)
|
||||||
g_source_remove (timeout_handle_id);
|
g_source_remove (timeout_handle_id);
|
||||||
|
|
||||||
|
g_assert (gtk_window_is_active (GTK_WINDOW (window)));
|
||||||
|
|
||||||
if (ext)
|
if (ext)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user