[gimp/gtk3-port: 41/215] app: s/GtkObject/GtkAdjustment/



commit f65b133d369c5b46ea4b02a31cd1a89f77789ff7
Author: Michael Natterer <mitch gimp org>
Date:   Fri Oct 15 14:28:56 2010 +0200

    app: s/GtkObject/GtkAdjustment/

 app/widgets/gimphistogrambox.c |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/app/widgets/gimphistogrambox.c b/app/widgets/gimphistogrambox.c
index ca6ace7..30be73b 100644
--- a/app/widgets/gimphistogrambox.c
+++ b/app/widgets/gimphistogrambox.c
@@ -75,7 +75,6 @@ gimp_histogram_box_init (GimpHistogramBox *box)
   GtkWidget *vbox;
   GtkWidget *vbox2;
   GtkWidget *spinbutton;
-  GtkObject *adjustment;
   GtkWidget *frame;
   GtkWidget *view;
   GtkWidget *bar;
@@ -149,34 +148,30 @@ gimp_histogram_box_init (GimpHistogramBox *box)
   gtk_widget_show (hbox);
 
   /*  low spinbutton  */
-  spinbutton = gimp_spin_button_new (&adjustment,
+  spinbutton = gimp_spin_button_new (&box->low_adj,
                                      0.0, 0.0, 255.0, 1.0, 16.0, 0.0,
                                      1.0, 0);
-  box->low_adj = GTK_ADJUSTMENT (adjustment);
   gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
   gtk_widget_show (spinbutton);
 
-  g_signal_connect (adjustment, "value-changed",
+  g_signal_connect (box->low_adj, "value-changed",
                     G_CALLBACK (gimp_histogram_box_low_adj_update),
                     box);
 
-  gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 0,
-                                  GTK_ADJUSTMENT (adjustment));
+  gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 0, box->low_adj);
 
   /*  high spinbutton  */
-  spinbutton = gimp_spin_button_new (&adjustment,
+  spinbutton = gimp_spin_button_new (&box->high_adj,
                                      255.0, 0.0, 255.0, 1.0, 16.0, 0.0,
                                      1.0, 0);
-  box->high_adj = GTK_ADJUSTMENT (adjustment);
   gtk_box_pack_end (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
   gtk_widget_show (spinbutton);
 
-  g_signal_connect (adjustment, "value-changed",
+  g_signal_connect (box->high_adj, "value-changed",
                     G_CALLBACK (gimp_histogram_box_high_adj_update),
                     box);
 
-  gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 2,
-                                  GTK_ADJUSTMENT (adjustment));
+  gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 2, box->high_adj);
 
 #ifdef DEBUG_VIEW
   spinbutton = gimp_prop_spin_button_new (G_OBJECT (box->view), "border-width",



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