mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
update source volume when slider is moved
This commit is contained in:
parent
c9a9cabaec
commit
d34e61d395
1 changed files with 24 additions and 0 deletions
|
@ -98,6 +98,9 @@ gboolean duration_scale_change_value_cb (GtkRange * range, GtkScrollType
|
|||
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);
|
||||
|
||||
|
@ -127,6 +130,8 @@ void seconds_notify_text_changed_cb (GtkEntry * widget, GParamSpec * unused,
|
|||
|
||||
void background_type_changed_cb (GtkComboBox * widget, App * app);
|
||||
|
||||
void frequency_value_changed_cb (GtkSpinButton * widget, App * app);
|
||||
|
||||
/* UI state functions *******************************************************/
|
||||
|
||||
static void
|
||||
|
@ -390,6 +395,25 @@ background_type_changed_cb (GtkComboBox * widget, App * app)
|
|||
}
|
||||
}
|
||||
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue