Fluid: "Widget Class" subclasses Group but incorrectly shows Window subtypes.
This commit is contained in:
parent
3565aa1e60
commit
a802aaeb17
@ -2442,7 +2442,7 @@ void Fl_Widget_Type::write_properties() {
|
||||
if (is_spinner() && ((Fl_Spinner*)o)->type() != ((Fl_Spinner*)tplate)->type()) {
|
||||
write_string("type");
|
||||
write_word(item_name(subtypes(), ((Fl_Spinner*)o)->type()));
|
||||
} else if (o->type() != tplate->type() || is_window()) {
|
||||
} else if (subtypes() && (o->type() != tplate->type() || is_window())) {
|
||||
write_string("type");
|
||||
write_word(item_name(subtypes(), o->type()));
|
||||
}
|
||||
|
@ -99,6 +99,9 @@ public:
|
||||
};
|
||||
|
||||
class Fl_Widget_Class_Type : private Fl_Window_Type {
|
||||
protected:
|
||||
Fl_Menu_Item* subtypes() {return 0;}
|
||||
|
||||
public:
|
||||
Fl_Widget_Class_Type() {
|
||||
write_public_state = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user