[gtk+] Deprecate h/v buttonbox subclasses
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Deprecate h/v buttonbox subclasses
- Date: Wed, 8 Jun 2011 01:44:58 +0000 (UTC)
commit fdd324c85519c35a19b8f526348384c266f1513b
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 7 21:32:49 2011 -0400
Deprecate h/v buttonbox subclasses
This has been discussed in bug 541009.
gtk/gtkhbbox.c | 5 +++++
gtk/gtkhbbox.h | 3 +++
gtk/gtkvbbox.c | 5 +++++
gtk/gtkvbbox.h | 3 +++
4 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkhbbox.c b/gtk/gtkhbbox.c
index c2164da..8bb4fba 100644
--- a/gtk/gtkhbbox.c
+++ b/gtk/gtkhbbox.c
@@ -25,6 +25,7 @@
*/
#include "config.h"
+#undef GTK_DISABLE_DEPRECATED
#include "gtkhbbox.h"
#include "gtkorientable.h"
#include "gtkintl.h"
@@ -53,6 +54,8 @@
* The spacing between buttons can be set with gtk_box_set_spacing(). The
* arrangement and layout of the buttons can be changed with
* gtk_button_box_set_layout().
+ *
+ * GtkHButtonBox has been deprecated, use #GtkButtonBox instead.
*/
@@ -76,6 +79,8 @@ gtk_hbutton_box_init (GtkHButtonBox *hbutton_box)
* Creates a new horizontal button box.
*
* Returns: a new button box #GtkWidget.
+ *
+ * Deprecated: 3.2: Use gtk_button_box_new() with %GTK_ORIENTATION_HORIZONTAL instead
*/
GtkWidget *
gtk_hbutton_box_new (void)
diff --git a/gtk/gtkhbbox.h b/gtk/gtkhbbox.h
index c6f9023..54edf86 100644
--- a/gtk/gtkhbbox.h
+++ b/gtk/gtkhbbox.h
@@ -31,6 +31,7 @@
#ifndef __GTK_HBUTTON_BOX_H__
#define __GTK_HBUTTON_BOX_H__
+#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkbbox.h>
@@ -64,4 +65,6 @@ GtkWidget* gtk_hbutton_box_new (void);
G_END_DECLS
+#endif
+
#endif /* __GTK_HBUTTON_BOX_H__ */
diff --git a/gtk/gtkvbbox.c b/gtk/gtkvbbox.c
index 2d61ff5..f234902 100644
--- a/gtk/gtkvbbox.c
+++ b/gtk/gtkvbbox.c
@@ -25,6 +25,7 @@
*/
#include "config.h"
+#undef GTK_DISABLE_DEPRECATED
#include "gtkvbbox.h"
#include "gtkorientable.h"
#include "gtkintl.h"
@@ -53,6 +54,8 @@
* The spacing between buttons can be set with gtk_box_set_spacing(). The
* arrangement and layout of the buttons can be changed with
* gtk_button_box_set_layout().
+ *
+ * GtkVButtonBox has been deprecated, use #GtkButtonBox instead.
*/
G_DEFINE_TYPE (GtkVButtonBox, gtk_vbutton_box, GTK_TYPE_BUTTON_BOX)
@@ -75,6 +78,8 @@ gtk_vbutton_box_init (GtkVButtonBox *vbutton_box)
* Creates a new vertical button box.
*
* Returns: a new button box #GtkWidget.
+ *
+ * Deprecated: 3.2: Use gtk_button_box_new() with %GTK_ORIENTATION_VERTICAL instead
*/
GtkWidget *
gtk_vbutton_box_new (void)
diff --git a/gtk/gtkvbbox.h b/gtk/gtkvbbox.h
index 3c91a2e..af2fd0a 100644
--- a/gtk/gtkvbbox.h
+++ b/gtk/gtkvbbox.h
@@ -31,6 +31,7 @@
#ifndef __GTK_VBBOX_H__
#define __GTK_VBBOX_H__
+#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkbbox.h>
@@ -65,4 +66,6 @@ GtkWidget *gtk_vbutton_box_new (void);
G_END_DECLS
+#endif
+
#endif /* __GTK_VBBOX_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]