gboolean in_point_scale_change_value_cb (GtkRange * range, GtkScrollType
unused, gdouble value, App * app);
+gboolean volume_change_value_cb (GtkRange * range, GtkScrollType unused,
+ gdouble value, App * app);
+
void duration_cell_func (GtkTreeViewColumn * column, GtkCellRenderer * renderer,
GtkTreeModel * model, GtkTreeIter * iter, gpointer user);
void background_type_changed_cb (GtkComboBox * widget, App * app);
+void frequency_value_changed_cb (GtkSpinButton * widget, App * app);
+
/* UI state functions *******************************************************/
static void
}
}
+void
+frequency_value_changed_cb (GtkSpinButton * widget, App * app)
+{
+}
+
+gboolean
+volume_change_value_cb (GtkRange * widget, GtkScrollType unused, gdouble
+ value, App * app)
+{
+ GList *tmp;
+
+ value = value >= 0 ? (value <= 2.0 ? value : 2.0) : 0;
+
+ for (tmp = app->selected_objects; tmp; tmp = tmp->next) {
+ g_object_set (G_OBJECT (tmp->data), "volume", (gdouble) value, NULL);
+ }
+ return TRUE;
+}
+
/* application methods ******************************************************/
static void selection_foreach (GtkTreeModel * model, GtkTreePath * path,