[gimp] libgimpwidgets: remove gimp_spin_button_new()



commit b55e481459f84dbebf982af0b263e2badad753f1
Author: Michael Natterer <mitch gimp org>
Date:   Thu May 10 20:46:17 2018 +0200

    libgimpwidgets: remove gimp_spin_button_new()

 libgimpwidgets/gimpwidgets.c |   45 ------------------------------------------
 libgimpwidgets/gimpwidgets.h |   12 -----------
 2 files changed, 0 insertions(+), 57 deletions(-)
---
diff --git a/libgimpwidgets/gimpwidgets.c b/libgimpwidgets/gimpwidgets.c
index 2a0056b..a722902 100644
--- a/libgimpwidgets/gimpwidgets.c
+++ b/libgimpwidgets/gimpwidgets.c
@@ -409,51 +409,6 @@ gimp_int_radio_group_set_active (GtkRadioButton *radio_button,
   gimp_radio_group_set_active (radio_button, GINT_TO_POINTER (item_data));
 }
 
-/**
- * gimp_spin_button_new:
- * @adjustment:     Returns the spinbutton's #GtkAdjustment.
- * @value:          The initial value of the spinbutton.
- * @lower:          The lower boundary.
- * @upper:          The upper boundary.
- * @step_increment: The spinbutton's step increment.
- * @page_increment: The spinbutton's page increment (mouse button 2).
- * @page_size:      Ignored, spin buttons must always have a zero page size.
- * @climb_rate:     The spinbutton's climb rate.
- * @digits:         The spinbutton's number of decimal digits.
- *
- * This function is a shortcut for gtk_adjustment_new() and a
- * subsequent gtk_spin_button_new(). It also calls
- * gtk_spin_button_set_numeric() so that non-numeric text cannot be
- * entered.
- *
- * Deprecated: 2.10: Use gtk_spin_button_new() instead.
- *
- * Returns: A #GtkSpinButton and its #GtkAdjustment.
- **/
-GtkWidget *
-gimp_spin_button_new (GtkAdjustment **adjustment,  /* return value */
-                      gdouble         value,
-                      gdouble         lower,
-                      gdouble         upper,
-                      gdouble         step_increment,
-                      gdouble         page_increment,
-                      gdouble         page_size,
-                      gdouble         climb_rate,
-                      guint           digits)
-{
-  GtkWidget *spinbutton;
-
-  *adjustment = gtk_adjustment_new (value, lower, upper,
-                                    step_increment, page_increment, 0);
-
-  spinbutton = gtk_spin_button_new (GTK_ADJUSTMENT (*adjustment),
-                                    climb_rate, digits);
-
-  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
-
-  return spinbutton;
-}
-
 static void
 gimp_random_seed_update (GtkWidget *widget,
                          gpointer   data)
diff --git a/libgimpwidgets/gimpwidgets.h b/libgimpwidgets/gimpwidgets.h
index aae9b5c..ba95cbc 100644
--- a/libgimpwidgets/gimpwidgets.h
+++ b/libgimpwidgets/gimpwidgets.h
@@ -140,18 +140,6 @@ void   gimp_radio_group_set_active (GtkRadioButton     *radio_button,
                                     gpointer            item_data);
 
 
-GIMP_DEPRECATED_FOR(gtk_spin_button_new)
-GtkWidget * gimp_spin_button_new   (/* return value: */
-                                    GtkAdjustment     **adjustment,
-
-                                    gdouble             value,
-                                    gdouble             lower,
-                                    gdouble             upper,
-                                    gdouble             step_increment,
-                                    gdouble             page_increment,
-                                    gdouble             page_size,
-                                    gdouble             climb_rate,
-                                    guint               digits);
 
 /**
  * GIMP_RANDOM_SEED_SPINBUTTON:


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