From: Julien Moutte Date: Mon, 19 Nov 2007 12:08:16 +0000 (+0000) Subject: tests/examples/seek/seek.c: There's a nice macro to check X-Git-Tag: 1.19.3~511^2~10830 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e660bd626400020982d42ce3f15b42d81b333d73;p=platform%2Fupstream%2Fgstreamer.git tests/examples/seek/seek.c: There's a nice macro to check Original commit message from CVS: 2007-11-19 Julien MOUTTE * tests/examples/seek/seek.c: (main): There's a nice macro to check GTK version, use it. --- diff --git a/ChangeLog b/ChangeLog index 140f3d2..afc7eab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-11-19 Julien MOUTTE + * tests/examples/seek/seek.c: (main): There's a nice macro to check + GTK version, use it. + +2007-11-19 Julien MOUTTE + * tests/examples/seek/seek.c: (main): Try to support stable version of GTK. diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index 912d87f..bf5be2c 100644 --- a/tests/examples/seek/seek.c +++ b/tests/examples/seek/seek.c @@ -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