Deprecate h/v buttonbox subclasses

This has been discussed in bug 541009.
This commit is contained in:
Matthias Clasen 2011-06-07 21:32:49 -04:00
parent d8b3bfe778
commit fdd324c855
4 changed files with 16 additions and 0 deletions

View File

@ -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)

View File

@ -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__ */

View File

@ -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)

View File

@ -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__ */