summaryrefslogtreecommitdiff
path: root/fluid/custom_widgets.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-07-19 20:41:58 +0200
committerMatthias Melcher <github@matthiasm.com>2023-07-19 20:42:08 +0200
commite8eccde8db246d262d7a9e1c6088cc24e82c84e8 (patch)
tree1ce212048c5b6f96e51463cbd9bb3e9ef1813998 /fluid/custom_widgets.cxx
parent35728ac9ecab78cc60ca89f9b5a6ad8f864bb8c4 (diff)
FLUID: RTTI improvements, 'is_a90' now const, apply RTTI
Diffstat (limited to 'fluid/custom_widgets.cxx')
-rw-r--r--fluid/custom_widgets.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/fluid/custom_widgets.cxx b/fluid/custom_widgets.cxx
index f3b374314..df4405196 100644
--- a/fluid/custom_widgets.cxx
+++ b/fluid/custom_widgets.cxx
@@ -111,7 +111,7 @@ int Widget_Bin_Window_Button::handle(int inEvent)
Fl_Type *prototype = typename_to_prototype((char*)user_data());
if (prototype) {
Fl_Type *new_type = add_new_widget_from_user(prototype, kAddAfterCurrent);
- if (new_type && new_type->is_window()) {
+ if (new_type && new_type->is_a(Fl_Type::ID_Window)) {
Fl_Window_Type *new_window = (Fl_Window_Type*)new_type;
Fl_Window *w = (Fl_Window *)new_window->o;
w->position(Fl::event_x_root(), Fl::event_y_root());