HildonEntry/HildonTextView: add deprecation guards where needed
authorAlberto Garcia <agarcia@igalia.com>
Wed, 5 Aug 2009 15:13:44 +0000 (17:13 +0200)
committerAlberto Garcia <agarcia@igalia.com>
Wed, 5 Aug 2009 15:29:08 +0000 (17:29 +0200)
* hildon/hildon-text-view.[ch]
* hildon/hildon-entry.[ch]:
Add deprecation guards around deprecated functions.

ChangeLog
hildon/hildon-entry.c
hildon/hildon-entry.h
hildon/hildon-text-view.c
hildon/hildon-text-view.h

index a5f158b..0f19080 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-05  Alberto Garcia  <agarcia@igalia.com>
+
+       * hildon/hildon-text-view.[ch]
+       * hildon/hildon-entry.[ch]:
+       Add deprecation guards around deprecated functions.
+
 2009-08-05  Claudio Saavedra  <csaavedra@igalia.com>
 
        * hildon/hildon-app-menu.c: Remove leftover function declaration.
index 398696f..370a049 100644 (file)
@@ -43,6 +43,8 @@
  * </example>
  */
 
+#undef                                          HILDON_DISABLE_DEPRECATED
+
 #include                                        "hildon-entry.h"
 
 G_DEFINE_TYPE                                   (HildonEntry, hildon_entry, GTK_TYPE_ENTRY);
index eb2ab71..561430a 100644 (file)
@@ -68,6 +68,7 @@ hildon_entry_get_type                           (void) G_GNUC_CONST;
 GtkWidget *
 hildon_entry_new                                (HildonSizeType size);
 
+#ifndef HILDON_DISABLE_DEPRECATED
 void
 hildon_entry_set_text                           (HildonEntry *entry,
                                                  const gchar *text);
@@ -78,6 +79,7 @@ hildon_entry_get_text                           (HildonEntry *entry);
 void
 hildon_entry_set_placeholder                    (HildonEntry *entry,
                                                  const gchar *text);
+#endif
 
 G_END_DECLS
 
index 933fdcf..4308a64 100644 (file)
@@ -46,6 +46,8 @@
  * </example>
  */
 
+#undef                                          HILDON_DISABLE_DEPRECATED
+
 #include                                        "hildon-text-view.h"
 #include <math.h>
 
index 87b78a6..7337eb5 100644 (file)
@@ -63,6 +63,7 @@ hildon_text_view_get_type                       (void) G_GNUC_CONST;
 GtkWidget *
 hildon_text_view_new                            (void);
 
+#ifndef HILDON_DISABLE_DEPRECATED
 void
 hildon_text_view_set_buffer                     (HildonTextView *text_view,
                                                  GtkTextBuffer  *buffer);
@@ -73,6 +74,7 @@ hildon_text_view_get_buffer                     (HildonTextView *text_view);
 void
 hildon_text_view_set_placeholder                (HildonTextView *text_view,
                                                  const gchar    *text);
+#endif
 
 G_END_DECLS