From f11057246c2f527387ad8854f8c79673d9bc0182 Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Tue, 3 Aug 2010 15:03:24 +0200 Subject: [PATCH] make sure all actions that mutate timeline are disabled during playback --- tests/examples/ges-ui.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/examples/ges-ui.c b/tests/examples/ges-ui.c index e0b9bec..496d8a9 100644 --- a/tests/examples/ges-ui.c +++ b/tests/examples/ges-ui.c @@ -43,6 +43,8 @@ typedef struct App GtkHScale *duration; GtkHScale *in_point; GtkAction *add_file; + GtkAction *add_test; + GtkAction *add_title; GtkAction *delete; GtkAction *play; GtkComboBox *halign; @@ -750,6 +752,8 @@ pipeline_state_changed_cb (App * app) update_delete_sensitivity (app); gtk_action_set_sensitive (app->add_file, app->state != GST_STATE_PLAYING); + gtk_action_set_sensitive (app->add_title, app->state != GST_STATE_PLAYING); + gtk_action_set_sensitive (app->add_test, app->state != GST_STATE_PLAYING); gtk_widget_set_sensitive (app->properties, app->state != GST_STATE_PLAYING); } @@ -974,6 +978,8 @@ create_ui (App * app) GET_WIDGET (duration_col, "duration_column", GTK_TREE_VIEW_COLUMN); GET_WIDGET (duration_renderer, "duration_renderer", GTK_CELL_RENDERER); GET_WIDGET (app->add_file, "add_file", GTK_ACTION); + GET_WIDGET (app->add_title, "add_text", GTK_ACTION); + GET_WIDGET (app->add_test, "add_test", GTK_ACTION); GET_WIDGET (app->delete, "delete", GTK_ACTION); GET_WIDGET (app->play, "play", GTK_ACTION); GET_WIDGET (app->seconds, "seconds", GTK_ENTRY); -- 2.7.4