gtk-demo: Clean up initial selection handling

We call selection_cb now, so we don't need to manually
do part of what that call does ahead of time.

This should have been noticed in 10bcbae68c.
This commit is contained in:
Matthias Clasen 2020-06-20 08:48:29 -04:00
parent b7ddf0b2e5
commit 677bfe6857

View File

@ -1035,8 +1035,6 @@ activate (GApplication *app)
listview = GTK_WIDGET (gtk_builder_get_object (builder, "listview"));
g_signal_connect (listview, "activate", G_CALLBACK (activate_cb), window);
load_file (gtk_demos[0].name, gtk_demos[0].filename);
listmodel = create_demo_model ();
treemodel = gtk_tree_list_model_new (FALSE,
G_LIST_MODEL (listmodel),