/* * This file is a part of hildon tests * * Copyright (C) 2006, 2007 Nokia Corporation, all rights reserved. * * Contact: Michael Dominic Kostrzewa * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA * */ #include #include #include #include #include #include #include "test_suites.h" #include "check_utils.h" #include #define DEFAULT_NOTEBOOK_PAGES 3 /* -------------------- Fixtures -------------------- */ static HildonWizardDialog *wizard_dialog = NULL; static GtkWindow * showed_window = NULL; static void fx_setup_default_wizard_dialog () { int argc = 0; gint i; GtkNotebook *book; GtkBox *box[DEFAULT_NOTEBOOK_PAGES]; GtkLabel *label; gtk_init(&argc, NULL); showed_window = GTK_WINDOW(create_test_window()); /* Create a default notebook for the wizard */ book = GTK_NOTEBOOK(gtk_notebook_new()); /* Check notebook object has been created properly */ fail_if(!GTK_IS_NOTEBOOK(book), "hildon-wizard-dialog: Auxiliar notebook creation failed."); for(i=0; i