2 * Copyright (C) 2006 Nokia Corporation.
4 * Contact: Luc Pionchon <luc.pionchon@nokia.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22 #include <gtk/gtkmain.h>
24 #include "check_utils.h"
25 #include "hildon-window.h"
28 * Creates a window of a fixed, well known size
33 GtkWidget *window = NULL;
35 window = hildon_window_new ();
36 /* gtk_window_resize (GTK_WINDOW (window), TEST_WINDOW_WIDTH, TEST_WINDOW_HEIGHT); */
42 * Wrapper to gtk_widget_show, that call to gtk_events_pending serving events.
44 void show_test_window(GtkWidget * window)
47 gtk_widget_show (window);
49 while (gtk_events_pending ())
51 gtk_main_iteration ();
56 * Wrapper to gtk_widget_show_all, that call to gtk_events_pending serving events.
58 void show_all_test_window(GtkWidget * window)
61 gtk_widget_show_all (window);
63 while (gtk_events_pending ())
65 gtk_main_iteration ();