summaryrefslogtreecommitdiff
path: root/fluid/Fl_Type.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/Fl_Type.cxx')
-rw-r--r--fluid/Fl_Type.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx
index 110122a1e..9ed867151 100644
--- a/fluid/Fl_Type.cxx
+++ b/fluid/Fl_Type.cxx
@@ -409,7 +409,7 @@ Fl_Window_Type *Fl_Type::window() {
if (!is_widget())
return NULL;
for (Fl_Type *t = this; t; t=t->parent)
- if (t->is_window())
+ if (t->is_a(ID_Window))
return (Fl_Window_Type*)t;
return NULL;
}
@@ -584,7 +584,7 @@ Fl_Type *Fl_Type::remove() {
}
void Fl_Type::name(const char *n) {
- int nostrip = is_comment();
+ int nostrip = is_a(Fl_Type::ID_Comment);
if (storestring(n,name_,nostrip)) {
if (visible) widget_browser->redraw();
}
@@ -842,7 +842,7 @@ void Fl_Type::copy_properties() {
*/
int Fl_Type::user_defined(const char* cbname) const {
for (Fl_Type* p = Fl_Type::first; p ; p = p->next)
- if ((p->id() == Fl_Type::ID_Function) && p->name() != 0)
+ if (p->is_a(Fl_Type::ID_Function) && p->name() != 0)
if (strncmp(p->name(), cbname, strlen(cbname)) == 0)
if (p->name()[strlen(cbname)] == '(')
return 1;