This has been discussed in bug 541009.
#include <math.h>
#include <stdlib.h>
+#undef GTK_DISABLE_DEPRECATED
#include "gtkhscale.h"
#include "gtkorientable.h"
*
* The position to show the current value, and the number of decimal places
* shown can be set using the parent #GtkScale class's functions.
+ *
+ * GtkHScale has been deprecated, use #GtkScale instead.
*/
* Creates a new #GtkHScale.
*
* Returns: a new #GtkHScale.
+ *
+ * Deprecated: 3.2: Use gtk_scale_new() with %GTK_ORIENTATION_HORIZONTAL instead
*/
GtkWidget *
gtk_hscale_new (GtkAdjustment *adjustment)
* needs, use gtk_scale_set_digits() to correct it.
*
* Return value: a new #GtkHScale
+ *
+ * Deprecated: 3.2: Use gtk_scale_new_with_range() with %GTK_ORIENTATION_HORIZONTAL instead
**/
GtkWidget *
gtk_hscale_new_with_range (gdouble min,
#ifndef __GTK_HSCALE_H__
#define __GTK_HSCALE_H__
+#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkscale.h>
G_END_DECLS
+#endif
+
#endif /* __GTK_HSCALE_H__ */
#include <math.h>
#include <stdlib.h>
+#undef GTK_DISABLE_DEPRECATED
#include "gtkvscale.h"
#include "gtkorientable.h"
*
* The position to show the current value, and the number of decimal places
* shown can be set using the parent #GtkScale class's functions.
+ *
+ * GtkVScale has been deprecated, use #GtkScale instead.
*/
G_DEFINE_TYPE (GtkVScale, gtk_vscale, GTK_TYPE_SCALE)
* Creates a new #GtkVScale.
*
* Returns: a new #GtkVScale.
+ *
+ * Deprecated: 3.2: Use gtk_scale_new() with %GTK_ORIENTATION_VERTICAL instead
*/
GtkWidget *
gtk_vscale_new (GtkAdjustment *adjustment)
* needs, use gtk_scale_set_digits() to correct it.
*
* Return value: a new #GtkVScale
+ *
+ * Deprecated: 3.2: Use gtk_scale_new_with_range() with %GTK_ORIENTATION_VERTICAL instead
**/
GtkWidget *
gtk_vscale_new_with_range (gdouble min,
#ifndef __GTK_VSCALE_H__
#define __GTK_VSCALE_H__
+#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkscale.h>
G_END_DECLS
+#endif
#endif /* __GTK_VSCALE_H__ */