summaryrefslogtreecommitdiff
path: root/tests/examples/seek/scrubby.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2011-01-11 14:41:53 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-01-11 15:08:06 +0000
commit74375d258e0e626e6e3f37cbd20220454267f07a (patch)
treeb2fe0dbc75d087b8c15840e481809e418473f57a /tests/examples/seek/scrubby.c
parent53893cfba881f573aa398d2660b451fe138bf3e0 (diff)
examples: allow building with newer GTK+
GtkFunction is gone, and there's no update policies for GtkRanges any more (but the default was continuous anyway, so no need to set it to that mode explicitly). https://bugzilla.gnome.org/show_bug.cgi?id=639215
Diffstat (limited to 'tests/examples/seek/scrubby.c')
-rw-r--r--tests/examples/seek/scrubby.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/examples/seek/scrubby.c b/tests/examples/seek/scrubby.c
index aa6b35850..c9a02f42b 100644
--- a/tests/examples/seek/scrubby.c
+++ b/tests/examples/seek/scrubby.c
@@ -314,7 +314,7 @@ static gboolean
stop_seek (GtkWidget * widget, gpointer user_data)
{
update_id =
- g_timeout_add (UPDATE_INTERVAL, (GtkFunction) update_scale, pipeline);
+ g_timeout_add (UPDATE_INTERVAL, (GSourceFunc) update_scale, pipeline);
GST_DEBUG ("stop seek");
@@ -340,7 +340,7 @@ play_cb (GtkButton * button, gpointer data)
gst_element_get_state (pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
gst_element_set_state (pipeline, GST_STATE_PLAYING);
update_id =
- g_timeout_add (UPDATE_INTERVAL, (GtkFunction) update_scale, pipeline);
+ g_timeout_add (UPDATE_INTERVAL, (GSourceFunc) update_scale, pipeline);
}
}
@@ -507,13 +507,11 @@ main (int argc, char **argv)
1.0, 1.0));
hscale = gtk_hscale_new (adjustment);
gtk_scale_set_digits (GTK_SCALE (hscale), 2);
- gtk_range_set_update_policy (GTK_RANGE (hscale), GTK_UPDATE_CONTINUOUS);
sadjustment =
GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 0.0, 5.0, 0.1, 1.0, 0.0));
shscale = gtk_hscale_new (sadjustment);
gtk_scale_set_digits (GTK_SCALE (shscale), 2);
- gtk_range_set_update_policy (GTK_RANGE (shscale), GTK_UPDATE_CONTINUOUS);
schanged_id =
g_signal_connect (shscale, "value_changed", G_CALLBACK (speed_cb),