diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-12-28 08:53:22 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-12-28 18:57:55 -0500 |
commit | 1ae7240932cd1be164c5dc94f8767afa541f1e83 (patch) | |
tree | 322700689717e8ed5ddd2423111c88c6aef77743 /tests/scrolling-performance.c | |
parent | a3e2fc2df6ed9e896aa553a3acc1a5c363914d09 (diff) | |
download | gtk+-no-init-args.tar.gz |
Update callersno-init-args
Adapt all our tests and examples to the new initialization api.
Diffstat (limited to 'tests/scrolling-performance.c')
-rw-r--r-- | tests/scrolling-performance.c | 4 |
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); |