+2008-10-30 Alejandro G. Castro <alex@igalia.com>
+
+ Fremantle deprecated widgets marked, HILDON_DISABLE_DEPRECATED
+
+ * configure.ac: Added an AM_CONDITIONAL in order to use in the
+ Makefile.am, that way we can choose not to compile some examples
+ and tests of the deprecated widgets.
+
+ * examples/Makefile.am: Divided the sources in deprecated and
+ non-deprecated.
+
+ * src/Makefile.am: Added undef statement of the deprecated
+ symbol to the enums file generation process.
+
+ * src/hildon-color-chooser-dialog.c
+ * src/hildon-color-chooser-dialog.h
+ * src/hildon-color-button.c
+ * src/hildon-color-button.h
+ * src/hildon-color-chooser.c
+ * src/hildon-color-chooser.h
+ * src/hildon-controlbar.c
+ * src/hildon-controlbar.h
+ * src/hildon-date-editor.c
+ * src/hildon-date-editor.h
+ * src/hildon-hvolumebar.c
+ * src/hildon-hvolumebar.h
+ * src/hildon-private.c
+ * src/hildon-private.h
+ * src/hildon-range-editor.c
+ * src/hildon-range-editor.h
+ * src/hildon-seekbar.c
+ * src/hildon-seekbar.h
+ * src/hildon-time-editor.c
+ * src/hildon-time-editor.h
+ * src/hildon-time-picker.c
+ * src/hildon-time-picker.h
+ * src/hildon-volumebar.c
+ * src/hildon-volumebar.h
+ * src/hildon-vvolumebar.c
+ * src/hildon-vvolumebar.h
+ * src/hildon-bread-crumb-trail.h
+ * src/hildon-bread-crumb-trail.c
+ * src/hildon-calendar-popup.c
+ * src/hildon-calendar-popup.h
+ * src/hildon-weekday-picker.c:
+ * src/hildon-weekday-picker.h:
+ * src/hildon-bread-crumb-widget.c:
+ * src/hildon-bread-crumb-widget.h:
+ * src/hildon-bread-crumb.c:
+ * src/hildon-bread-crumb.h:
+ * src/hildon-calendar.c:
+ * src/hildon-calendar.h:
+ * src/hildon-caption.c:
+ * src/hildon-code-dialog.c:
+ * src/hildon-code-dialog.h:
+ * src/hildon-font-selection-dialog.c:
+ * src/hildon-font-selection-dialog.h:
+ * src/hildon-get-password-dialog.c:
+ * src/hildon-get-password-dialog.h:
+ * src/hildon-login-dialog.c:
+ * src/hildon-login-dialog.h:
+ * src/hildon-number-editor.c:
+ * src/hildon-number-editor.h:
+ * src/hildon-set-password-dialog.c:
+ * src/hildon-set-password-dialog.h:
+ * src/hildon-sort-dialog.c:
+ * src/hildon-sort-dialog.h: This is the list of deprecated
+ widgets.
+
+ * src/hildon-touch-selector.c:
+ * src/hildon-window.c: Added undef statement to avoid compilation
+ warnings
+
+ * tests/Makefile.am: Divided the sources in deprecated and
+ non-deprecated.
+
+ * tests/check_test.c,
+ (configure_tests): Marked the deprecated code that was adding
+ suites with deprecated tests.
+
2008-10-30 Claudio Saavedra <csaavedra@igalia.com>
* src/hildon-touch-selector.c: (_default_print_func): Do not
DISABLE_DEPRECATED="-DHILDON_DISABLE_DEPRECATED"
fi
+AM_CONDITIONAL([HILDON_DISABLE_DEPRECATED], test "x$enable_deprecated" = "xno")
+
# Check support (c unit test)
PKG_CHECK_MODULES(CHECK, check , [BUILD_TESTS="yes"], [BUILD_TESTS="no"])
AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes")
MAINTAINERCLEANFILES = Makefile.in
if BUILD_EXAMPLES
-noinst_PROGRAMS = hildon-window-example \
+EXAMPLES = hildon-window-example \
hildon-banner-example \
hildon-banner-long-example \
hildon-caption-example \
- hildon-weekday-picker-example \
- hildon-sort-dialog-example \
- hildon-controlbar-example \
hildon-note-example \
- hildon-time-picker-example \
- hildon-color-chooser-example \
- hildon-color-button-example \
- hildon-login-dialog-example \
- hildon-time-editor-example \
hildon-icon-sizes-example \
hildon-insensitive-example \
- hildon-get-password-dialog-example \
- hildon-set-password-dialog-example \
hildon-window-menu-example \
hildon-window-cmn-menu-example \
- hildon-vvolumebar-example \
hildon-toolbar-example \
- hildon-code-dialog-example \
- hildon-hvolumebar-example \
- hildon-hvolumebar-insensitive-example \
- hildon-hvolumebar-insensitive-map-example \
hildon-lookup-example \
- hildon-number-editor-example \
hildon-scrolled-window-example \
- hildon-color-pop-example \
- hildon-thumb-scrollbar-example \
- hildon-date-editor-example \
- hildon-bread-crumb-trail-example \
hildon-finger-example \
- hildon-seekbar-example \
hildon-find-toolbar-example \
hildon-edit-toolbar-example \
hildon-wizard-dialog-example \
- hildon-hvolumebar-timer-example \
- hildon-toolbar-seekbar-example \
hildon-pannable-area-example \
hildon-pannable-area-example-2 \
hildon-pannable-area-example-3 \
hildon-touch-selector-multi-cells-example \
hildon-touch-selector-entry-example
+DEPRECATED_EXAMPLES = hildon-weekday-picker-example \
+ hildon-sort-dialog-example \
+ hildon-controlbar-example \
+ hildon-time-picker-example \
+ hildon-color-chooser-example \
+ hildon-color-button-example \
+ hildon-login-dialog-example \
+ hildon-time-editor-example \
+ hildon-get-password-dialog-example \
+ hildon-set-password-dialog-example \
+ hildon-vvolumebar-example \
+ hildon-code-dialog-example \
+ hildon-hvolumebar-example \
+ hildon-hvolumebar-insensitive-example \
+ hildon-hvolumebar-insensitive-map-example \
+ hildon-number-editor-example \
+ hildon-color-pop-example \
+ hildon-thumb-scrollbar-example \
+ hildon-date-editor-example \
+ hildon-bread-crumb-trail-example \
+ hildon-seekbar-example \
+ hildon-toolbar-seekbar-example \
+ hildon-hvolumebar-timer-example
+
+
+if HILDON_DISABLE_DEPRECATED
+noinst_PROGRAMS = $(EXAMPLES)
+else
+noinst_PROGRAMS = $(EXAMPLES) \
+ $(DEPRECATED_EXAMPLES)
+endif
+
# Hildon window
hildon_window_example_LDADD = $(HILDON_OBJ_LIBS)
hildon_window_example_CFLAGS = $(HILDON_OBJ_CFLAGS)
hildon-enum-types.c: @REBUILD@ $(libhildon_$(API_VERSION_MAJOR)_public_headers) Makefile
(cd $(srcdir) && glib-mkenums \
+ --fhead "#undef HILDON_DISABLE_DEPRECATED\n" \
--fhead "#include \"hildon.h\"\n" \
--fhead "#include <glib-object.h>" \
--fprod "\n/* enumerations from \"@filename@\" */" \
* implemented if needed. See #HildonBreadCrumb for more details.
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#include <gdk/gdkkeysyms.h>
#include "hildon-marshalers.h"
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_BREAD_CRUMB_TRAIL_H__
#define __HILDON_BREAD_CRUMB_TRAIL_H__
#endif
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#include "hildon-bread-crumb-widget.h"
#include "hildon-defines.h"
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_BREAD_CRUMB_WIDGET_H__
#define __HILDON_BREAD_CRUMB_WIDGET_H__
G_END_DECLS
#endif
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* for the #HildonBreadCrumbTrail widget.
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#include "hildon-bread-crumb.h"
static void hildon_bread_crumb_base_init (gpointer g_class);
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_BREAD_CRUMB_H__
#define __HILDON_BREAD_CRUMB_H__
G_END_DECLS
#endif
+
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_CALENDAR_POPUP_H__
#define __HILDON_CALENDAR_POPUP_H__
G_END_DECLS
#endif /* __HILDON_CALENDAR_POPUP_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_CALENDAR_H__
#define __HILDON_CALENDAR_H__
G_END_DECLS
#endif /* __HILDON_CALENDAR_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
/* FIXME We need property access in this widget */
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_CODE_DIALOG_H__
#define __HILDON_CODE_DIALOG_H__
G_END_DECLS
#endif /* __HILDON_CODE_DIALOG_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_COLOR_BUTTON_H__
#define __HILDON_COLOR_BUTTON_H__
#endif /* __HILDON_COLOR_BUTTON_H__ */
-
-
-
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_COLOR_CHOOSER_DIALOG_H__
#define __HILDON_COLOR_CHOOSER_DIALOG_H__
GdkColor *color);
#endif /* __HILDON_COLOR_CHOOSER_DIALOG_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#include "hildon-color-chooser.h"
#include "hildon-color-chooser-private.h"
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
#ifndef __HILDON_COLOR_CHOOSER_H__
#define __HILDON_COLOR_CHOOSER_H__
GdkColor *color);
#endif /* __HILDON_COLOR_CHOOSER_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_CONTROLBAR_H__
#define __HILDON_CONTROLBAR_H__
G_END_DECLS
#endif /* __HILDON_CONTROLBAR_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_DATE_EDITOR_H__
#define __HILDON_DATE_EDITOR_H__
G_END_DECLS
#endif /* __HILDON_DATE_EDITOR_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* size, style, etc. Users can also preview text in the selected font.
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
* 02110-1301 USA
*
*/
+
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_FONT_SELECTION_DIALOG_H__
#define __HILDON_FONT_SELECTION_DIALOG_H__
G_END_DECLS
#endif /* __HILDON_FONT_SELECTION_DIALOG_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* </example>
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_GET_PASSWORD_DIALOG_H__
#define __HILDON_GET_PASSWORD_DIALOG_H__
G_END_DECLS
#endif /* __HILDON_GET_PASSWORD_DIALOG_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#include "hildon-hvolumebar.h"
#include "hildon-volumebar.h"
#include "hildon-volumebar-range.h"
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_HVOLUMEBAR_H__
#define __HILDON_HVOLUMEBAR_H__
G_END_DECLS
#endif /* __HILDON_HVOLUMEBAR_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* password.
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_NAME_PASSWORD_DIALOG_H__
#define __HILDON_NAME_PASSWORD_DIALOG_H__
G_END_DECLS
#endif /* __HILDON_LOGIN_DIALOG_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* </example>
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_NUMBER_EDITOR_H__
#define __HILDON_NUMBER_EDITOR_H__
G_END_DECLS
#endif /* __HILDON_NUMBER_EDITOR_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_PRIVATE_H__
#define __HILDON_PRIVATE_H__
G_END_DECLS
#endif /* __HILDON_PRIVATE_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* </example>
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_RANGE_EDITOR_H__
#define __HILDON_RANGE_EDITOR_H__
G_END_DECLS
#endif /* __HILDON_RANGE_EDITOR_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
+
* a stream.
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_SEEKBAR_H__
#define __HILDON_SEEKBAR_H__
G_END_DECLS
#endif /* __HILDON_SEEKBAR_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* change a password that cannot be removed.
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_SET_PASSWORD_DIALOG_H__
#define __HILDON_SET_PASSWORD_DIALOG_H__
G_END_DECLS
#endif /* __HILDON_SET_PASSWORD_DIALOG_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* </example>
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_SORT_DIALOG_H__
#define __HILDON_SORT_DIALOG_H__
G_END_DECLS
#endif /* __HILDON_SORT_DIALOG_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
*
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_TIME_EDITOR_H__
#define __HILDON_TIME_EDITOR_H__
G_END_DECLS
#endif /* __HILDON_TIME_EDITOR_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* </example>
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_TIME_PICKER_H__
#define __HILDON_TIME_PICKER_H__
G_END_DECLS
#endif /* __HILDON_TIME_PICKER_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* column.
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
* the volume when users click the mute icon.
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_VOLUMEBAR_H__
#define __HILDON_VOLUMEBAR_H__
G_END_DECLS
#endif /* __HILDON_VOLUMEBAR_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* </example>
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_VVOLUMEBAR_H__
#define __HILDON_VVOLUMEBAR_H__
G_END_DECLS
#endif /* __HILDON_VVOLUMEBAR_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
problem, we addjust GDate days numbering to be same as locale
numbering */
+#undef HILDON_DISABLE_DEPRECATED
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_WEEKDAY_PICKER_H__
#define __HILDON_WEEKDAY_PICKER_H__
G_END_DECLS
#endif /* __HILDON_WEEKDAY_PICKER_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
* </example>
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#include <memory.h>
#include <string.h>
#include <strings.h>
noinst_PROGRAMS = check_test
-check_test_SOURCES = check_test.c \
+TESTS = check_test.c \
check_utils.c \
- check-hildon-range-editor.c \
+ check-hildon-caption.c \
+ check-hildon-helper.c \
+ check-hildon-note.c \
+ check-hildon-banner.c \
+ check-hildon-wizard-dialog.c \
+ check-hildon-find-toolbar.c \
+ check-hildon-window.c \
+ check-hildon-program.c
+
+
+DEPRECATED_TESTS = check-hildon-range-editor.c \
check-hildon-date-editor.c \
check-hildon-time-editor.c \
check-hildon-weekday-picker.c \
check-hildon-time-picker.c \
check-hildon-number-editor.c \
check-hildon-calendar-popup.c \
- check-hildon-caption.c \
- check-hildon-helper.c \
check-hildon-code-dialog.c \
- check-hildon-find-toolbar.c \
check-hildon-sort-dialog.c \
- check-hildon-note.c \
check-hildon-volumebar.c \
check-hildon-volumebar-range.c \
- check-hildon-banner.c \
- check-hildon-wizard-dialog.c \
check-hildon-font-selection-dialog.c \
- check-hildon-window.c \
- check-hildon-program.c \
check-hildon-color-button.c \
check-hildon-color-chooser.c
+if HILDON_DISABLE_DEPRECATED
+check_test_SOURCES = $(TESTS)
+else
+check_test_SOURCES = $(TESTS) \
+ $(DEPRECATED_TESTS)
+endif
+
check_test_LDADD = $(HILDON_OBJ_LIBS)
check_test_LDFLAGS = -module -avoid-version
check_test_CFLAGS = $(HILDON_OBJ_CFLAGS)
SRunner *sr;
/* Create srunner object with the first test suite */
- sr = srunner_create(create_hildon_range_editor_suite());
+
+ sr = srunner_create(create_hildon_caption_suite());
+#ifndef HILDON_DISABLE_DEPRECATED
srunner_add_suite(sr, create_hildon_number_editor_suite());
srunner_add_suite(sr, create_hildon_time_editor_suite());
srunner_add_suite(sr, create_hildon_time_picker_suite());
srunner_add_suite(sr, create_hildon_seekbar_suite());
/* srunner_add_suite(sr, create_hildon_dialoghelp_suite()); */
srunner_add_suite(sr, create_hildon_calendar_popup_suite());
- srunner_add_suite(sr, create_hildon_caption_suite());
- srunner_add_suite(sr, create_hildon_helper_suite());
- srunner_add_suite(sr, create_hildon_find_toolbar_suite());
+ srunner_add_suite(sr, create_hildon_range_editor_suite());
/* srunner_add_suite(sr, create_hildon_name_password_dialog_suite());
srunner_add_suite(sr, create_hildon_get_password_dialog_suite());
srunner_add_suite(sr, create_hildon_set_password_dialog_suite()); */
srunner_add_suite(sr, create_hildon_sort_dialog_suite());
srunner_add_suite(sr, create_hildon_code_dialog_suite());
- srunner_add_suite(sr, create_hildon_note_suite());
srunner_add_suite(sr, create_hildon_volumebar_suite());
srunner_add_suite(sr, create_hildon_volumebar_range_suite());
+ srunner_add_suite(sr, create_hildon_font_selection_dialog_suite());
+#endif /* HILDON_DISABLE_DEPRECATED */
+
+ srunner_add_suite(sr, create_hildon_find_toolbar_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()); */
srunner_add_suite(sr, create_hildon_banner_suite());
- srunner_add_suite(sr, create_hildon_font_selection_dialog_suite());
srunner_add_suite(sr, create_hildon_window_suite());
+ srunner_add_suite(sr, create_hildon_helper_suite());
/* Disable tests that need maemo environment to be up if it is not running */
if (environment != ENVIRONMENT_MAEMO_ERROR)