[gtk+] textview: Remove deprecated GtkScrollable API
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] textview: Remove deprecated GtkScrollable API
- Date: Sat, 22 Oct 2016 17:08:08 +0000 (UTC)
commit 6525b95e2502080c08b65317c910204c2b6125da
Author: Timm Bäder <mail baedert org>
Date: Sat Oct 22 16:56:49 2016 +0200
textview: Remove deprecated GtkScrollable API
docs/reference/gtk/gtk4-sections.txt | 2 -
gtk/gtktextview.c | 40 ----------------------------------
gtk/gtktextview.h | 5 ----
3 files changed, 0 insertions(+), 47 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 4103df7..d8f1184 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -3327,8 +3327,6 @@ gtk_text_view_new
gtk_text_view_new_with_buffer
gtk_text_view_set_buffer
gtk_text_view_get_buffer
-gtk_text_view_get_hadjustment
-gtk_text_view_get_vadjustment
gtk_text_view_scroll_to_mark
gtk_text_view_scroll_to_iter
gtk_text_view_scroll_mark_onscreen
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 098651d..7fffd99 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -8610,26 +8610,6 @@ gtk_text_view_drag_data_received (GtkWidget *widget,
}
}
-/**
- * gtk_text_view_get_hadjustment:
- * @text_view: a #GtkTextView
- *
- * Gets the horizontal-scrolling #GtkAdjustment.
- *
- * Returns: (transfer none): pointer to the horizontal #GtkAdjustment
- *
- * Since: 2.22
- *
- * Deprecated: 3.0: Use gtk_scrollable_get_hadjustment()
- **/
-GtkAdjustment*
-gtk_text_view_get_hadjustment (GtkTextView *text_view)
-{
- g_return_val_if_fail (GTK_IS_TEXT_VIEW (text_view), NULL);
-
- return text_view->priv->hadjustment;
-}
-
static void
gtk_text_view_set_hadjustment (GtkTextView *text_view,
GtkAdjustment *adjustment)
@@ -8658,26 +8638,6 @@ gtk_text_view_set_hadjustment (GtkTextView *text_view,
g_object_notify (G_OBJECT (text_view), "hadjustment");
}
-/**
- * gtk_text_view_get_vadjustment:
- * @text_view: a #GtkTextView
- *
- * Gets the vertical-scrolling #GtkAdjustment.
- *
- * Returns: (transfer none): pointer to the vertical #GtkAdjustment
- *
- * Since: 2.22
- *
- * Deprecated: 3.0: Use gtk_scrollable_get_vadjustment()
- **/
-GtkAdjustment*
-gtk_text_view_get_vadjustment (GtkTextView *text_view)
-{
- g_return_val_if_fail (GTK_IS_TEXT_VIEW (text_view), NULL);
-
- return text_view->priv->vadjustment;
-}
-
static void
gtk_text_view_set_vadjustment (GtkTextView *text_view,
GtkAdjustment *adjustment)
diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h
index b0a3d8e..cf57944 100644
--- a/gtk/gtktextview.h
+++ b/gtk/gtktextview.h
@@ -296,11 +296,6 @@ void gtk_text_view_window_to_buffer_coords (GtkTextView *text_view,
gint *buffer_x,
gint *buffer_y);
-GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_hadjustment)
-GtkAdjustment* gtk_text_view_get_hadjustment (GtkTextView *text_view);
-GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_vadjustment)
-GtkAdjustment* gtk_text_view_get_vadjustment (GtkTextView *text_view);
-
GDK_AVAILABLE_IN_ALL
GdkWindow* gtk_text_view_get_window (GtkTextView *text_view,
GtkTextWindowType win);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]