diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 23:48:25 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 23:48:25 +0500 |
| commit | c53067d2f6cfd6e3c6b476c51ab8c4b931e40a30 (patch) | |
| tree | 95bfab59b2d9a38a57b6aa05244cab2d0435c7d2 /fluid/widgets | |
| parent | 57860e277f2298ad6c0830b1492087cfa124c862 (diff) | |
wip
Diffstat (limited to 'fluid/widgets')
| -rw-r--r-- | fluid/widgets/Bin_Button.cxx | 2 | ||||
| -rw-r--r-- | fluid/widgets/Node_Browser.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
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)); |
