From: Julien Moutte Date: Mon, 19 Nov 2007 11:59:20 +0000 (+0000) Subject: tests/examples/seek/seek.c: Try to support stable version of GTK. X-Git-Tag: 1.19.3~511^2~10831 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46026e9456f50c3bcd5f69b6ae2dd2adaf12b84a;p=platform%2Fupstream%2Fgstreamer.git tests/examples/seek/seek.c: Try to support stable version of GTK. Original commit message from CVS: 2007-11-19 Julien MOUTTE * tests/examples/seek/seek.c: (main): Try to support stable version of GTK. --- diff --git a/ChangeLog b/ChangeLog index c5cb719..140f3d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-19 Julien MOUTTE + + * tests/examples/seek/seek.c: (main): Try to support stable version + of GTK. + 2007-11-17 Stefan Kost * gst/playback/README: diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index cc2596b..912d87f 100644 --- a/tests/examples/seek/seek.c +++ b/tests/examples/seek/seek.c @@ -1667,8 +1667,10 @@ 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 gtk_range_set_show_fill_level (GTK_RANGE (hscale), TRUE); gtk_range_set_fill_level (GTK_RANGE (hscale), 100.0); +#endif gtk_range_set_update_policy (GTK_RANGE (hscale), GTK_UPDATE_CONTINUOUS); gtk_signal_connect (GTK_OBJECT (hscale),