app: s/GtkObject/GtkAdjustment/

This commit is contained in:
Michael Natterer 2010-10-15 14:28:56 +02:00
parent 8f8d62167d
commit 232a168785
3 changed files with 7 additions and 12 deletions

View File

@ -141,8 +141,7 @@ gimp_histogram_box_init (GimpHistogramBox *box)
gtk_widget_show (hbox); gtk_widget_show (hbox);
/* low spinbutton */ /* low spinbutton */
box->low_adj = (GtkAdjustment *) box->low_adj = gtk_adjustment_new (0.0, 0.0, 255.0, 1.0, 16.0, 0.0);
gtk_adjustment_new (0.0, 0.0, 255.0, 1.0, 16.0, 0.0);
box->low_spinbutton = gtk_spin_button_new (box->low_adj, 1.0, 0); box->low_spinbutton = gtk_spin_button_new (box->low_adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (box->low_spinbutton), TRUE); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (box->low_spinbutton), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), box->low_spinbutton, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), box->low_spinbutton, FALSE, FALSE, 0);
@ -152,12 +151,10 @@ gimp_histogram_box_init (GimpHistogramBox *box)
G_CALLBACK (gimp_histogram_box_low_adj_update), G_CALLBACK (gimp_histogram_box_low_adj_update),
box); box);
gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 0, gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 0, box->low_adj);
GTK_ADJUSTMENT (box->low_adj));
/* high spinbutton */ /* high spinbutton */
box->high_adj = (GtkAdjustment *) box->high_adj = gtk_adjustment_new (255.0, 0.0, 255.0, 1.0, 16.0, 0.0);
gtk_adjustment_new (255.0, 0.0, 255.0, 1.0, 16.0, 0.0);
box->high_spinbutton = gtk_spin_button_new (box->high_adj, 1.0, 0); box->high_spinbutton = gtk_spin_button_new (box->high_adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (box->high_spinbutton), TRUE); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (box->high_spinbutton), TRUE);
gtk_box_pack_end (GTK_BOX (hbox), box->high_spinbutton, FALSE, FALSE, 0); gtk_box_pack_end (GTK_BOX (hbox), box->high_spinbutton, FALSE, FALSE, 0);
@ -167,8 +164,7 @@ gimp_histogram_box_init (GimpHistogramBox *box)
G_CALLBACK (gimp_histogram_box_high_adj_update), G_CALLBACK (gimp_histogram_box_high_adj_update),
box); box);
gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 2, gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 2, box->high_adj);
GTK_ADJUSTMENT (box->high_adj));
#ifdef DEBUG_VIEW #ifdef DEBUG_VIEW
spinbutton = gimp_prop_spin_button_new (G_OBJECT (box->view), "border-width", spinbutton = gimp_prop_spin_button_new (G_OBJECT (box->view), "border-width",

View File

@ -252,8 +252,7 @@ gimp_palette_editor_init (GimpPaletteEditor *editor)
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label); gtk_widget_show (label);
editor->columns_adj = (GtkAdjustment *) editor->columns_adj = gtk_adjustment_new (0, 0, 64, 1, 4, 0);
gtk_adjustment_new (0, 0, 64, 1, 4, 0);
spinbutton = gtk_spin_button_new (editor->columns_adj, 1.0, 0); spinbutton = gtk_spin_button_new (editor->columns_adj, 1.0, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);

View File

@ -186,7 +186,7 @@ gimp_scale_button_new (gdouble value,
gdouble min, gdouble min,
gdouble max) gdouble max)
{ {
GtkObject *adj; GtkAdjustment *adj;
gdouble step; gdouble step;
g_return_val_if_fail (value >= min && value <= max, NULL); g_return_val_if_fail (value >= min && value <= max, NULL);