set frequency property when spin button changed

This commit is contained in:
Brandon Lewis 2010-08-03 14:58:15 +02:00 committed by Edward Hervey
parent cffbeec32b
commit ad7f430066

View file

@ -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