summaryrefslogtreecommitdiff
path: root/fluid/fluid.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-10-19 23:54:31 +0200
committerMatthias Melcher <github@matthiasm.com>2023-10-19 23:54:37 +0200
commitea88888f768b1bbec2300eea93029bec67ad2f43 (patch)
treed0120b8f88a48a342616b7aedcf05aeb326f56ce /fluid/fluid.cxx
parent450248d20e8827665a901a02c344ad435aea336d (diff)
FLUID typos, comments, superfluous code
Diffstat (limited to 'fluid/fluid.cxx')
-rw-r--r--fluid/fluid.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx
index 5b0666d08..db069063c 100644
--- a/fluid/fluid.cxx
+++ b/fluid/fluid.cxx
@@ -607,7 +607,7 @@ static void external_editor_timer(void*) {
// Walk tree looking for files modified by external editors.
int modified = 0;
for (Fl_Type *p = Fl_Type::first; p; p = p->next) {
- if ( p->is_code() ) {
+ if ( p->is_a(Fl_Type::ID_Code) ) {
Fl_Code_Type *code = (Fl_Code_Type*)p;
// Code changed by external editor?
if ( code->handle_editor_changes() ) { // updates ram, file size/mtime
@@ -1368,7 +1368,7 @@ void paste_cb(Fl_Widget*, void*) {
undo_checkpoint();
undo_suspend();
Strategy strategy = kAddAfterCurrent;
- if (Fl_Type::current && Fl_Type::current->is_group())
+ if (Fl_Type::current && Fl_Type::current->is_a(Fl_Type::ID_Group))
strategy = kAddAsLastChild;
if (!read_file(cutfname(), 1, strategy)) {
widget_browser->rebuild();