Remove unneded casts

As gtk_adjustment_new() returns a GtkAdjustment* now

https://bugzilla.gnome.org/show_bug.cgi?id=630731
This commit is contained in:
Javier Jardón
2010-09-27 15:10:12 +02:00
parent 42f480a537
commit b072ea220c
18 changed files with 86 additions and 101 deletions

View File

@@ -35,13 +35,12 @@ main (int argc, char **argv)
gtk_container_add (GTK_CONTAINER (window), mainbox);
for (max = 9; max <= 999999999; max = max * 10 + 9) {
GtkAdjustment *adj =
GTK_ADJUSTMENT (gtk_adjustment_new (max,
1, max,
1,
(max + 1) / 10,
0.0));
GtkAdjustment *adj = gtk_adjustment_new (max,
1, max,
1,
(max + 1) / 10,
0.0);
GtkWidget *spin = gtk_spin_button_new (adj, 1.0, 0);
GtkWidget *hbox = gtk_hbox_new (FALSE, 2);