From cffbeec32b2d035f20d5e2e221582a953b414a8f Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Tue, 3 Aug 2010 14:53:22 +0200 Subject: [PATCH] update frequency spin button when selection changed --- tests/examples/ges-ui.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/examples/ges-ui.c b/tests/examples/ges-ui.c index 364417b050..57c2e7ac8b 100644 --- a/tests/examples/ges-ui.c +++ b/tests/examples/ges-ui.c @@ -862,9 +862,14 @@ connect_to_test_source (GESTimelineObject * object, App * app) test_source_notify_volume_changed_cb (object, NULL, app); klass = G_OBJECT_GET_CLASS (G_OBJECT (object)); - pspec = G_PARAM_SPEC_DOUBLE (g_object_class_find_property (klass, "volume")); + pspec = G_PARAM_SPEC_DOUBLE (g_object_class_find_property (klass, "volume")); gtk_range_set_range (GTK_RANGE (app->volume), pspec->minimum, pspec->maximum); + + pspec = G_PARAM_SPEC_DOUBLE (g_object_class_find_property (klass, "freq")); + gtk_spin_button_set_range (app->frequency, pspec->minimum, pspec->maximum); + gtk_spin_button_set_value (app->frequency, + GES_TIMELINE_TEST_SOURCE (object)->freq); } static void