added iconbar.iconTextPadding
This commit is contained in:
parent
d30e16f159
commit
df9ddbbae8
2 changed files with 6 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// $Id: IconbarTool.cc,v 1.47 2004/10/10 12:00:37 rathnor Exp $
|
||||
// $Id: IconbarTool.cc,v 1.48 2004/10/10 16:11:25 akir Exp $
|
||||
|
||||
#include "IconbarTool.hh"
|
||||
|
||||
|
@ -279,6 +279,8 @@ IconbarTool::IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme, BScr
|
|||
screen.name() + ".iconbar.alignment", screen.altName() + ".Iconbar.Alignment"),
|
||||
m_rc_client_width(screen.resourceManager(), 70,
|
||||
screen.name() + ".iconbar.iconWidth", screen.altName() + ".Iconbar.IconWidth"),
|
||||
m_rc_client_padding(screen.resourceManager(), 10,
|
||||
screen.name() + ".iconbar.iconTextPadding", screen.altName() + ".Iconbar.IconTextPadding"),
|
||||
m_rc_use_pixmap(screen.resourceManager(), true,
|
||||
screen.name() + ".iconbar.usePixmap", screen.altName() + ".Iconbar.UsePixmap"),
|
||||
m_menu(screen.menuTheme(), screen.imageControl(),
|
||||
|
@ -734,6 +736,7 @@ void IconbarTool::addWindow(FluxboxWindow &win) {
|
|||
cerr<<"IconbarTool::addWindow(0x"<<&win<<" title = "<<win.title()<<")"<<endl;
|
||||
#endif // DEBUG
|
||||
IconButton *button = new IconButton(m_icon_container, m_theme.focusedText().font(), win);
|
||||
button->setTextPadding(*m_rc_client_padding);
|
||||
|
||||
renderButton(*button, false); // update the attributes, but don't clear it
|
||||
m_icon_container.insertItem(button);
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
// $Id: IconbarTool.hh,v 1.16 2004/09/12 14:56:18 rathnor Exp $
|
||||
// $Id: IconbarTool.hh,v 1.17 2004/10/10 16:11:25 akir Exp $
|
||||
|
||||
#ifndef ICONBARTOOL_HH
|
||||
#define ICONBARTOOL_HH
|
||||
|
@ -119,6 +119,7 @@ private:
|
|||
FbTk::Resource<Mode> m_rc_mode;
|
||||
FbTk::Resource<Container::Alignment> m_rc_alignment; ///< alignment of buttons
|
||||
FbTk::Resource<int> m_rc_client_width; ///< size of client button in LEFT/RIGHT mode
|
||||
FbTk::Resource<unsigned int> m_rc_client_padding; ///< padding of the text
|
||||
FbTk::Resource<bool> m_rc_use_pixmap; ///< if iconbar should use win pixmap or not
|
||||
FbTk::Timer m_focus_timer; ///< so we can update current window without flicker while changing attached clients
|
||||
FbMenu m_menu;
|
||||
|
|
Loading…
Reference in a new issue