From c53067d2f6cfd6e3c6b476c51ab8c4b931e40a30 Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Thu, 5 Feb 2026 23:48:25 +0500 Subject: wip --- fluid/widgets/Bin_Button.cxx | 2 +- fluid/widgets/Node_Browser.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'fluid/widgets') diff --git a/fluid/widgets/Bin_Button.cxx b/fluid/widgets/Bin_Button.cxx index 32630369a..29afddb9c 100644 --- a/fluid/widgets/Bin_Button.cxx +++ b/fluid/widgets/Bin_Button.cxx @@ -112,7 +112,7 @@ int fld::widget::Bin_Window_Button::handle(int inEvent) Node *prototype = typename_to_prototype((char*)user_data()); if (prototype) { Node *new_type = add_new_widget_from_user(prototype, Strategy::AFTER_CURRENT); - if (new_type && new_type->is_a(Type::Window)) { + if (new_type && new_type->is_a(FLD_NODE_TYPE_Window)) { Window_Node *new_window = (Window_Node*)new_type; Fl_Window *w = (Fl_Window *)new_window->o; w->position(Fl::event_x_root(), Fl::event_y_root()); diff --git a/fluid/widgets/Node_Browser.cxx b/fluid/widgets/Node_Browser.cxx index 91611f876..06804125d 100644 --- a/fluid/widgets/Node_Browser.cxx +++ b/fluid/widgets/Node_Browser.cxx @@ -380,11 +380,11 @@ void Node_Browser::item_draw(void *v, int X, int Y, int, int) const { } if ( l->is_widget() - && !l->is_a(Type::Window) + && !l->is_a(FLD_NODE_TYPE_Window) && ((Widget_Node*)l)->o && !((Widget_Node*)l)->o->visible() - && (!l->parent || ( !l->parent->is_a(Type::Tabs) - && !l->parent->is_a(Type::Wizard) ) ) + && (!l->parent || ( !l->parent->is_a(FLD_NODE_TYPE_Tabs) + && !l->parent->is_a(FLD_NODE_TYPE_Wizard) ) ) ) { invisible_pixmap->draw(X - 17, Y); @@ -425,7 +425,7 @@ void Node_Browser::item_draw(void *v, int X, int Y, int, int) const { else fl_color(func_color); copy_trunc(buf, l->title(), 55, 0, 0); } else { - if (l->is_a(Type::Comment)) { + if (l->is_a(FLD_NODE_TYPE_Comment)) { // -- comment (in main line, not above entry) fl_font(comment_font, textsize()); if (l->new_selected) fl_color(fl_contrast(comment_color, FL_SELECTION_COLOR)); -- cgit v1.2.3