]> spindle.queued.net Git - midori/commitdiff
Look for the history treeview at the second child position
authorChristian Dywan <christian@twotoasts.de>
Mon, 8 Feb 2010 22:16:14 +0000 (23:16 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 10 Feb 2010 18:52:12 +0000 (19:52 +0100)
tests/history.c

index edf4b2574fd7a372da9b1fd0ef742a88c92ec473..dfc834880e40f4f7dd2a591cf7be49b26ea13143 100644 (file)
@@ -82,7 +82,7 @@ history_panel_fill (void)
     g_assert (value == array);
     history = g_object_new (MIDORI_TYPE_HISTORY, "app", app, NULL);
     children = gtk_container_get_children (GTK_CONTAINER (history));
-    treeview = g_list_nth_data (children, 0);
+    treeview = g_list_nth_data (children, 1);
     g_list_free (children);
     g_assert (GTK_IS_TREE_VIEW (treeview));
     model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview));