[gtk+/wip/baedert/box] treeview: Remove deprecated adjustment API



commit b60d046ed306735791c52fece0440a058a21d170
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 14 22:01:59 2016 +0200

    treeview: Remove deprecated adjustment API

 docs/reference/gtk/gtk3-sections.txt |    4 --
 gtk/gtktreeview.c                    |   90 ----------------------------------
 gtk/gtktreeview.h                    |   12 -----
 3 files changed, 0 insertions(+), 106 deletions(-)
---
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index 3cc742f..356391e 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -4389,10 +4389,6 @@ gtk_tree_view_new_with_model
 gtk_tree_view_get_model
 gtk_tree_view_set_model
 gtk_tree_view_get_selection
-gtk_tree_view_get_hadjustment
-gtk_tree_view_set_hadjustment
-gtk_tree_view_get_vadjustment
-gtk_tree_view_set_vadjustment
 gtk_tree_view_get_headers_visible
 gtk_tree_view_set_headers_visible
 gtk_tree_view_columns_autosize
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 9447827..20ee1e1 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -887,10 +887,8 @@ static void     gtk_tree_view_buildable_init               (GtkBuildableIface *i
 /* GtkScrollable */
 static void     gtk_tree_view_scrollable_init              (GtkScrollableInterface *iface);
 
-static GtkAdjustment *gtk_tree_view_do_get_hadjustment (GtkTreeView   *tree_view);
 static void           gtk_tree_view_do_set_hadjustment (GtkTreeView   *tree_view,
                                                         GtkAdjustment *adjustment);
-static GtkAdjustment *gtk_tree_view_do_get_vadjustment (GtkTreeView   *tree_view);
 static void           gtk_tree_view_do_set_vadjustment (GtkTreeView   *tree_view,
                                                         GtkAdjustment *adjustment);
 
@@ -11568,50 +11566,6 @@ gtk_tree_view_get_selection (GtkTreeView *tree_view)
   return tree_view->priv->selection;
 }
 
-/**
- * gtk_tree_view_get_hadjustment:
- * @tree_view: A #GtkTreeView
- *
- * Gets the #GtkAdjustment currently being used for the horizontal aspect.
- *
- * Returns: (transfer none): A #GtkAdjustment object, or %NULL
- *     if none is currently being used.
- *
- * Deprecated: 3.0: Use gtk_scrollable_get_hadjustment()
- **/
-GtkAdjustment *
-gtk_tree_view_get_hadjustment (GtkTreeView *tree_view)
-{
-  g_return_val_if_fail (GTK_IS_TREE_VIEW (tree_view), NULL);
-
-  return gtk_tree_view_do_get_hadjustment (tree_view);
-}
-
-static GtkAdjustment *
-gtk_tree_view_do_get_hadjustment (GtkTreeView *tree_view)
-{
-  return tree_view->priv->hadjustment;
-}
-
-/**
- * gtk_tree_view_set_hadjustment:
- * @tree_view: A #GtkTreeView
- * @adjustment: (allow-none): The #GtkAdjustment to set, or %NULL
- *
- * Sets the #GtkAdjustment for the current horizontal aspect.
- *
- * Deprecated: 3.0: Use gtk_scrollable_set_hadjustment()
- **/
-void
-gtk_tree_view_set_hadjustment (GtkTreeView   *tree_view,
-                               GtkAdjustment *adjustment)
-{
-  g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
-  g_return_if_fail (adjustment == NULL || GTK_IS_ADJUSTMENT (adjustment));
-
-  gtk_tree_view_do_set_hadjustment (tree_view, adjustment);
-}
-
 static void
 gtk_tree_view_do_set_hadjustment (GtkTreeView   *tree_view,
                                   GtkAdjustment *adjustment)
@@ -11644,50 +11598,6 @@ gtk_tree_view_do_set_hadjustment (GtkTreeView   *tree_view,
   g_object_notify (G_OBJECT (tree_view), "hadjustment");
 }
 
-/**
- * gtk_tree_view_get_vadjustment:
- * @tree_view: A #GtkTreeView
- *
- * Gets the #GtkAdjustment currently being used for the vertical aspect.
- *
- * Returns: (transfer none): A #GtkAdjustment object, or %NULL
- *     if none is currently being used.
- *
- * Deprecated: 3.0: Use gtk_scrollable_get_vadjustment()
- **/
-GtkAdjustment *
-gtk_tree_view_get_vadjustment (GtkTreeView *tree_view)
-{
-  g_return_val_if_fail (GTK_IS_TREE_VIEW (tree_view), NULL);
-
-  return gtk_tree_view_do_get_vadjustment (tree_view);
-}
-
-static GtkAdjustment *
-gtk_tree_view_do_get_vadjustment (GtkTreeView *tree_view)
-{
-  return tree_view->priv->vadjustment;
-}
-
-/**
- * gtk_tree_view_set_vadjustment:
- * @tree_view: A #GtkTreeView
- * @adjustment: (allow-none): The #GtkAdjustment to set, or %NULL
- *
- * Sets the #GtkAdjustment for the current vertical aspect.
- *
- * Deprecated: 3.0: Use gtk_scrollable_set_vadjustment()
- **/
-void
-gtk_tree_view_set_vadjustment (GtkTreeView   *tree_view,
-                               GtkAdjustment *adjustment)
-{
-  g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
-  g_return_if_fail (adjustment == NULL || GTK_IS_ADJUSTMENT (adjustment));
-
-  gtk_tree_view_do_set_vadjustment (tree_view, adjustment);
-}
-
 static void
 gtk_tree_view_do_set_vadjustment (GtkTreeView   *tree_view,
                                   GtkAdjustment *adjustment)
diff --git a/gtk/gtktreeview.h b/gtk/gtktreeview.h
index c3233b4..8b38464 100644
--- a/gtk/gtktreeview.h
+++ b/gtk/gtktreeview.h
@@ -218,18 +218,6 @@ void                   gtk_tree_view_set_model                     (GtkTreeView
 GDK_AVAILABLE_IN_ALL
 GtkTreeSelection      *gtk_tree_view_get_selection                 (GtkTreeView               *tree_view);
 
-GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_hadjustment)
-GtkAdjustment         *gtk_tree_view_get_hadjustment               (GtkTreeView               *tree_view);
-GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_hadjustment)
-void                   gtk_tree_view_set_hadjustment               (GtkTreeView               *tree_view,
-                                                                   GtkAdjustment             *adjustment);
-GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_vadjustment)
-GtkAdjustment         *gtk_tree_view_get_vadjustment               (GtkTreeView               *tree_view);
-GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_vadjustment)
-void                   gtk_tree_view_set_vadjustment               (GtkTreeView               *tree_view,
-                                                                   GtkAdjustment             *adjustment);
-
-
 GDK_AVAILABLE_IN_ALL
 gboolean               gtk_tree_view_get_headers_visible           (GtkTreeView               *tree_view);
 GDK_AVAILABLE_IN_ALL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]