item = new Canvas::SimpleRect (line.canvas_group());
item->property_draw() = true;
item->property_fill() = false;
- item->property_fill_color_rgba() = ARDOUR_UI::config()->canvasvar_ControlPointFill.get();
- item->property_outline_color_rgba() = ARDOUR_UI::config()->canvasvar_ControlPointOutline.get();
+ item->property_fill_color_rgba() = ARDOUR_UI::config()->canvasvar_ActiveCrossfade.get();
item->property_outline_pixels() = 1;
item->set_data ("control_point", this);
item->signal_event().connect (mem_fun (this, &ControlPoint::event_handler));
#define NS_UI "http://lv2plug.in/ns/extensions/ui#"
-static SuilHost* ui_host = NULL;
+static SuilHost* ui_host = 0;
void
LV2PluginUI::lv2_ui_write(LV2UI_Controller controller,
{
LV2PluginUI* me = (LV2PluginUI*)controller;
me->_screen_update_connection.disconnect();
- me->_external_ui_ptr = NULL;
+ me->_external_ui_ptr = 0;
}
void
: PlugUIBase (pi)
, _lv2(lv2p)
, _current_ui_thread (0)
- , _inst(NULL)
- , _values(NULL)
- , _external_ui_ptr(NULL)
+ , _inst (0)
+ , _values (0)
+ , _gui_widget (0)
+ , _external_ui_ptr (0)
{
if (!_lv2->is_external_ui()) {
lv2ui_instantiate("gtk2gui");
}
features_dst = features = (LV2_Feature**)malloc(sizeof(LV2_Feature*) * features_count);
- features_dst[--features_count] = NULL;
+ features_dst[--features_count] = 0;
features_dst[--features_count] = &_external_ui_feature;
while (features_count--) {
*features++ = *features_src++;
}
if (!ui_host) {
- ui_host = suil_host_new(LV2PluginUI::lv2_ui_write, NULL, NULL, NULL);
+ ui_host = suil_host_new(LV2PluginUI::lv2_ui_write, 0, 0, 0);
}
const char* container_type = (is_external_ui)
? NS_UI "external"
}
}
- _external_ui_ptr = NULL;
+ _external_ui_ptr = 0;
if (_inst) {
if (!is_external_ui) {
GtkWidget* c_widget = (GtkWidget*)suil_instance_get_widget(_inst);
suil_instance_free((SuilInstance*)_inst);
- _inst = NULL;
- _gui_widget = NULL;
+ _inst = 0;
+ _gui_widget = 0;
}
-
-
LV2PluginUI::~LV2PluginUI ()
{
//cout << "LV2PluginUI destructor called" << endl;
_screen_update_connection.disconnect();
if (_lv2->is_external_ui()) {
- /*external UI is no longer valid - on_window_hide() will not try to use it if is NULL*/
- _external_ui_ptr = NULL;
+ /*external UI is no longer valid - on_window_hide() will not try to use it if is 0*/
+ _external_ui_ptr = 0;
}
}
if (_external_ui_ptr) {
LV2_EXTERNAL_UI_HIDE(_external_ui_ptr);
//suil_instance_get_descriptor(_inst)->cleanup(_inst);
- //_external_ui_ptr = NULL;
+ //_external_ui_ptr = 0;
//_screen_update_connection.disconnect();
}
}