X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fpolar%2Fpolarwindow.C;h=bf7774500fea57bcfa07015e998d19fbe9d62a7f;hb=e5d1c3ec8b49e9e4cd31f30e991f52ab11de93b1;hp=a423b0663a9fcb39e3fd1c89a34d60e5c882b52b;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/polar/polarwindow.C b/cinelerra-5.1/plugins/polar/polarwindow.C index a423b066..bf777450 100644 --- a/cinelerra-5.1/plugins/polar/polarwindow.C +++ b/cinelerra-5.1/plugins/polar/polarwindow.C @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #include "language.h" @@ -32,17 +32,17 @@ PLUGIN_THREAD_OBJECT(PolarMain, PolarThread, PolarWindow) PolarWindow::PolarWindow(PolarMain *client) - : BC_Window("", - MEGREY, - client->gui_string, - 210, - 120, - 200, - 120, - 0, + : BC_Window("", + MEGREY, + client->gui_string, + 210, + 120, + 200, + 120, + 0, !client->show_initially) { - this->client = client; + this->client = client; } PolarWindow::~PolarWindow() @@ -72,6 +72,7 @@ int PolarWindow::close_event() client->save_defaults(); hide_window(); client->send_hide_gui(); + return 1; } DepthSlider::DepthSlider(PolarMain *client, int x, int y) @@ -86,6 +87,7 @@ int DepthSlider::handle_event() { client->depth = get_value(); client->send_configure_change(); + return 1; } AngleSlider::AngleSlider(PolarMain *client, int x, int y) @@ -100,6 +102,7 @@ int AngleSlider::handle_event() { client->angle = get_value(); client->send_configure_change(); + return 1; } AutomatedFn::AutomatedFn(PolarMain *client, PolarWindow *window, int x, int y, int number) @@ -123,5 +126,6 @@ int AutomatedFn::handle_event() update(1); client->automated_function = number; client->send_configure_change(); + return 1; }