* src/hildon-dialog.c: Mark as deprecated.
* src/hildon-dialog.h: Mark as deprecated.
* src/hildon-picker-dialog.h: Allow HildonPickerDialog to derive
from HildonDialog and still work, even if
HILDON_DISABLE_DEPRECATED is defined. This is required as we can't currently
break the ABI and simply make HildonPickerDialog derive from GtkDialog.
Fixes: NB#90867 (Deprecate HildonDialog and use GtkDialog (with
maemo changes) instead)
+2008-12-09 Claudio Saavedra <csaavedra@igalia.com>
+
+ * src/hildon-dialog.c: Mark as deprecated.
+ * src/hildon-dialog.h: Mark as deprecated.
+ * src/hildon-picker-dialog.h: Allow HildonPickerDialog to derive
+ from HildonDialog and still work, even if
+ HILDON_DISABLE_DEPRECATED is defined. This is required as we can't currently
+ break the ABI and simply make HildonPickerDialog derive from GtkDialog.
+
+ Fixes: NB#90867 (Deprecate HildonDialog and use GtkDialog (with
+ maemo changes) instead)
+
2008-12-09 Alejandro G. Castro <alex@igalia.com>
* src/hildon-pannable_area.h:
* @short_description: Widget representing a popup window in the Hildon framework.
* @see_also: #HildonCodeDialog, #HildonColorChooserDialog, #HildonFontSelectionDialog, #HildonGetPasswordDialog, #HildonLoginDialog, #HildonSetPasswordDialog, #HildonSortDialog, #HildonWizardDialog
*
- * The HildonDialog is a GTK widget which represent a popup window in the
- * Hildon framework. It is derived from the GtkDialog and provides additional
+ * #HildonDialog is a GTK widget which represent a popup window in the
+ * Hildon framework. It is derived from #GtkDialog and provides additional
* commodities specific to the Hildon framework.
*
+ * As of hildon 2.2, #HildonDialog has been deprecated in favor of #GtkDialog.
+ *
* <example>
* <title>Simple <structname>HildonDialog</structname> usage</title>
* <programlisting>
* </example>
*/
+#undef HILDON_DISABLE_DEPRECATED
+
#include "hildon-dialog.h"
#include "hildon-gtk.h"
*
*/
+#ifndef HILDON_DISABLE_DEPRECATED
+
#ifndef __HILDON_DIALOG_H__
#define __HILDON_DIALOG_H__
G_END_DECLS
#endif /* __HILDON_DIALOG_H__ */
+
+#endif /* HILDON_DISABLE_DEPRECATED */
#ifndef __HILDON_PICKER_DIALOG_H__
#define __HILDON_PICKER_DIALOG_H__
+#ifdef HILDON_DISABLE_DEPRECATED
+ #define __SHOULD_REENABLE_DISABLE_DEPRECATED
+#endif
+
+#undef HILDON_DISABLE_DEPRECATED
#include "hildon-dialog.h"
+
+#ifdef __SHOULD_REENABLE_DISABLE_DEPRECATED
+ #define HILDON_DISABLE_DEPRECATED
+#endif
+
#include "hildon-touch-selector.h"
G_BEGIN_DECLS