VWindowGUI::VWindowGUI(MWindow *mwindow, VWindow *vwindow)
- : BC_Window(PROGRAM_NAME ": Viewer",
+ : BC_Window(_(PROGRAM_NAME ": Viewer"),
mwindow->session->vwindow_x,
mwindow->session->vwindow_y,
mwindow->session->vwindow_w,
VWindowGUI::~VWindowGUI()
{
+ vwindow->playback_engine->interrupt_playback(1);
sources.remove_all_objects();
labels.remove_all_objects();
delete canvas;
char string[BCTEXTLEN];
if(title[0])
- sprintf(string, PROGRAM_NAME ": %s", title);
+ sprintf(string, _(PROGRAM_NAME ": %s"), title);
else
- sprintf(string, PROGRAM_NAME ": Viewer");
+ sprintf(string, _(PROGRAM_NAME ": Viewer"));
lock_window("VWindowGUI::change_source");
timebar->update(0);
cursor_y < canvas->y + canvas->h);
-printf("VWindowGUI::drag_motion 1 %d %d %d %d %d\n",
-__LINE__,
-mwindow->session->vcanvas_highlighted,
-get_cursor_over_window(),
-cursor_x,
-cursor_y);
-
+//printf("VWindowGUI::drag_motion 1 %d %d %d %d %d\n", __LINE__,
+// mwindow->session->vcanvas_highlighted, get_cursor_over_window(), cursor_x, cursor_y);
if(old_status != mwindow->session->vcanvas_highlighted)
canvas->draw_refresh();
void VWindowCanvas::close_source()
{
+ gui->unlock_window();
+ gui->vwindow->playback_engine->interrupt_playback(1);
+ gui->lock_window("VWindowCanvas::close_source");
gui->vwindow->delete_source(1, 1);
}