This has been discussed in bug 541009.
#include "config.h"
+#include "gtkscrollbar.h"
+#undef GTK_DISABLE_DEPRECATED
#include "gtkhscrollbar.h"
#include "gtkorientable.h"
#include "gtkintl.h"
* adjustment of the scrollbar or it may be left %NULL in which case one
* will be created for you. See #GtkScrollbar for a description of what the
* fields in an adjustment represent for a scrollbar.
+ *
+ * GtkHScrollbar has been deprecated, use #GtkScrollbar instead.
*/
* Creates a new horizontal scrollbar.
*
* Returns: the new #GtkHScrollbar
+ *
+ * Deprecated: 3.2: Use gtk_scrollbar_new() with %GTK_ORIENTATION_HORIZONTAL instead
*/
GtkWidget *
gtk_hscrollbar_new (GtkAdjustment *adjustment)
#ifndef __GTK_HSCROLLBAR_H__
#define __GTK_HSCROLLBAR_H__
+#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkscrollbar.h>
G_END_DECLS
+#endif
#endif /* __GTK_HSCROLLBAR_H__ */
#include "config.h"
#include "gtkorientable.h"
+#include "gtkscrollbar.h"
+#undef GTK_DISABLE_DEPRECATED
#include "gtkvscrollbar.h"
#include "gtkintl.h"
* adjustment of the scrollbar or it may be left %NULL in which case one
* will be created for you. See #GtkScrollbar for a description of what the
* fields in an adjustment represent for a scrollbar.
+ *
+ * GtkVScrollbar has been deprecated, use #GtkScrollbar instead.
*/
G_DEFINE_TYPE (GtkVScrollbar, gtk_vscrollbar, GTK_TYPE_SCROLLBAR)
* Creates a new vertical scrollbar.
*
* Returns: the new #GtkVScrollbar
+ *
+ * Deprecated: 3.2: Use gtk_scrollbar_new() with %GTK_ORIENTATION_VERTICAL instead
*/
GtkWidget *
gtk_vscrollbar_new (GtkAdjustment *adjustment)
#ifndef __GTK_VSCROLLBAR_H__
#define __GTK_VSCROLLBAR_H__
+#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkscrollbar.h>
G_END_DECLS
+#endif
#endif /* __GTK_VSCROLLBAR_H__ */