From ad7f4300660f17f03977367e2a538bc3117c32c5 Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Tue, 3 Aug 2010 14:58:15 +0200 Subject: [PATCH] set frequency property when spin button changed --- tests/examples/ges-ui.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/examples/ges-ui.c b/tests/examples/ges-ui.c index 57c2e7a..e0b9bec 100644 --- a/tests/examples/ges-ui.c +++ b/tests/examples/ges-ui.c @@ -398,6 +398,14 @@ background_type_changed_cb (GtkComboBox * widget, App * app) void frequency_value_changed_cb (GtkSpinButton * widget, App * app) { + GList *tmp; + gdouble value; + + value = gtk_spin_button_get_value (widget); + + for (tmp = app->selected_objects; tmp; tmp = tmp->next) { + g_object_set (G_OBJECT (tmp->data), "freq", (gdouble) value, NULL); + } } gboolean -- 2.7.4