libgimpwidgets: add gtk_scale_new() to gimp3migration.[ch]

and use it all over the place. Also change some GtkObject* variables
to GtkAdjustment*.
This commit is contained in:
Michael Natterer
2011-10-02 14:09:45 +02:00
parent 16817c666f
commit 19b9bfd189
16 changed files with 183 additions and 170 deletions

View File

@ -47,6 +47,16 @@ gtk_button_box_new (GtkOrientation orientation)
return gtk_vbutton_box_new ();
}
GtkWidget *
gtk_scale_new (GtkOrientation orientation,
GtkAdjustment *adjustment)
{
if (orientation == GTK_ORIENTATION_HORIZONTAL)
return gtk_hscale_new (adjustment);
else
return gtk_vscale_new (adjustment);
}
GtkWidget *
gtk_scrollbar_new (GtkOrientation orientation,
GtkAdjustment *adjustment)