all repos — fluxbox @ 698539d9b9012bb6c282725e775e358c1bd4a281

custom fork of the fluxbox windowmanager

more dead functions
markt markt
commit

698539d9b9012bb6c282725e775e358c1bd4a281

parent

a14c322dcbbc7330b6933230168d34411f7ac63b

M src/ArrowButton.hhsrc/ArrowButton.hh

@@ -44,8 +44,6 @@ void exposeEvent(XExposeEvent &event);

void enterNotifyEvent(XCrossingEvent &ce); void leaveNotifyEvent(XCrossingEvent &ce); - void setMouseMotionHandler(FbTk::EventHandler *eh) { m_mouse_handler = eh; } - void updateTheme(const FbTk::Theme &theme); private: void drawArrow();
M src/ClientPattern.hhsrc/ClientPattern.hh

@@ -67,7 +67,6 @@ */

bool addTerm(const std::string &str, WinProperty prop); inline void addMatch() { ++m_nummatches; } - inline void delMatch() { --m_nummatches; } inline bool operator == (const WinClient &win) const { return match(win);
M src/Container.ccsrc/Container.cc

@@ -61,12 +61,11 @@ FbTk::FbWindow::moveResize(x, y, width, height);

repositionItems(); } -/* +#ifdef NOT_USED void Container::move(int x, int y) { FbTk::FbWindow::move(x, y); // no need to reposition } -*/ void Container::insertItems(ItemList &item_list, int pos) {

@@ -96,6 +95,7 @@

// update position repositionItems(); } +#endif void Container::insertItem(Item item, int pos) { if (find(item) != -1)
M src/Container.hhsrc/Container.hh

@@ -55,7 +55,9 @@ void resize(unsigned int width, unsigned int height);

void moveResize(int x, int y, unsigned int width, unsigned int height); +#ifdef NOT_USED void insertItems(ItemList &list, int position=-1); +#endif void insertItem(Item item, int pos = -1); bool removeItem(int item); // return true if something was removed bool removeItem(Item item); // return true if something was removed
M src/FbTk/EventHandler.hhsrc/FbTk/EventHandler.hh

@@ -54,7 +54,9 @@ virtual void buttonReleaseEvent(XButtonEvent &) { }

virtual void exposeEvent(XExposeEvent &) { } virtual void motionNotifyEvent(XMotionEvent &) { } virtual void keyPressEvent(XKeyEvent &) { } +#ifdef NOT_USED virtual void keyReleaseEvent(XKeyEvent &) { } +#endif virtual void leaveNotifyEvent(XCrossingEvent &) { } virtual void enterNotifyEvent(XCrossingEvent &) { } };
M src/FbTk/EventManager.ccsrc/FbTk/EventManager.cc

@@ -153,7 +153,9 @@ case KeyPress:

evhand->keyPressEvent(ev.xkey); break; case KeyRelease: +#ifdef NOT_USED evhand->keyReleaseEvent(ev.xkey); +#endif break; case ButtonPress: evhand->buttonPressEvent(ev.xbutton);
M src/FbTk/FbDrawable.ccsrc/FbTk/FbDrawable.cc

@@ -89,11 +89,13 @@ drawable(), gc, points, npoints,

shape, mode); } +#ifdef NOT_USED void FbDrawable::drawPoint(GC gc, int x, int y) { if (drawable() == 0 || gc == 0) return; XDrawPoint(s_display, drawable(), gc, x, y); } +#endif XImage *FbDrawable::image(int x, int y, unsigned int width, unsigned int height) const { return XGetImage(s_display, drawable(),
M src/FbTk/FbDrawable.hhsrc/FbTk/FbDrawable.hh

@@ -48,7 +48,9 @@ int end_x, int end_y);

virtual void fillPolygon(GC gc, XPoint *points, int npoints, int shape, int mode); +#ifdef NOT_USED virtual void drawPoint(GC gc, int x, int y); +#endif virtual XImage *image(int x, int y, unsigned int width, unsigned int height) const;
M src/FbTk/FbWindow.ccsrc/FbTk/FbWindow.cc

@@ -449,9 +449,11 @@ void FbWindow::setCursor(Cursor cur) {

XDefineCursor(display(), window(), cur); } +#ifdef NOT_USED void FbWindow::unsetCursor() { XUndefineCursor(display(), window()); } +#endif void FbWindow::reparent(const FbWindow &parent, int x, int y, bool continuing) { XReparentWindow(display(), window(), parent.window(), x, y);
M src/FbTk/FbWindow.hhsrc/FbTk/FbWindow.hh

@@ -140,8 +140,10 @@ virtual void raise();

void setInputFocus(int revert_to, int time); /// defines a cursor for this window void setCursor(Cursor cur); +#ifdef NOT_USED /// uses the parents cursor instead void unsetCursor(); +#endif void reparent(const FbWindow &parent, int x, int y, bool continuing = true); bool property(Atom property,
M src/FbTk/GContext.hhsrc/FbTk/GContext.hh

@@ -93,7 +93,7 @@ /// set font id

inline void setFont(int fid) { XSetFont(m_display, m_gc, fid); } - +#ifdef NOT_USED inline void setClipMask(const FbTk::FbPixmap &mask) { XSetClipMask(m_display, m_gc, mask.drawable()); }

@@ -101,7 +101,7 @@

inline void setClipOrigin(int x, int y) { XSetClipOrigin(m_display, m_gc, x, y); } - +#endif inline void setGraphicsExposure(bool value) { XSetGraphicsExposures(m_display, m_gc, value); }

@@ -116,10 +116,11 @@ }

inline void setFillStyle(int style) { XSetFillStyle(m_display, m_gc, style); } +#ifdef NOT_USED inline void setFillRule(int rule) { XSetFillRule(m_display, m_gc, rule); } - +#endif inline void setLineAttributes(unsigned int width, int line_style, int cap_style,
M src/FbTk/ImageControl.ccsrc/FbTk/ImageControl.cc

@@ -311,12 +311,12 @@ if (gbit) *gbit = green_bits;

if (bbit) *bbit = blue_bits; } - +#ifdef NOT_USED void ImageControl::getXColorTable(XColor **c, int *n) { if (c) *c = m_colors; if (n) *n = m_num_colors; } - +#endif void ImageControl::getGradientBuffers(unsigned int w, unsigned int h,

@@ -373,14 +373,14 @@

XUngrabServer(disp); } - +#ifdef NOT_USED void ImageControl::setColorsPerChannel(int cpc) { if (cpc < 2) cpc = 2; if (cpc > 6) cpc = 6; m_colors_per_channel = cpc; } - +#endif unsigned long ImageControl::getSqrt(unsigned int x) const { if (! sqrt_table) {
M src/FbTk/ImageControl.hhsrc/FbTk/ImageControl.hh

@@ -70,11 +70,15 @@ void installRootColormap();

void removeImage(Pixmap thepix); void colorTables(const unsigned char **, const unsigned char **, const unsigned char **, int *, int *, int *, int *, int *, int *) const; +#ifdef NOT_USED void getXColorTable(XColor **, int *); +#endif void getGradientBuffers(unsigned int, unsigned int, unsigned int **, unsigned int **); void setDither(bool d) { m_dither = d; } +#ifdef NOT_USED void setColorsPerChannel(int cpc); +#endif void cleanCache(); private:
M src/FbTk/Menu.hhsrc/FbTk/Menu.hh

@@ -79,8 +79,10 @@ /// remove all items

void removeAll(); inline void setInternalMenu(bool val = true) { m_internal_menu = val; } inline void setAlignment(Alignment a) { m_alignment = a; } +#ifdef NOT_USED inline void setTorn() { m_torn = true; } inline void removeParent() { if (m_internal_menu) m_parent = 0; } +#endif /// raise this window virtual void raise(); /// lower this window

@@ -127,7 +129,9 @@ virtual void show();

/// hide menu virtual void hide(); virtual void clearWindow(); +#ifdef NOT_USED void setActiveIndex(int index) { m_active_index = index; } +#endif /*@}*/ /**
M src/FbTk/SignalHandler.ccsrc/FbTk/SignalHandler.cc

@@ -62,10 +62,12 @@

return true; } +#ifdef NOT_USED void SignalHandler::removeHandler(int signum) { if (signum < NSIG) s_signal_handler[signum] = 0; // clear handler pointer } +#endif void SignalHandler::handleSignal(int signum) { if (signum >= NSIG)
M src/FbTk/SignalHandler.hhsrc/FbTk/SignalHandler.hh

@@ -54,11 +54,13 @@ @param eh event handler

@param oldhandler_ret return handler to old sighandler */ bool registerHandler(int signum, SignalEventHandler *eh, SignalEventHandler **oldhandler_ret = 0); +#ifdef NOT_USED /** removes the signum handler @param signum signal number */ void removeHandler(int signum); +#endif private: SignalHandler();
M src/FbTk/TextButton.ccsrc/FbTk/TextButton.cc

@@ -98,12 +98,14 @@ m_font = &font;

font.validOrientation(m_orientation); // load the orientation! } +#ifdef NOT_USED /// set bevel and redraw text void TextButton::setBevel(int bevel) { if (m_bevel == bevel) return; m_bevel = bevel; } +#endif void TextButton::setTextPaddingLeft(unsigned int leftpadding) { m_left_padding = leftpadding;
M src/FbTk/TextButton.hhsrc/FbTk/TextButton.hh

@@ -44,7 +44,9 @@ void setJustify(FbTk::Justify just);

bool setOrientation(FbTk::Orientation orient); void setText(const std::string &text); void setFont(FbTk::Font &font); +#ifdef NOT_USED void setBevel(int bevel); +#endif void setTextPadding(unsigned int padding); void setTextPaddingLeft(unsigned int leftpadding); void setTextPaddingRight(unsigned int rightpadding);
M src/FbTk/TextureRender.hhsrc/FbTk/TextureRender.hh

@@ -84,7 +84,6 @@ void vgradient();

void cdgradient(); void pcgradient(); //@} - void makeGradientBuffers(); ImageControl &control; bool interlaced;
M src/FbWinFrame.hhsrc/FbWinFrame.hh

@@ -279,8 +279,6 @@ void applyUnfocusLabel(FbTk::TextButton &button);

void applyActiveLabel(FbTk::TextButton &button); void applyButtons(); // only called within applyTitlebar - void getActiveLabelPixmap(Pixmap &label_pm, Pixmap &title_pm, - FbTk::Color &label_color, FbTk::Color &title_color); void getCurrentFocusPixmap(Pixmap &label_pm, Pixmap &title_pm, FbTk::Color &label_color, FbTk::Color &title_color);
M src/FocusControl.ccsrc/FocusControl.cc

@@ -223,24 +223,6 @@ }

return 0; } -void FocusControl::raiseFocus() { - bool have_focused = false; - - // set have_focused if the currently focused window - // is on this screen - if (focusedWindow()) { - if (focusedWindow()->screen().screenNumber() == m_screen.screenNumber()) { - have_focused = true; - } - } - - // if we have a focused window on this screen and - // number of windows is greater than one raise the focused window - if (m_screen.currentWorkspace()->numberOfWindows() > 1 && have_focused) - focusedWindow()->raise(); - -} - void FocusControl::setScreenFocusedWindow(WinClient &win_client) { // raise newly focused window to the top of the focused list
M src/FocusControl.hhsrc/FocusControl.hh

@@ -72,7 +72,6 @@ void nextFocus() { cycleFocus(0, false); }

void prevFocus(int options) { cycleFocus(options, true); } void nextFocus(int options) { cycleFocus(options, false); } void cycleFocus(int options, bool cycle_reverse); - void raiseFocus(); void setScreenFocusedWindow(WinClient &win_client); void setFocusModel(FocusModel model);
M src/IconbarTool.ccsrc/IconbarTool.cc

@@ -511,20 +511,6 @@

renderTheme(); } -void IconbarTool::setDeiconifyMode(DeiconifyMode mode) { - if (mode == *m_deiconify_mode) - return; - - *m_deiconify_mode = mode; -} - -void IconbarTool::setWheelMode(WheelMode mode) { - if (mode == *m_wheel_mode) - return; - *m_wheel_mode = mode; -} - - unsigned int IconbarTool::width() const { return m_icon_container.width(); }
M src/IconbarTool.hhsrc/IconbarTool.hh

@@ -84,8 +84,6 @@ void show();

void hide(); void setAlignment(Container::Alignment a); void setMode(Mode mode); - void setDeiconifyMode(DeiconifyMode mode); - void setWheelMode(WheelMode mode); void parentMoved() { m_icon_container.parentMoved(); } unsigned int width() const;
M src/Screen.ccsrc/Screen.cc

@@ -744,18 +744,6 @@ m_windowmenu.reset(MenuCreator::createMenuType("windowmenu", screenNumber()));

m_windowmenu->setInternalMenu(); } -void BScreen::removeExtraWindowMenu(FbTk::Menu *menu) { - ExtraMenus::iterator it = find_if(m_extramenus.begin(), - m_extramenus.end(), - FbTk::Compose(bind2nd(equal_to<FbTk::Menu *>(), menu), - FbTk::Select2nd<ExtraMenus::value_type>())); - if (it != m_extramenus.end()) - m_extramenus.erase(it); - // recreate window menu - m_windowmenu.reset(MenuCreator::createMenuType("windowmenu", screenNumber())); - m_windowmenu->setInternalMenu(); -} - void BScreen::hideMenus() { // hide extra menus Fluxbox::instance()->hideExtraMenus(*this);
M src/Screen.hhsrc/Screen.hh

@@ -214,7 +214,6 @@ // for extras to add menus.

// These menus will be marked internal, // and deleted when the window dies (as opposed to Screen void addExtraWindowMenu(const FbTk::FbString &label, FbTk::Menu *menu); - void removeExtraWindowMenu(FbTk::Menu *menu); /// hide all windowmenus except the given one (if given) void hideWindowMenus(const FluxboxWindow* except= 0);

@@ -222,7 +221,6 @@

inline int getEdgeSnapThreshold() const { return *resource.edge_snap_threshold; } void setRootColormapInstalled(bool r) { root_colormap_installed = r; } - void saveRootCommand(std::string rootcmd) { *resource.rootcommand = rootcmd; } void saveTabPlacement(FbWinFrame::TabPlacement place) { *resource.tab_placement = place; }

@@ -347,7 +345,6 @@

/// create window frame for client window and attach it FluxboxWindow *createWindow(Window clientwin); FluxboxWindow *createWindow(WinClient &client); - void setupWindowActions(FluxboxWindow &win); /// request workspace space, i.e "don't maximize over this area" Strut *requestStrut(int head, int left, int right, int top, int bottom); /// remove requested space and destroy strut
M src/Slit.ccsrc/Slit.cc

@@ -1205,17 +1205,6 @@ prevName = name;

} } -void Slit::setAutoHide(bool val) { - *m_rc_auto_hide = val; - if (doAutoHide()) { - if (! m_timer.isTiming()) { - if (m_slitmenu.isVisible()) - m_timer.fireOnce(false); - m_timer.start(); - } - } -} - void Slit::setupMenu() { _FB_USES_NLS; using namespace FbTk;
M src/Slit.hhsrc/Slit.hh

@@ -73,7 +73,6 @@ void show() { frame.window.show(); }

void hide() { frame.window.hide(); } void setDirection(Direction dir); void setPlacement(Placement place); - void setAutoHide(bool val); void addClient(Window clientwin); void removeClient(Window clientwin, bool remap = true); void reconfigure();
M src/Toolbar.hhsrc/Toolbar.hh

@@ -136,7 +136,6 @@ private:

void rearrangeItems(); void deleteItems(); - void updateIconbarGraphics(); void setupMenus(); void clearStrut(); void updateStrut();
M src/Window.hhsrc/Window.hh

@@ -452,8 +452,6 @@ void updateRememberStateFromClient(WinClient &client);

void saveBlackboxAttribs(); void associateClientWindow(bool use_attrs = false, int x = 0, int y = 0, unsigned int width = 1, unsigned int height = 1); - void restoreGravity(); - void setGravityOffsets(); void setState(unsigned long stateval, bool setting_up); // modifies left and top if snap is necessary
M src/fluxbox.hhsrc/fluxbox.hh

@@ -152,11 +152,8 @@

void shutdown(); void load_rc(BScreen &scr); void saveStyleFilename(const char *val) { m_rc_stylefile = (val == 0 ? "" : val); } - void saveStyleOverlayFilename(const char *val) { m_rc_styleoverlayfile = (val == 0 ? "" : val); } void saveMenuFilename(const char *); void clearMenuFilenames(); - void saveTitlebarFilename(const char *); - void saveSlitlistFilename(const char *val) { m_rc_slitlistfile = (val == 0 ? "" : val); } void saveWindowSearch(Window win, WinClient *winclient); // some windows relate to the group, not the client, so we record separately // searchWindow on these windows will give the active client in the group