summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ArrowButton.hh2
-rw-r--r--src/ClientPattern.hh1
-rw-r--r--src/Container.cc4
-rw-r--r--src/Container.hh2
-rw-r--r--src/FbTk/EventHandler.hh2
-rw-r--r--src/FbTk/EventManager.cc2
-rw-r--r--src/FbTk/FbDrawable.cc2
-rw-r--r--src/FbTk/FbDrawable.hh2
-rw-r--r--src/FbTk/FbWindow.cc2
-rw-r--r--src/FbTk/FbWindow.hh2
-rw-r--r--src/FbTk/GContext.hh7
-rw-r--r--src/FbTk/ImageControl.cc8
-rw-r--r--src/FbTk/ImageControl.hh4
-rw-r--r--src/FbTk/Menu.hh4
-rw-r--r--src/FbTk/SignalHandler.cc2
-rw-r--r--src/FbTk/SignalHandler.hh2
-rw-r--r--src/FbTk/TextButton.cc2
-rw-r--r--src/FbTk/TextButton.hh2
-rw-r--r--src/FbTk/TextureRender.hh1
-rw-r--r--src/FbWinFrame.hh2
-rw-r--r--src/FocusControl.cc18
-rw-r--r--src/FocusControl.hh1
-rw-r--r--src/IconbarTool.cc14
-rw-r--r--src/IconbarTool.hh2
-rw-r--r--src/Screen.cc12
-rw-r--r--src/Screen.hh3
-rw-r--r--src/Slit.cc11
-rw-r--r--src/Slit.hh1
-rw-r--r--src/Toolbar.hh1
-rw-r--r--src/Window.hh2
-rw-r--r--src/fluxbox.hh3
31 files changed, 40 insertions, 83 deletions
diff --git a/src/ArrowButton.hh b/src/ArrowButton.hh
index 59f81fa..a05f915 100644
--- a/src/ArrowButton.hh
+++ b/src/ArrowButton.hh
@@ -44,8 +44,6 @@ public:
44 void enterNotifyEvent(XCrossingEvent &ce); 44 void enterNotifyEvent(XCrossingEvent &ce);
45 void leaveNotifyEvent(XCrossingEvent &ce); 45 void leaveNotifyEvent(XCrossingEvent &ce);
46 46
47 void setMouseMotionHandler(FbTk::EventHandler *eh) { m_mouse_handler = eh; }
48
49 void updateTheme(const FbTk::Theme &theme); 47 void updateTheme(const FbTk::Theme &theme);
50private: 48private:
51 void drawArrow(); 49 void drawArrow();
diff --git a/src/ClientPattern.hh b/src/ClientPattern.hh
index 6db9c83..7610e77 100644
--- a/src/ClientPattern.hh
+++ b/src/ClientPattern.hh
@@ -67,7 +67,6 @@ public:
67 bool addTerm(const std::string &str, WinProperty prop); 67 bool addTerm(const std::string &str, WinProperty prop);
68 68
69 inline void addMatch() { ++m_nummatches; } 69 inline void addMatch() { ++m_nummatches; }
70 inline void delMatch() { --m_nummatches; }
71 70
72 inline bool operator == (const WinClient &win) const { 71 inline bool operator == (const WinClient &win) const {
73 return match(win); 72 return match(win);
diff --git a/src/Container.cc b/src/Container.cc
index aec5aba..d6ffcf3 100644
--- a/src/Container.cc
+++ b/src/Container.cc
@@ -61,12 +61,11 @@ void Container::moveResize(int x, int y,
61 repositionItems(); 61 repositionItems();
62} 62}
63 63
64/* 64#ifdef NOT_USED
65void Container::move(int x, int y) { 65void Container::move(int x, int y) {
66 FbTk::FbWindow::move(x, y); 66 FbTk::FbWindow::move(x, y);
67 // no need to reposition 67 // no need to reposition
68} 68}
69*/
70 69
71void Container::insertItems(ItemList &item_list, int pos) { 70void Container::insertItems(ItemList &item_list, int pos) {
72 71
@@ -96,6 +95,7 @@ void Container::insertItems(ItemList &item_list, int pos) {
96 // update position 95 // update position
97 repositionItems(); 96 repositionItems();
98} 97}
98#endif
99 99
100void Container::insertItem(Item item, int pos) { 100void Container::insertItem(Item item, int pos) {
101 if (find(item) != -1) 101 if (find(item) != -1)
diff --git a/src/Container.hh b/src/Container.hh
index a13ddcd..fc770fc 100644
--- a/src/Container.hh
+++ b/src/Container.hh
@@ -55,7 +55,9 @@ public:
55 void moveResize(int x, int y, 55 void moveResize(int x, int y,
56 unsigned int width, unsigned int height); 56 unsigned int width, unsigned int height);
57 57
58#ifdef NOT_USED
58 void insertItems(ItemList &list, int position=-1); 59 void insertItems(ItemList &list, int position=-1);
60#endif
59 void insertItem(Item item, int pos = -1); 61 void insertItem(Item item, int pos = -1);
60 bool removeItem(int item); // return true if something was removed 62 bool removeItem(int item); // return true if something was removed
61 bool removeItem(Item item); // return true if something was removed 63 bool removeItem(Item item); // return true if something was removed
diff --git a/src/FbTk/EventHandler.hh b/src/FbTk/EventHandler.hh
index 62e2cb9..3d2e545 100644
--- a/src/FbTk/EventHandler.hh
+++ b/src/FbTk/EventHandler.hh
@@ -54,7 +54,9 @@ public:
54 virtual void exposeEvent(XExposeEvent &) { } 54 virtual void exposeEvent(XExposeEvent &) { }
55 virtual void motionNotifyEvent(XMotionEvent &) { } 55 virtual void motionNotifyEvent(XMotionEvent &) { }
56 virtual void keyPressEvent(XKeyEvent &) { } 56 virtual void keyPressEvent(XKeyEvent &) { }
57#ifdef NOT_USED
57 virtual void keyReleaseEvent(XKeyEvent &) { } 58 virtual void keyReleaseEvent(XKeyEvent &) { }
59#endif
58 virtual void leaveNotifyEvent(XCrossingEvent &) { } 60 virtual void leaveNotifyEvent(XCrossingEvent &) { }
59 virtual void enterNotifyEvent(XCrossingEvent &) { } 61 virtual void enterNotifyEvent(XCrossingEvent &) { }
60}; 62};
diff --git a/src/FbTk/EventManager.cc b/src/FbTk/EventManager.cc
index 759c114..3370fb5 100644
--- a/src/FbTk/EventManager.cc
+++ b/src/FbTk/EventManager.cc
@@ -153,7 +153,9 @@ void EventManager::dispatch(Window win, XEvent &ev, bool parent) {
153 evhand->keyPressEvent(ev.xkey); 153 evhand->keyPressEvent(ev.xkey);
154 break; 154 break;
155 case KeyRelease: 155 case KeyRelease:
156#ifdef NOT_USED
156 evhand->keyReleaseEvent(ev.xkey); 157 evhand->keyReleaseEvent(ev.xkey);
158#endif
157 break; 159 break;
158 case ButtonPress: 160 case ButtonPress:
159 evhand->buttonPressEvent(ev.xbutton); 161 evhand->buttonPressEvent(ev.xbutton);
diff --git a/src/FbTk/FbDrawable.cc b/src/FbTk/FbDrawable.cc
index 15ebb7f..061da0b 100644
--- a/src/FbTk/FbDrawable.cc
+++ b/src/FbTk/FbDrawable.cc
@@ -89,11 +89,13 @@ void FbDrawable::fillPolygon(GC gc, XPoint *points, int npoints,
89 shape, mode); 89 shape, mode);
90} 90}
91 91
92#ifdef NOT_USED
92void FbDrawable::drawPoint(GC gc, int x, int y) { 93void FbDrawable::drawPoint(GC gc, int x, int y) {
93 if (drawable() == 0 || gc == 0) 94 if (drawable() == 0 || gc == 0)
94 return; 95 return;
95 XDrawPoint(s_display, drawable(), gc, x, y); 96 XDrawPoint(s_display, drawable(), gc, x, y);
96} 97}
98#endif
97 99
98XImage *FbDrawable::image(int x, int y, unsigned int width, unsigned int height) const { 100XImage *FbDrawable::image(int x, int y, unsigned int width, unsigned int height) const {
99 return XGetImage(s_display, drawable(), 101 return XGetImage(s_display, drawable(),
diff --git a/src/FbTk/FbDrawable.hh b/src/FbTk/FbDrawable.hh
index 347b207..7590f54 100644
--- a/src/FbTk/FbDrawable.hh
+++ b/src/FbTk/FbDrawable.hh
@@ -48,7 +48,9 @@ public:
48 virtual void fillPolygon(GC gc, XPoint *points, int npoints, 48 virtual void fillPolygon(GC gc, XPoint *points, int npoints,
49 int shape, int mode); 49 int shape, int mode);
50 50
51#ifdef NOT_USED
51 virtual void drawPoint(GC gc, int x, int y); 52 virtual void drawPoint(GC gc, int x, int y);
53#endif
52 54
53 virtual XImage *image(int x, int y, unsigned int width, unsigned int height) const; 55 virtual XImage *image(int x, int y, unsigned int width, unsigned int height) const;
54 56
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 090b788..2bf96f6 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -449,9 +449,11 @@ void FbWindow::setCursor(Cursor cur) {
449 XDefineCursor(display(), window(), cur); 449 XDefineCursor(display(), window(), cur);
450} 450}
451 451
452#ifdef NOT_USED
452void FbWindow::unsetCursor() { 453void FbWindow::unsetCursor() {
453 XUndefineCursor(display(), window()); 454 XUndefineCursor(display(), window());
454} 455}
456#endif
455 457
456void FbWindow::reparent(const FbWindow &parent, int x, int y, bool continuing) { 458void FbWindow::reparent(const FbWindow &parent, int x, int y, bool continuing) {
457 XReparentWindow(display(), window(), parent.window(), x, y); 459 XReparentWindow(display(), window(), parent.window(), x, y);
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index 1f0c4bd..c5494b0 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -140,8 +140,10 @@ public:
140 void setInputFocus(int revert_to, int time); 140 void setInputFocus(int revert_to, int time);
141 /// defines a cursor for this window 141 /// defines a cursor for this window
142 void setCursor(Cursor cur); 142 void setCursor(Cursor cur);
143#ifdef NOT_USED
143 /// uses the parents cursor instead 144 /// uses the parents cursor instead
144 void unsetCursor(); 145 void unsetCursor();
146#endif
145 void reparent(const FbWindow &parent, int x, int y, bool continuing = true); 147 void reparent(const FbWindow &parent, int x, int y, bool continuing = true);
146 148
147 bool property(Atom property, 149 bool property(Atom property,
diff --git a/src/FbTk/GContext.hh b/src/FbTk/GContext.hh
index a5e41c2..047de6f 100644
--- a/src/FbTk/GContext.hh
+++ b/src/FbTk/GContext.hh
@@ -93,7 +93,7 @@ public:
93 inline void setFont(int fid) { 93 inline void setFont(int fid) {
94 XSetFont(m_display, m_gc, fid); 94 XSetFont(m_display, m_gc, fid);
95 } 95 }
96 96#ifdef NOT_USED
97 inline void setClipMask(const FbTk::FbPixmap &mask) { 97 inline void setClipMask(const FbTk::FbPixmap &mask) {
98 XSetClipMask(m_display, m_gc, mask.drawable()); 98 XSetClipMask(m_display, m_gc, mask.drawable());
99 } 99 }
@@ -101,7 +101,7 @@ public:
101 inline void setClipOrigin(int x, int y) { 101 inline void setClipOrigin(int x, int y) {
102 XSetClipOrigin(m_display, m_gc, x, y); 102 XSetClipOrigin(m_display, m_gc, x, y);
103 } 103 }
104 104#endif
105 inline void setGraphicsExposure(bool value) { 105 inline void setGraphicsExposure(bool value) {
106 XSetGraphicsExposures(m_display, m_gc, value); 106 XSetGraphicsExposures(m_display, m_gc, value);
107 } 107 }
@@ -116,10 +116,11 @@ public:
116 inline void setFillStyle(int style) { 116 inline void setFillStyle(int style) {
117 XSetFillStyle(m_display, m_gc, style); 117 XSetFillStyle(m_display, m_gc, style);
118 } 118 }
119#ifdef NOT_USED
119 inline void setFillRule(int rule) { 120 inline void setFillRule(int rule) {
120 XSetFillRule(m_display, m_gc, rule); 121 XSetFillRule(m_display, m_gc, rule);
121 } 122 }
122 123#endif
123 inline void setLineAttributes(unsigned int width, 124 inline void setLineAttributes(unsigned int width,
124 int line_style, 125 int line_style,
125 int cap_style, 126 int cap_style,
diff --git a/src/FbTk/ImageControl.cc b/src/FbTk/ImageControl.cc
index 64e3db5..f209958 100644
--- a/src/FbTk/ImageControl.cc
+++ b/src/FbTk/ImageControl.cc
@@ -311,12 +311,12 @@ void ImageControl::colorTables(const unsigned char **rmt, const unsigned char **
311 if (bbit) *bbit = blue_bits; 311 if (bbit) *bbit = blue_bits;
312} 312}
313 313
314 314#ifdef NOT_USED
315void ImageControl::getXColorTable(XColor **c, int *n) { 315void ImageControl::getXColorTable(XColor **c, int *n) {
316 if (c) *c = m_colors; 316 if (c) *c = m_colors;
317 if (n) *n = m_num_colors; 317 if (n) *n = m_num_colors;
318} 318}
319 319#endif
320 320
321void ImageControl::getGradientBuffers(unsigned int w, 321void ImageControl::getGradientBuffers(unsigned int w,
322 unsigned int h, 322 unsigned int h,
@@ -373,14 +373,14 @@ void ImageControl::installRootColormap() {
373 XUngrabServer(disp); 373 XUngrabServer(disp);
374} 374}
375 375
376 376#ifdef NOT_USED
377void ImageControl::setColorsPerChannel(int cpc) { 377void ImageControl::setColorsPerChannel(int cpc) {
378 if (cpc < 2) cpc = 2; 378 if (cpc < 2) cpc = 2;
379 if (cpc > 6) cpc = 6; 379 if (cpc > 6) cpc = 6;
380 380
381 m_colors_per_channel = cpc; 381 m_colors_per_channel = cpc;
382} 382}
383 383#endif
384 384
385unsigned long ImageControl::getSqrt(unsigned int x) const { 385unsigned long ImageControl::getSqrt(unsigned int x) const {
386 if (! sqrt_table) { 386 if (! sqrt_table) {
diff --git a/src/FbTk/ImageControl.hh b/src/FbTk/ImageControl.hh
index 18ad8db..a0f1cc7 100644
--- a/src/FbTk/ImageControl.hh
+++ b/src/FbTk/ImageControl.hh
@@ -70,11 +70,15 @@ public:
70 void removeImage(Pixmap thepix); 70 void removeImage(Pixmap thepix);
71 void colorTables(const unsigned char **, const unsigned char **, const unsigned char **, 71 void colorTables(const unsigned char **, const unsigned char **, const unsigned char **,
72 int *, int *, int *, int *, int *, int *) const; 72 int *, int *, int *, int *, int *, int *) const;
73#ifdef NOT_USED
73 void getXColorTable(XColor **, int *); 74 void getXColorTable(XColor **, int *);
75#endif
74 void getGradientBuffers(unsigned int, unsigned int, 76 void getGradientBuffers(unsigned int, unsigned int,
75 unsigned int **, unsigned int **); 77 unsigned int **, unsigned int **);
76 void setDither(bool d) { m_dither = d; } 78 void setDither(bool d) { m_dither = d; }
79#ifdef NOT_USED
77 void setColorsPerChannel(int cpc); 80 void setColorsPerChannel(int cpc);
81#endif
78 82
79 void cleanCache(); 83 void cleanCache();
80private: 84private:
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh
index 26262f2..4490eb8 100644
--- a/src/FbTk/Menu.hh
+++ b/src/FbTk/Menu.hh
@@ -79,8 +79,10 @@ public:
79 void removeAll(); 79 void removeAll();
80 inline void setInternalMenu(bool val = true) { m_internal_menu = val; } 80 inline void setInternalMenu(bool val = true) { m_internal_menu = val; }
81 inline void setAlignment(Alignment a) { m_alignment = a; } 81 inline void setAlignment(Alignment a) { m_alignment = a; }
82#ifdef NOT_USED
82 inline void setTorn() { m_torn = true; } 83 inline void setTorn() { m_torn = true; }
83 inline void removeParent() { if (m_internal_menu) m_parent = 0; } 84 inline void removeParent() { if (m_internal_menu) m_parent = 0; }
85#endif
84 /// raise this window 86 /// raise this window
85 virtual void raise(); 87 virtual void raise();
86 /// lower this window 88 /// lower this window
@@ -127,7 +129,9 @@ public:
127 /// hide menu 129 /// hide menu
128 virtual void hide(); 130 virtual void hide();
129 virtual void clearWindow(); 131 virtual void clearWindow();
132#ifdef NOT_USED
130 void setActiveIndex(int index) { m_active_index = index; } 133 void setActiveIndex(int index) { m_active_index = index; }
134#endif
131 /*@}*/ 135 /*@}*/
132 136
133 /** 137 /**
diff --git a/src/FbTk/SignalHandler.cc b/src/FbTk/SignalHandler.cc
index 26f1c6e..a8b4192 100644
--- a/src/FbTk/SignalHandler.cc
+++ b/src/FbTk/SignalHandler.cc
@@ -62,10 +62,12 @@ bool SignalHandler::registerHandler(int signum, SignalEventHandler *eh,
62 return true; 62 return true;
63} 63}
64 64
65#ifdef NOT_USED
65void SignalHandler::removeHandler(int signum) { 66void SignalHandler::removeHandler(int signum) {
66 if (signum < NSIG) 67 if (signum < NSIG)
67 s_signal_handler[signum] = 0; // clear handler pointer 68 s_signal_handler[signum] = 0; // clear handler pointer
68} 69}
70#endif
69 71
70void SignalHandler::handleSignal(int signum) { 72void SignalHandler::handleSignal(int signum) {
71 if (signum >= NSIG) 73 if (signum >= NSIG)
diff --git a/src/FbTk/SignalHandler.hh b/src/FbTk/SignalHandler.hh
index 7b013cf..1f3af4a 100644
--- a/src/FbTk/SignalHandler.hh
+++ b/src/FbTk/SignalHandler.hh
@@ -54,11 +54,13 @@ public:
54 @param oldhandler_ret return handler to old sighandler 54 @param oldhandler_ret return handler to old sighandler
55 */ 55 */
56 bool registerHandler(int signum, SignalEventHandler *eh, SignalEventHandler **oldhandler_ret = 0); 56 bool registerHandler(int signum, SignalEventHandler *eh, SignalEventHandler **oldhandler_ret = 0);
57#ifdef NOT_USED
57 /** 58 /**
58 removes the signum handler 59 removes the signum handler
59 @param signum signal number 60 @param signum signal number
60 */ 61 */
61 void removeHandler(int signum); 62 void removeHandler(int signum);
63#endif
62private: 64private:
63 SignalHandler(); 65 SignalHandler();
64 66
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc
index 474c094..948f847 100644
--- a/src/FbTk/TextButton.cc
+++ b/src/FbTk/TextButton.cc
@@ -98,12 +98,14 @@ void TextButton::setFont(FbTk::Font &font) {
98 font.validOrientation(m_orientation); // load the orientation! 98 font.validOrientation(m_orientation); // load the orientation!
99} 99}
100 100
101#ifdef NOT_USED
101/// set bevel and redraw text 102/// set bevel and redraw text
102void TextButton::setBevel(int bevel) { 103void TextButton::setBevel(int bevel) {
103 if (m_bevel == bevel) 104 if (m_bevel == bevel)
104 return; 105 return;
105 m_bevel = bevel; 106 m_bevel = bevel;
106} 107}
108#endif
107 109
108void TextButton::setTextPaddingLeft(unsigned int leftpadding) { 110void TextButton::setTextPaddingLeft(unsigned int leftpadding) {
109 m_left_padding = leftpadding; 111 m_left_padding = leftpadding;
diff --git a/src/FbTk/TextButton.hh b/src/FbTk/TextButton.hh
index c9f3fbf..26a2469 100644
--- a/src/FbTk/TextButton.hh
+++ b/src/FbTk/TextButton.hh
@@ -44,7 +44,9 @@ public:
44 bool setOrientation(FbTk::Orientation orient); 44 bool setOrientation(FbTk::Orientation orient);
45 void setText(const std::string &text); 45 void setText(const std::string &text);
46 void setFont(FbTk::Font &font); 46 void setFont(FbTk::Font &font);
47#ifdef NOT_USED
47 void setBevel(int bevel); 48 void setBevel(int bevel);
49#endif
48 void setTextPadding(unsigned int padding); 50 void setTextPadding(unsigned int padding);
49 void setTextPaddingLeft(unsigned int leftpadding); 51 void setTextPaddingLeft(unsigned int leftpadding);
50 void setTextPaddingRight(unsigned int rightpadding); 52 void setTextPaddingRight(unsigned int rightpadding);
diff --git a/src/FbTk/TextureRender.hh b/src/FbTk/TextureRender.hh
index 14b5547..7f796b7 100644
--- a/src/FbTk/TextureRender.hh
+++ b/src/FbTk/TextureRender.hh
@@ -84,7 +84,6 @@ private:
84 void cdgradient(); 84 void cdgradient();
85 void pcgradient(); 85 void pcgradient();
86 //@} 86 //@}
87 void makeGradientBuffers();
88 87
89 ImageControl &control; 88 ImageControl &control;
90 bool interlaced; 89 bool interlaced;
diff --git a/src/FbWinFrame.hh b/src/FbWinFrame.hh
index fc64900..241b435 100644
--- a/src/FbWinFrame.hh
+++ b/src/FbWinFrame.hh
@@ -279,8 +279,6 @@ private:
279 void applyActiveLabel(FbTk::TextButton &button); 279 void applyActiveLabel(FbTk::TextButton &button);
280 void applyButtons(); // only called within applyTitlebar 280 void applyButtons(); // only called within applyTitlebar
281 281
282 void getActiveLabelPixmap(Pixmap &label_pm, Pixmap &title_pm,
283 FbTk::Color &label_color, FbTk::Color &title_color);
284 void getCurrentFocusPixmap(Pixmap &label_pm, Pixmap &title_pm, 282 void getCurrentFocusPixmap(Pixmap &label_pm, Pixmap &title_pm,
285 FbTk::Color &label_color, FbTk::Color &title_color); 283 FbTk::Color &label_color, FbTk::Color &title_color);
286 284
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index 664d41d..f0d1387 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -223,24 +223,6 @@ WinClient *FocusControl::lastFocusedWindow(FluxboxWindow &group, WinClient *igno
223 return 0; 223 return 0;
224} 224}
225 225
226void FocusControl::raiseFocus() {
227 bool have_focused = false;
228
229 // set have_focused if the currently focused window
230 // is on this screen
231 if (focusedWindow()) {
232 if (focusedWindow()->screen().screenNumber() == m_screen.screenNumber()) {
233 have_focused = true;
234 }
235 }
236
237 // if we have a focused window on this screen and
238 // number of windows is greater than one raise the focused window
239 if (m_screen.currentWorkspace()->numberOfWindows() > 1 && have_focused)
240 focusedWindow()->raise();
241
242}
243
244void FocusControl::setScreenFocusedWindow(WinClient &win_client) { 226void FocusControl::setScreenFocusedWindow(WinClient &win_client) {
245 227
246 // raise newly focused window to the top of the focused list 228 // raise newly focused window to the top of the focused list
diff --git a/src/FocusControl.hh b/src/FocusControl.hh
index 7fcfb2d..d76b51d 100644
--- a/src/FocusControl.hh
+++ b/src/FocusControl.hh
@@ -72,7 +72,6 @@ public:
72 void prevFocus(int options) { cycleFocus(options, true); } 72 void prevFocus(int options) { cycleFocus(options, true); }
73 void nextFocus(int options) { cycleFocus(options, false); } 73 void nextFocus(int options) { cycleFocus(options, false); }
74 void cycleFocus(int options, bool cycle_reverse); 74 void cycleFocus(int options, bool cycle_reverse);
75 void raiseFocus();
76 75
77 void setScreenFocusedWindow(WinClient &win_client); 76 void setScreenFocusedWindow(WinClient &win_client);
78 void setFocusModel(FocusModel model); 77 void setFocusModel(FocusModel model);
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index 73817f1..7784327 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -511,20 +511,6 @@ void IconbarTool::setMode(Mode mode) {
511 renderTheme(); 511 renderTheme();
512} 512}
513 513
514void IconbarTool::setDeiconifyMode(DeiconifyMode mode) {
515 if (mode == *m_deiconify_mode)
516 return;
517
518 *m_deiconify_mode = mode;
519}
520
521void IconbarTool::setWheelMode(WheelMode mode) {
522 if (mode == *m_wheel_mode)
523 return;
524 *m_wheel_mode = mode;
525}
526
527
528unsigned int IconbarTool::width() const { 514unsigned int IconbarTool::width() const {
529 return m_icon_container.width(); 515 return m_icon_container.width();
530} 516}
diff --git a/src/IconbarTool.hh b/src/IconbarTool.hh
index b40eb41..e39a39b 100644
--- a/src/IconbarTool.hh
+++ b/src/IconbarTool.hh
@@ -84,8 +84,6 @@ public:
84 void hide(); 84 void hide();
85 void setAlignment(Container::Alignment a); 85 void setAlignment(Container::Alignment a);
86 void setMode(Mode mode); 86 void setMode(Mode mode);
87 void setDeiconifyMode(DeiconifyMode mode);
88 void setWheelMode(WheelMode mode);
89 void parentMoved() { m_icon_container.parentMoved(); } 87 void parentMoved() { m_icon_container.parentMoved(); }
90 88
91 unsigned int width() const; 89 unsigned int width() const;
diff --git a/src/Screen.cc b/src/Screen.cc
index 71e4c54..7523f8a 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -744,18 +744,6 @@ void BScreen::addExtraWindowMenu(const FbTk::FbString &label, FbTk::Menu *menu)
744 m_windowmenu->setInternalMenu(); 744 m_windowmenu->setInternalMenu();
745} 745}
746 746
747void BScreen::removeExtraWindowMenu(FbTk::Menu *menu) {
748 ExtraMenus::iterator it = find_if(m_extramenus.begin(),
749 m_extramenus.end(),
750 FbTk::Compose(bind2nd(equal_to<FbTk::Menu *>(), menu),
751 FbTk::Select2nd<ExtraMenus::value_type>()));
752 if (it != m_extramenus.end())
753 m_extramenus.erase(it);
754 // recreate window menu
755 m_windowmenu.reset(MenuCreator::createMenuType("windowmenu", screenNumber()));
756 m_windowmenu->setInternalMenu();
757}
758
759void BScreen::hideMenus() { 747void BScreen::hideMenus() {
760 // hide extra menus 748 // hide extra menus
761 Fluxbox::instance()->hideExtraMenus(*this); 749 Fluxbox::instance()->hideExtraMenus(*this);
diff --git a/src/Screen.hh b/src/Screen.hh
index 29bf26d..430ba96 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -214,7 +214,6 @@ public:
214 // These menus will be marked internal, 214 // These menus will be marked internal,
215 // and deleted when the window dies (as opposed to Screen 215 // and deleted when the window dies (as opposed to Screen
216 void addExtraWindowMenu(const FbTk::FbString &label, FbTk::Menu *menu); 216 void addExtraWindowMenu(const FbTk::FbString &label, FbTk::Menu *menu);
217 void removeExtraWindowMenu(FbTk::Menu *menu);
218 217
219 /// hide all windowmenus except the given one (if given) 218 /// hide all windowmenus except the given one (if given)
220 void hideWindowMenus(const FluxboxWindow* except= 0); 219 void hideWindowMenus(const FluxboxWindow* except= 0);
@@ -222,7 +221,6 @@ public:
222 inline int getEdgeSnapThreshold() const { return *resource.edge_snap_threshold; } 221 inline int getEdgeSnapThreshold() const { return *resource.edge_snap_threshold; }
223 222
224 void setRootColormapInstalled(bool r) { root_colormap_installed = r; } 223 void setRootColormapInstalled(bool r) { root_colormap_installed = r; }
225 void saveRootCommand(std::string rootcmd) { *resource.rootcommand = rootcmd; }
226 224
227 void saveTabPlacement(FbWinFrame::TabPlacement place) { *resource.tab_placement = place; } 225 void saveTabPlacement(FbWinFrame::TabPlacement place) { *resource.tab_placement = place; }
228 226
@@ -347,7 +345,6 @@ public:
347 /// create window frame for client window and attach it 345 /// create window frame for client window and attach it
348 FluxboxWindow *createWindow(Window clientwin); 346 FluxboxWindow *createWindow(Window clientwin);
349 FluxboxWindow *createWindow(WinClient &client); 347 FluxboxWindow *createWindow(WinClient &client);
350 void setupWindowActions(FluxboxWindow &win);
351 /// request workspace space, i.e "don't maximize over this area" 348 /// request workspace space, i.e "don't maximize over this area"
352 Strut *requestStrut(int head, int left, int right, int top, int bottom); 349 Strut *requestStrut(int head, int left, int right, int top, int bottom);
353 /// remove requested space and destroy strut 350 /// remove requested space and destroy strut
diff --git a/src/Slit.cc b/src/Slit.cc
index e1a4b0f..265bf8b 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -1205,17 +1205,6 @@ void Slit::saveClientList() {
1205 } 1205 }
1206} 1206}
1207 1207
1208void Slit::setAutoHide(bool val) {
1209 *m_rc_auto_hide = val;
1210 if (doAutoHide()) {
1211 if (! m_timer.isTiming()) {
1212 if (m_slitmenu.isVisible())
1213 m_timer.fireOnce(false);
1214 m_timer.start();
1215 }
1216 }
1217}
1218
1219void Slit::setupMenu() { 1208void Slit::setupMenu() {
1220 _FB_USES_NLS; 1209 _FB_USES_NLS;
1221 using namespace FbTk; 1210 using namespace FbTk;
diff --git a/src/Slit.hh b/src/Slit.hh
index a30933a..35919c6 100644
--- a/src/Slit.hh
+++ b/src/Slit.hh
@@ -73,7 +73,6 @@ public:
73 void hide() { frame.window.hide(); } 73 void hide() { frame.window.hide(); }
74 void setDirection(Direction dir); 74 void setDirection(Direction dir);
75 void setPlacement(Placement place); 75 void setPlacement(Placement place);
76 void setAutoHide(bool val);
77 void addClient(Window clientwin); 76 void addClient(Window clientwin);
78 void removeClient(Window clientwin, bool remap = true); 77 void removeClient(Window clientwin, bool remap = true);
79 void reconfigure(); 78 void reconfigure();
diff --git a/src/Toolbar.hh b/src/Toolbar.hh
index c310748..70e32d8 100644
--- a/src/Toolbar.hh
+++ b/src/Toolbar.hh
@@ -136,7 +136,6 @@ private:
136 void rearrangeItems(); 136 void rearrangeItems();
137 void deleteItems(); 137 void deleteItems();
138 138
139 void updateIconbarGraphics();
140 void setupMenus(); 139 void setupMenus();
141 void clearStrut(); 140 void clearStrut();
142 void updateStrut(); 141 void updateStrut();
diff --git a/src/Window.hh b/src/Window.hh
index 5358e54..8ac3918 100644
--- a/src/Window.hh
+++ b/src/Window.hh
@@ -452,8 +452,6 @@ private:
452 void saveBlackboxAttribs(); 452 void saveBlackboxAttribs();
453 void associateClientWindow(bool use_attrs = false, int x = 0, int y = 0, unsigned int width = 1, unsigned int height = 1); 453 void associateClientWindow(bool use_attrs = false, int x = 0, int y = 0, unsigned int width = 1, unsigned int height = 1);
454 454
455 void restoreGravity();
456 void setGravityOffsets();
457 void setState(unsigned long stateval, bool setting_up); 455 void setState(unsigned long stateval, bool setting_up);
458 456
459 // modifies left and top if snap is necessary 457 // modifies left and top if snap is necessary
diff --git a/src/fluxbox.hh b/src/fluxbox.hh
index 2a113e5..0eacc8d 100644
--- a/src/fluxbox.hh
+++ b/src/fluxbox.hh
@@ -152,11 +152,8 @@ public:
152 void shutdown(); 152 void shutdown();
153 void load_rc(BScreen &scr); 153 void load_rc(BScreen &scr);
154 void saveStyleFilename(const char *val) { m_rc_stylefile = (val == 0 ? "" : val); } 154 void saveStyleFilename(const char *val) { m_rc_stylefile = (val == 0 ? "" : val); }
155 void saveStyleOverlayFilename(const char *val) { m_rc_styleoverlayfile = (val == 0 ? "" : val); }
156 void saveMenuFilename(const char *); 155 void saveMenuFilename(const char *);
157 void clearMenuFilenames(); 156 void clearMenuFilenames();
158 void saveTitlebarFilename(const char *);
159 void saveSlitlistFilename(const char *val) { m_rc_slitlistfile = (val == 0 ? "" : val); }
160 void saveWindowSearch(Window win, WinClient *winclient); 157 void saveWindowSearch(Window win, WinClient *winclient);
161 // some windows relate to the group, not the client, so we record separately 158 // some windows relate to the group, not the client, so we record separately
162 // searchWindow on these windows will give the active client in the group 159 // searchWindow on these windows will give the active client in the group