diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-19 23:54:31 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-10-19 23:54:37 +0200 |
| commit | ea88888f768b1bbec2300eea93029bec67ad2f43 (patch) | |
| tree | d0120b8f88a48a342616b7aedcf05aeb326f56ce /fluid/factory.cxx | |
| parent | 450248d20e8827665a901a02c344ad435aea336d (diff) | |
FLUID typos, comments, superfluous code
Diffstat (limited to 'fluid/factory.cxx')
| -rw-r--r-- | fluid/factory.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/factory.cxx b/fluid/factory.cxx index 8e6164aa1..d9c53465a 100644 --- a/fluid/factory.cxx +++ b/fluid/factory.cxx @@ -1272,7 +1272,7 @@ Fl_Type *add_new_widget_from_user(const char *inName, Strategy strategy) { */ static void cbf(Fl_Widget *, void *v) { Fl_Type *t = NULL; - if (Fl_Type::current && Fl_Type::current->is_group()) + if (Fl_Type::current && Fl_Type::current->is_a(Fl_Type::ID_Group)) t = ((Fl_Type*)v)->make(kAddAsLastChild); else t = ((Fl_Type*)v)->make(kAddAfterCurrent); @@ -1284,7 +1284,7 @@ static void cbf(Fl_Widget *, void *v) { */ static void cb(Fl_Widget *, void *v) { Fl_Type *t = NULL; - if (Fl_Type::current && Fl_Type::current->is_group()) + if (Fl_Type::current && Fl_Type::current->is_a(Fl_Type::ID_Group)) t = add_new_widget_from_user((Fl_Type*)v, kAddAsLastChild); else t = add_new_widget_from_user((Fl_Type*)v, kAddAfterCurrent); |
