mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 16:48:11 +00:00
disable add_file during playback
This commit is contained in:
parent
fccf1d4520
commit
921378b488
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,7 @@ typedef struct App
|
||||||
int n_selected;
|
int n_selected;
|
||||||
GtkHScale *duration;
|
GtkHScale *duration;
|
||||||
GtkHScale *in_point;
|
GtkHScale *in_point;
|
||||||
|
GtkAction *add_file;
|
||||||
GtkAction *delete;
|
GtkAction *delete;
|
||||||
GtkAction *play;
|
GtkAction *play;
|
||||||
GstState state;
|
GstState state;
|
||||||
|
@ -457,6 +458,8 @@ pipeline_state_changed_cb (App * app)
|
||||||
|
|
||||||
update_properties_sensitivity (app);
|
update_properties_sensitivity (app);
|
||||||
update_delete_sensitivity (app);
|
update_delete_sensitivity (app);
|
||||||
|
|
||||||
|
gtk_action_set_sensitive (app->add_file, app->state != GST_STATE_PLAYING);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -542,6 +545,7 @@ create_ui (App * app)
|
||||||
GET_WIDGET (app->in_point, "in_point_scale", GTK_HSCALE);
|
GET_WIDGET (app->in_point, "in_point_scale", GTK_HSCALE);
|
||||||
GET_WIDGET (duration_col, "duration_column", GTK_TREE_VIEW_COLUMN);
|
GET_WIDGET (duration_col, "duration_column", GTK_TREE_VIEW_COLUMN);
|
||||||
GET_WIDGET (duration_renderer, "duration_renderer", GTK_CELL_RENDERER);
|
GET_WIDGET (duration_renderer, "duration_renderer", GTK_CELL_RENDERER);
|
||||||
|
GET_WIDGET (app->add_file, "add_file", GTK_ACTION);
|
||||||
GET_WIDGET (app->delete, "delete", GTK_ACTION);
|
GET_WIDGET (app->delete, "delete", GTK_ACTION);
|
||||||
GET_WIDGET (app->play, "play", GTK_ACTION);
|
GET_WIDGET (app->play, "play", GTK_ACTION);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue