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



commit c2f04627403fc564465a86177215e2079aa06d2b
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 14 21:50:53 2016 +0200

    adjustment: Remove deprecated API

 docs/reference/gtk/gtk4-sections.txt |    2 -
 gtk/gtkadjustment.c                  |   36 ----------------------------------
 gtk/gtkadjustment.h                  |    4 ---
 testsuite/gtk/adjustment.c           |   12 -----------
 4 files changed, 0 insertions(+), 54 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 4d95329..85ec53c 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -307,8 +307,6 @@ gtk_adjustment_new
 gtk_adjustment_get_value
 gtk_adjustment_set_value
 gtk_adjustment_clamp_page
-gtk_adjustment_changed
-gtk_adjustment_value_changed
 gtk_adjustment_configure
 gtk_adjustment_get_lower
 gtk_adjustment_get_page_increment
diff --git a/gtk/gtkadjustment.c b/gtk/gtkadjustment.c
index 423f88f..96e2553 100644
--- a/gtk/gtkadjustment.c
+++ b/gtk/gtkadjustment.c
@@ -863,42 +863,6 @@ gtk_adjustment_configure (GtkAdjustment *adjustment,
 }
 
 /**
- * gtk_adjustment_changed:
- * @adjustment: a #GtkAdjustment
- *
- * Emits a #GtkAdjustment::changed signal from the #GtkAdjustment.
- * This is typically called by the owner of the #GtkAdjustment after it has
- * changed any of the #GtkAdjustment properties other than the value.
- *
- * Deprecated: 3.18: GTK+ emits #GtkAdjustment::changed itself whenever any
- *    of the properties (other than value) change
- */
-void
-gtk_adjustment_changed (GtkAdjustment *adjustment)
-{
-  g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
-  emit_changed (adjustment);
-}
-
-/**
- * gtk_adjustment_value_changed:
- * @adjustment: a #GtkAdjustment
- *
- * Emits a #GtkAdjustment::value-changed signal from the #GtkAdjustment.
- * This is typically called by the owner of the #GtkAdjustment after it has
- * changed the #GtkAdjustment:value property.
- *
- * Deprecated: 3.18: GTK+ emits #GtkAdjustment::value-changed itself whenever
- *    the value changes
- */
-void
-gtk_adjustment_value_changed (GtkAdjustment *adjustment)
-{
-  g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
-  emit_value_changed (adjustment);
-}
-
-/**
  * gtk_adjustment_clamp_page:
  * @adjustment: a #GtkAdjustment
  * @lower: the lower value
diff --git a/gtk/gtkadjustment.h b/gtk/gtkadjustment.h
index 15a2936..c88b51a 100644
--- a/gtk/gtkadjustment.h
+++ b/gtk/gtkadjustment.h
@@ -83,10 +83,6 @@ GtkAdjustment*   gtk_adjustment_new             (gdouble          value,
                                                  gdouble          page_increment,
                                                  gdouble          page_size);
 
-GDK_DEPRECATED_IN_3_18
-void       gtk_adjustment_changed               (GtkAdjustment   *adjustment);
-GDK_DEPRECATED_IN_3_18
-void       gtk_adjustment_value_changed         (GtkAdjustment   *adjustment);
 GDK_AVAILABLE_IN_ALL
 void       gtk_adjustment_clamp_page            (GtkAdjustment   *adjustment,
                                                  gdouble          lower,
diff --git a/testsuite/gtk/adjustment.c b/testsuite/gtk/adjustment.c
index 9ce94d6..598408a 100644
--- a/testsuite/gtk/adjustment.c
+++ b/testsuite/gtk/adjustment.c
@@ -75,18 +75,6 @@ test_signals (void)
   g_signal_connect (a, "changed", G_CALLBACK (changed_cb), NULL);
   g_signal_connect (a, "value-changed", G_CALLBACK (value_changed_cb), NULL);
 
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  changed_count = value_changed_count = 0;
-  gtk_adjustment_changed (a);
-  g_assert_cmpint (changed_count, ==, 1);  
-  g_assert_cmpint (value_changed_count, ==, 0);  
-
-  changed_count = value_changed_count = 0;
-  gtk_adjustment_value_changed (a);
-  g_assert_cmpint (changed_count, ==, 0);  
-  g_assert_cmpint (value_changed_count, ==, 1);  
-G_GNUC_END_IGNORE_DEPRECATIONS
-
   changed_count = value_changed_count = 0;
   gtk_adjustment_configure (a, 0.0, 0.0, 100.0, 1.0, 5.0, 0.0);
   g_assert_cmpint (changed_count, ==, 1);  


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