fix changing iconbar alignment and button width from init file
This commit is contained in:
parent
659af0eb75
commit
c1d9ae5068
2 changed files with 6 additions and 1 deletions
|
@ -229,7 +229,10 @@ void Container::setMaxTotalSize(unsigned int size) {
|
|||
}
|
||||
|
||||
void Container::setAlignment(Container::Alignment a) {
|
||||
if (m_align != a) {
|
||||
m_align = a;
|
||||
repositionItems();
|
||||
}
|
||||
}
|
||||
|
||||
void Container::exposeEvent(XExposeEvent &event) {
|
||||
|
|
|
@ -100,6 +100,7 @@ void IconButton::moveResize(int x, int y,
|
|||
|
||||
if (m_icon_window.width() != FbTk::Button::width() ||
|
||||
m_icon_window.height() != FbTk::Button::height()) {
|
||||
reconfigTheme();
|
||||
update(0); // update icon window
|
||||
}
|
||||
}
|
||||
|
@ -108,6 +109,7 @@ void IconButton::resize(unsigned int width, unsigned int height) {
|
|||
FbTk::TextButton::resize(width, height);
|
||||
if (m_icon_window.width() != FbTk::Button::width() ||
|
||||
m_icon_window.height() != FbTk::Button::height()) {
|
||||
reconfigTheme();
|
||||
update(0); // update icon window
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue