* tests/check-hildon-banner.c
* tests/check_text.c
* tests/test_suites.h
Protect hildon-banner tests with #ifndef HILDON_DISABLE_DEPRECATED, as
were testing deprecated functions.
* examples/hildon-banner-example.c: typo on button3 type, that causes
a fail compiling with --with-examples but without --disable-deprecated
Missed commit in order to fix compilation using '--enable-fatal' and
'--disable-deprecated' (see previous commit)
2009-06-26 Alejandro Pinheiro <apinheiro@igalia.com>
2009-06-26 Alejandro Pinheiro <apinheiro@igalia.com>
+ * tests/check-hildon-banner.c
+ * tests/check_text.c
+ * tests/test_suites.h
+ Protect hildon-banner tests with #ifndef HILDON_DISABLE_DEPRECATED, as
+ were testing deprecated functions.
+ * examples/hildon-banner-example.c: typo on button3 type, that causes
+ a fail compiling with --with-examples but without --disable-deprecated
+
+ Missed commit in order to fix compilation using '--enable-fatal' and
+ '--disable-deprecated' (see previous commit)
+
+2009-06-26 Alejandro Pinheiro <apinheiro@igalia.com>
+
* examples/hildon-banner-example.c: Protect deprecated hildon-banner
functions with #ifndef HILDON_DISABLE_DEPRECATED
* examples/hildon-find-toolbar.c: Protect deprecated
* examples/hildon-banner-example.c: Protect deprecated hildon-banner
functions with #ifndef HILDON_DISABLE_DEPRECATED
* examples/hildon-find-toolbar.c: Protect deprecated
HildonProgram *program;
GtkWidget *window, *vbox, *button1;
#ifndef HILDON_DISABLE_DEPRECATED
HildonProgram *program;
GtkWidget *window, *vbox, *button1;
#ifndef HILDON_DISABLE_DEPRECATED
- GtkWidget *button2, button3;
+ GtkWidget *button2, *button3;
#endif
hildon_gtk_init (&argc, &argv);
#endif
hildon_gtk_init (&argc, &argv);
+#ifndef HILDON_DISABLE_DEPRECATED
#include <stdlib.h>
#include <check.h>
#include <stdlib.h>
#include <check.h>
/* ---------- Suite creation ---------- */
Suite *create_hildon_banner_suite()
{
/* ---------- Suite creation ---------- */
Suite *create_hildon_banner_suite()
{
/* Create test cases */
TCase *tc1 = tcase_create("show_animation");
/* Create test cases */
TCase *tc1 = tcase_create("show_animation");
- TCase *tc2 = tcase_create("show_animation");
+ TCase *tc2 = tcase_create("show_progress");
/* Create unit tests for hildon_banner_show_animation and add it to the suite */
tcase_add_checked_fixture(tc1, fx_setup_default_banner, fx_teardown_default_banner);
/* Create unit tests for hildon_banner_show_animation and add it to the suite */
tcase_add_checked_fixture(tc1, fx_setup_default_banner, fx_teardown_default_banner);
/* Return created suite */
return s;
}
/* Return created suite */
return s;
}
srunner_add_suite(sr, create_hildon_note_suite());
srunner_add_suite(sr, create_hildon_wizard_dialog_suite());
/* srunner_add_suite(sr, create_hildon_scroll_area_suite()); */
srunner_add_suite(sr, create_hildon_note_suite());
srunner_add_suite(sr, create_hildon_wizard_dialog_suite());
/* srunner_add_suite(sr, create_hildon_scroll_area_suite()); */
+#ifndef HILDON_DISABLE_DEPRECATED
+ /* HildonBanner is not deprecated, but all the functions tested in
+ this suite are deprecated*/
srunner_add_suite(sr, create_hildon_banner_suite());
srunner_add_suite(sr, create_hildon_banner_suite());
srunner_add_suite(sr, create_hildon_window_suite());
srunner_add_suite(sr, create_hildon_helper_suite());
srunner_add_suite(sr, create_hildon_picker_button_suite());
srunner_add_suite(sr, create_hildon_window_suite());
srunner_add_suite(sr, create_hildon_helper_suite());
srunner_add_suite(sr, create_hildon_picker_button_suite());
Suite *create_hildon_volumebar_suite(void);
Suite *create_hildon_volumebar_range_suite(void);
Suite *create_hildon_wizard_dialog_suite(void);
Suite *create_hildon_volumebar_suite(void);
Suite *create_hildon_volumebar_range_suite(void);
Suite *create_hildon_wizard_dialog_suite(void);
+#ifndef HILDON_DISABLE_DEPRECATED
+/* HildonBanner is not deprecated, but all the functions tested in
+ this suite are deprecated*/
Suite *create_hildon_banner_suite(void);
Suite *create_hildon_banner_suite(void);
Suite *create_hildon_font_selection_dialog_suite(void);
Suite *create_hildon_system_sound_suite(void);
Suite *create_hildon_scroll_area_suite(void);
Suite *create_hildon_font_selection_dialog_suite(void);
Suite *create_hildon_system_sound_suite(void);
Suite *create_hildon_scroll_area_suite(void);