Deprecate h/v subclasses of GtkPaned

This has been discussed in bug 541009.
This commit is contained in:
Matthias Clasen 2011-06-07 21:40:12 -04:00
parent d41844c946
commit 214069caee
4 changed files with 18 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include "config.h"
#undef GTK_DISABLE_DEPRECATED
#include "gtkhpaned.h"
#include "gtkorientable.h"
@ -39,6 +40,8 @@
* children arranged horizontally. The division between
* the two panes is adjustable by the user by dragging
* a handle. See #GtkPaned for details.
*
* GtkHPaned has been deprecated, use #GtkPaned instead.
*/
@ -62,6 +65,8 @@ gtk_hpaned_init (GtkHPaned *hpaned)
* Create a new #GtkHPaned
*
* Returns: the new #GtkHPaned
*
* Deprecated: 3.2: Use gtk_paned_new() with %GTK_ORIENTATION_HORIZONTAL instead
*/
GtkWidget *
gtk_hpaned_new (void)

View File

@ -31,6 +31,8 @@
#ifndef __GTK_HPANED_H__
#define __GTK_HPANED_H__
#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkpaned.h>
G_BEGIN_DECLS
@ -62,4 +64,6 @@ GtkWidget * gtk_hpaned_new (void);
G_END_DECLS
#endif
#endif /* __GTK_HPANED_H__ */

View File

@ -27,6 +27,7 @@
#include "config.h"
#include "gtkorientable.h"
#undef GTK_DISABLE_DEPRECATED
#include "gtkvpaned.h"
@ -39,6 +40,8 @@
* children arranged vertically. The division between
* the two panes is adjustable by the user by dragging
* a handle. See #GtkPaned for details.
*
* GtkVPaned has been deprecated, use #GtkPaned instead.
*/
G_DEFINE_TYPE (GtkVPaned, gtk_vpaned, GTK_TYPE_PANED)
@ -61,6 +64,8 @@ gtk_vpaned_init (GtkVPaned *vpaned)
* Create a new #GtkVPaned
*
* Returns: the new #GtkVPaned
*
* Deprecated: 3.2: Use gtk_paned_new() with %GTK_ORIENTATION_VERTICAL instead
*/
GtkWidget *
gtk_vpaned_new (void)

View File

@ -31,6 +31,8 @@
#ifndef __GTK_VPANED_H__
#define __GTK_VPANED_H__
#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkpaned.h>
G_BEGIN_DECLS
@ -62,4 +64,6 @@ GtkWidget * gtk_vpaned_new (void);
G_END_DECLS
#endif
#endif /* __GTK_VPANED_H__ */