X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fsvg%2Fsvgwin.C;h=09cbca7b440102cbbeba0fe3348757b401212c82;hb=13a039ef755e81e65c9479b4b615fd89bfe3e038;hp=e5f5b920a95f97df0bde24c4d0d69cf9dae752e6;hpb=0df48ad2d876409c5beeae2e21933a728ea76c33;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/svg/svgwin.C b/cinelerra-5.1/plugins/svg/svgwin.C index e5f5b920..09cbca7b 100644 --- a/cinelerra-5.1/plugins/svg/svgwin.C +++ b/cinelerra-5.1/plugins/svg/svgwin.C @@ -1,4 +1,3 @@ - /* * CINELERRA * Copyright (C) 2008 Adam Williams @@ -212,7 +211,9 @@ void NewSvgButton::run() } new_window = new NewSvgWindow(client, window, directory); new_window->create_objects(); + new_window->lock_window("NewSvgButton::run"); new_window->update_filter("*.svg"); + new_window->unlock_window(); result = new_window->run_window(); const char *filepath = new_window->get_path(0); strcpy(filename, filepath ? filepath : "" ); @@ -340,9 +341,9 @@ void EditSvgButton::run() if( ret != sizeof(fifo_buf) ) continue; switch( fifo_buf.action ) { case 1: break; - case 2: printf(_("Inkscape has exited\n")); + case 2: // printf(_("Inkscape has exited\n")); break; - case 3: printf(_("Plugin window has closed\n")); + case 3: // printf(_("Plugin window has closed\n")); done = 1; break; } @@ -432,7 +433,7 @@ NewSvgWindow::~NewSvgWindow() {} DpiValue::DpiValue(SvgWin *win, SvgMain *client, int x, int y, float *value) - : BC_TumbleTextBox(win, *value, (float)10, (float)1000, x, y, 100) + : BC_TumbleTextBox(win, *value, 10.f, 1000.f, x, y, xS(100), 2) { //printf("SvgWidth::SvgWidth %f\n", client->config.w); this->client = client;