summaryrefslogtreecommitdiff
path: root/tests/scrolling-performance.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scrolling-performance.c')
-rw-r--r--tests/scrolling-performance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/scrolling-performance.c b/tests/scrolling-performance.c
index 90be21b553..99b0fa47d9 100644
--- a/tests/scrolling-performance.c
+++ b/tests/scrolling-performance.c
@@ -105,8 +105,6 @@ main (int argc, char **argv)
GOptionContext *context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, options, NULL);
frame_stats_add_options (g_option_context_get_main_group (context));
- g_option_context_add_group (context,
- gtk_get_option_group (TRUE));
if (!g_option_context_parse (context, &argc, &argv, &error))
{
@@ -114,6 +112,8 @@ main (int argc, char **argv)
return 1;
}
+ gtk_init ();
+
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
frame_stats_ensure (GTK_WINDOW (window));
gtk_window_set_default_size (GTK_WINDOW (window), 800, 600);