all repos — fluxbox @ 2bea1b3e2bba3d59345cffb0efc1ce8d5d629af2

custom fork of the fluxbox windowmanager

Changed get*Style to reference instead of pointer
fluxgen fluxgen
commit

2bea1b3e2bba3d59345cffb0efc1ce8d5d629af2

parent

d85fb9bdadda1cc976d8c47d5393ee0725461612

1 files changed, 7 insertions(+), 7 deletions(-)

jump to
M src/Screen.hhsrc/Screen.hh

@@ -138,13 +138,13 @@ inline Workspace *getCurrentWorkspace(void) { return current_workspace; }

inline Workspacemenu *getWorkspacemenu(void) { return workspacemenu; } - inline const unsigned int &getHandleWidth(void) const + inline const unsigned int getHandleWidth(void) const { return theme->getHandleWidth(); } - inline const unsigned int &getBevelWidth(void) const + inline const unsigned int getBevelWidth(void) const { return theme->getBevelWidth(); } - inline const unsigned int &getFrameWidth(void) const + inline const unsigned int getFrameWidth(void) const { return theme->getFrameWidth(); } - inline const unsigned int &getBorderWidth(void) const + inline const unsigned int getBorderWidth(void) const { return theme->getBorderWidth(); } inline const unsigned int getBorderWidth2x(void) const { return theme->getBorderWidth()*2; }

@@ -211,9 +211,9 @@ inline Bool isClock24Hour(void) { return resource.clock24hour; }

inline void saveClock24Hour(Bool c) { resource.clock24hour = c; } #endif // HAVE_STRFTIME - inline WindowStyle *getWindowStyle(void) { return theme->getWindowStyle(); } - inline MenuStyle *getMenuStyle(void) { return theme->getMenuStyle(); } - inline ToolbarStyle *getToolbarStyle(void) { return theme->getToolbarStyle(); } + inline Theme::WindowStyle *getWindowStyle(void) { return &theme->getWindowStyle(); } + inline Theme::MenuStyle *getMenuStyle(void) { return &theme->getMenuStyle(); } + inline Theme::ToolbarStyle *getToolbarStyle(void) { return &theme->getToolbarStyle(); } FluxboxWindow *getIcon(int);