Skip to content

Commit

Permalink
update tree code
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Jul 8, 2024
1 parent af20d00 commit 4d16c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cfl_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ void *Fl_Tree_openicon(const Fl_Tree *self) {
void Fl_Tree_set_openicon(Fl_Tree *self, void *val) {
LOCK(auto old = self->openicon(); if (!val) self->openicon(nullptr);
else self->openicon(((Fl_Image *)val)->copy());
delete old;)
)
}

void *Fl_Tree_closeicon(const Fl_Tree *self) {
Expand All @@ -432,7 +432,7 @@ void *Fl_Tree_closeicon(const Fl_Tree *self) {
void Fl_Tree_set_closeicon(Fl_Tree *self, void *val) {
LOCK(auto old = self->closeicon(); if (!val) self->closeicon(nullptr);
else self->closeicon(((Fl_Image *)val)->copy());
delete old;)
)
}

int Fl_Tree_showcollapse(const Fl_Tree *self) {
Expand Down

0 comments on commit 4d16c7f

Please sign in to comment.