diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/Container.cc | 5 | ||||
-rw-r--r-- | src/IconButton.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/FbTk/Container.cc b/src/FbTk/Container.cc index bcb6b01..ce143ef 100644 --- a/src/FbTk/Container.cc +++ b/src/FbTk/Container.cc | |||
@@ -229,7 +229,10 @@ void Container::setMaxTotalSize(unsigned int size) { | |||
229 | } | 229 | } |
230 | 230 | ||
231 | void Container::setAlignment(Container::Alignment a) { | 231 | void Container::setAlignment(Container::Alignment a) { |
232 | m_align = a; | 232 | if (m_align != a) { |
233 | m_align = a; | ||
234 | repositionItems(); | ||
235 | } | ||
233 | } | 236 | } |
234 | 237 | ||
235 | void Container::exposeEvent(XExposeEvent &event) { | 238 | void Container::exposeEvent(XExposeEvent &event) { |
diff --git a/src/IconButton.cc b/src/IconButton.cc index d63f6da..5e42e9f 100644 --- a/src/IconButton.cc +++ b/src/IconButton.cc | |||
@@ -100,6 +100,7 @@ void IconButton::moveResize(int x, int y, | |||
100 | 100 | ||
101 | if (m_icon_window.width() != FbTk::Button::width() || | 101 | if (m_icon_window.width() != FbTk::Button::width() || |
102 | m_icon_window.height() != FbTk::Button::height()) { | 102 | m_icon_window.height() != FbTk::Button::height()) { |
103 | reconfigTheme(); | ||
103 | update(0); // update icon window | 104 | update(0); // update icon window |
104 | } | 105 | } |
105 | } | 106 | } |
@@ -108,6 +109,7 @@ void IconButton::resize(unsigned int width, unsigned int height) { | |||
108 | FbTk::TextButton::resize(width, height); | 109 | FbTk::TextButton::resize(width, height); |
109 | if (m_icon_window.width() != FbTk::Button::width() || | 110 | if (m_icon_window.width() != FbTk::Button::width() || |
110 | m_icon_window.height() != FbTk::Button::height()) { | 111 | m_icon_window.height() != FbTk::Button::height()) { |
112 | reconfigTheme(); | ||
111 | update(0); // update icon window | 113 | update(0); // update icon window |
112 | } | 114 | } |
113 | } | 115 | } |