From df9ddbbae8a6f535b8c0c4b0d2756a5a99622995 Mon Sep 17 00:00:00 2001 From: akir Date: Sun, 10 Oct 2004 16:11:25 +0000 Subject: added iconbar.iconTextPadding --- src/IconbarTool.cc | 5 ++++- src/IconbarTool.hh | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc index ac974c5..066b87d 100644 --- a/src/IconbarTool.cc +++ b/src/IconbarTool.cc @@ -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 = "<setTextPadding(*m_rc_client_padding); renderButton(*button, false); // update the attributes, but don't clear it m_icon_container.insertItem(button); diff --git a/src/IconbarTool.hh b/src/IconbarTool.hh index e9036e7..af1ba37 100644 --- a/src/IconbarTool.hh +++ b/src/IconbarTool.hh @@ -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 m_rc_mode; FbTk::Resource m_rc_alignment; ///< alignment of buttons FbTk::Resource m_rc_client_width; ///< size of client button in LEFT/RIGHT mode + FbTk::Resource m_rc_client_padding; ///< padding of the text FbTk::Resource 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; -- cgit v0.11.2