summaryrefslogtreecommitdiff
path: root/fluid/widgets/Bin_Button.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/widgets/Bin_Button.cxx')
-rw-r--r--fluid/widgets/Bin_Button.cxx2
1 files changed, 1 insertions, 1 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());