summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testtreemodel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/testtreemodel.c b/tests/testtreemodel.c
index 0ef4617d3..fd01d7098 100644
--- a/tests/testtreemodel.c
+++ b/tests/testtreemodel.c
@@ -234,12 +234,7 @@ main (int argc, char *argv[])
GtkTreeModel *model;
GOptionContext *context;
- gtk_init (&argc, &argv);
-
- context = g_option_context_new ("");
- g_option_context_add_main_entries (context, entries, "");
- g_option_context_parse (context, &argc, &argv, NULL);
- g_option_context_free (context);
+ gtk_init_with_args (&argc, &argv, NULL, entries, NULL, NULL);
model = GTK_TREE_MODEL (gtk_list_store_new (2, G_TYPE_INT, G_TYPE_STRING));