mirror of https://github.com/GNOME/gimp.git
app: s/GtkObject/GtkAdjustment/
This commit is contained in:
parent
8f8d62167d
commit
232a168785
|
@ -141,8 +141,7 @@ gimp_histogram_box_init (GimpHistogramBox *box)
|
|||
gtk_widget_show (hbox);
|
||||
|
||||
/* low spinbutton */
|
||||
box->low_adj = (GtkAdjustment *)
|
||||
gtk_adjustment_new (0.0, 0.0, 255.0, 1.0, 16.0, 0.0);
|
||||
box->low_adj = 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);
|
||||
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);
|
||||
|
@ -152,12 +151,10 @@ gimp_histogram_box_init (GimpHistogramBox *box)
|
|||
G_CALLBACK (gimp_histogram_box_low_adj_update),
|
||||
box);
|
||||
|
||||
gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 0,
|
||||
GTK_ADJUSTMENT (box->low_adj));
|
||||
gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 0, box->low_adj);
|
||||
|
||||
/* high spinbutton */
|
||||
box->high_adj = (GtkAdjustment *)
|
||||
gtk_adjustment_new (255.0, 0.0, 255.0, 1.0, 16.0, 0.0);
|
||||
box->high_adj = 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);
|
||||
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);
|
||||
|
@ -167,8 +164,7 @@ gimp_histogram_box_init (GimpHistogramBox *box)
|
|||
G_CALLBACK (gimp_histogram_box_high_adj_update),
|
||||
box);
|
||||
|
||||
gimp_handle_bar_set_adjustment (GIMP_HANDLE_BAR (bar), 2,
|
||||
GTK_ADJUSTMENT (box->high_adj));
|
||||
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",
|
||||
|
|
|
@ -252,8 +252,7 @@ gimp_palette_editor_init (GimpPaletteEditor *editor)
|
|||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
editor->columns_adj = (GtkAdjustment *)
|
||||
gtk_adjustment_new (0, 0, 64, 1, 4, 0);
|
||||
editor->columns_adj = gtk_adjustment_new (0, 0, 64, 1, 4, 0);
|
||||
spinbutton = gtk_spin_button_new (editor->columns_adj, 1.0, 0);
|
||||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinbutton), TRUE);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
|
|
|
@ -186,8 +186,8 @@ gimp_scale_button_new (gdouble value,
|
|||
gdouble min,
|
||||
gdouble max)
|
||||
{
|
||||
GtkObject *adj;
|
||||
gdouble step;
|
||||
GtkAdjustment *adj;
|
||||
gdouble step;
|
||||
|
||||
g_return_val_if_fail (value >= min && value <= max, NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue