all repos — fluxbox @ df9ddbbae8a6f535b8c0c4b0d2756a5a99622995

custom fork of the fluxbox windowmanager

added iconbar.iconTextPadding
akir akir
commit

df9ddbbae8a6f535b8c0c4b0d2756a5a99622995

parent

d30e16f159efa7bde19dd01e560794b43dea6620

2 files changed, 6 insertions(+), 2 deletions(-)

jump to
M src/IconbarTool.ccsrc/IconbarTool.cc

@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ m_rc_alignment(screen.resourceManager(), Container::LEFT,

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 @@ #ifdef DEBUG

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);
M src/IconbarTool.hhsrc/IconbarTool.hh

@@ -20,7 +20,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ IconList m_icon_list;

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;