[gtk+] Deprecate h/v subclasses of GtkScrollbar
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Deprecate h/v subclasses of GtkScrollbar
- Date: Wed, 8 Jun 2011 01:45:08 +0000 (UTC)
commit d41844c94646d1af486e6463644a36a9bfaa5597
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jun 7 21:38:15 2011 -0400
Deprecate h/v subclasses of GtkScrollbar
This has been discussed in bug 541009.
gtk/gtkhscrollbar.c | 6 ++++++
gtk/gtkhscrollbar.h | 2 ++
gtk/gtkvscrollbar.c | 6 ++++++
gtk/gtkvscrollbar.h | 2 ++
4 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkhscrollbar.c b/gtk/gtkhscrollbar.c
index 5b1f1fb..0b0ad64 100644
--- a/gtk/gtkhscrollbar.c
+++ b/gtk/gtkhscrollbar.c
@@ -27,6 +27,8 @@
#include "config.h"
+#include "gtkscrollbar.h"
+#undef GTK_DISABLE_DEPRECATED
#include "gtkhscrollbar.h"
#include "gtkorientable.h"
#include "gtkintl.h"
@@ -44,6 +46,8 @@
* 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.
*/
@@ -69,6 +73,8 @@ gtk_hscrollbar_init (GtkHScrollbar *hscrollbar)
* 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)
diff --git a/gtk/gtkhscrollbar.h b/gtk/gtkhscrollbar.h
index 2246c74..68f529b 100644
--- a/gtk/gtkhscrollbar.h
+++ b/gtk/gtkhscrollbar.h
@@ -31,6 +31,7 @@
#ifndef __GTK_HSCROLLBAR_H__
#define __GTK_HSCROLLBAR_H__
+#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkscrollbar.h>
@@ -66,5 +67,6 @@ GtkWidget* gtk_hscrollbar_new (GtkAdjustment *adjustment);
G_END_DECLS
+#endif
#endif /* __GTK_HSCROLLBAR_H__ */
diff --git a/gtk/gtkvscrollbar.c b/gtk/gtkvscrollbar.c
index 59d0664..f8443e3 100644
--- a/gtk/gtkvscrollbar.c
+++ b/gtk/gtkvscrollbar.c
@@ -28,6 +28,8 @@
#include "config.h"
#include "gtkorientable.h"
+#include "gtkscrollbar.h"
+#undef GTK_DISABLE_DEPRECATED
#include "gtkvscrollbar.h"
#include "gtkintl.h"
@@ -44,6 +46,8 @@
* 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)
@@ -68,6 +72,8 @@ gtk_vscrollbar_init (GtkVScrollbar *vscrollbar)
* 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)
diff --git a/gtk/gtkvscrollbar.h b/gtk/gtkvscrollbar.h
index ca21790..4929f87 100644
--- a/gtk/gtkvscrollbar.h
+++ b/gtk/gtkvscrollbar.h
@@ -31,6 +31,7 @@
#ifndef __GTK_VSCROLLBAR_H__
#define __GTK_VSCROLLBAR_H__
+#ifndef GTK_DISABLE_DEPRECATED
#include <gtk/gtkscrollbar.h>
@@ -72,5 +73,6 @@ GtkWidget* gtk_vscrollbar_new (GtkAdjustment *adjustment);
G_END_DECLS
+#endif
#endif /* __GTK_VSCROLLBAR_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]