tests/examples/seek/seek.c: There's a nice macro to check

Original commit message from CVS:
2007-11-19  Julien MOUTTE  <julien@moutte.net>

* tests/examples/seek/seek.c: (main): There's a nice macro to
check
GTK version, use it.
This commit is contained in:
Julien Moutte 2007-11-19 12:08:16 +00:00
parent 46026e9456
commit e660bd6264
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-11-19 Julien MOUTTE <julien@moutte.net>
* tests/examples/seek/seek.c: (main): There's a nice macro to check
GTK version, use it.
2007-11-19 Julien MOUTTE <julien@moutte.net>
* tests/examples/seek/seek.c: (main): Try to support stable version

View file

@ -1667,7 +1667,7 @@ main (int argc, char **argv)
GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.00, 100.0, 0.1, 1.0, 1.0));
hscale = gtk_hscale_new (adjustment);
gtk_scale_set_digits (GTK_SCALE (hscale), 2);
#if GTK_MAJOR_VERSION > 2 && GTK_MINOR_VERSION > 12
#if GTK_CHECK_VERSION(2,12,0)
gtk_range_set_show_fill_level (GTK_RANGE (hscale), TRUE);
gtk_range_set_fill_level (GTK_RANGE (hscale), 100.0);
#endif