Report when tabbable attachments change, and expose the state

This commit is contained in:
Ben Loftis 2025-01-09 11:43:36 -06:00 committed by Robin Gareus
parent 3ac035c85f
commit 577d7230cd
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 10 additions and 0 deletions

View file

@ -539,6 +539,8 @@ Tabbable::showhide_att_right (bool yn)
} else {
content_right_vbox.hide ();
}
StateChange (*this);
}
void
@ -563,6 +565,8 @@ Tabbable::showhide_att_left (bool yn)
} else {
content_att_left.hide ();
}
StateChange (*this);
}
void
@ -587,6 +591,8 @@ Tabbable::showhide_att_bottom (bool yn)
} else {
content_att_bottom.hide ();
}
StateChange (*this);
}
void

View file

@ -102,6 +102,10 @@ public:
void att_right_button_toggled();
void att_bottom_button_toggled();
bool att_left_visible () const { return content_att_left.get_visible (); }
bool att_right_visible () const { return content_att_right.get_visible (); }
bool att_bottom_visible () const { return content_att_bottom.get_visible (); }
protected:
virtual void showhide_att_left (bool yn);
virtual void showhide_att_right (bool yn);