summaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-08-04 11:40:41 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-08-04 11:40:41 -0400
commitd91e36e2bfa6f6a9c1d32ce8dd0a7b35d435e6b5 (patch)
tree97ddd735cd0965572be55a2b82814ab383418312 /src/ui.cc
parentbc05ad05cb92d0b67c6354c2ffe96b4957257242 (diff)
parent4af38021fb2c4acc8ea473254e573cbfb03c154a (diff)
merge
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/ui.cc b/src/ui.cc
index fc8624c6..4d8ee7c4 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -154,33 +154,6 @@ int CustInput::handle(int e)
//----------------------------------------------------------------------------
/*
- * A button that highlights on mouse over
- */
-class CustLightButton : public Fl_Button {
- Fl_Color norm_color;
-public:
- CustLightButton(int x, int y, int w, int h, const char *l=0) :
- Fl_Button(x,y,w,h,l) { norm_color = color(); };
- virtual int handle(int e);
-};
-
-int CustLightButton::handle(int e)
-{
- if (active()) {
- if (e == FL_ENTER) {
- color(51); // {17,26,51}
- redraw();
- } else if (e == FL_LEAVE || e == FL_RELEASE) {
- color(norm_color);
- redraw();
- }
- }
- return Fl_Button::handle(e);
-}
-
-//----------------------------------------------------------------------------
-
-/*
* Used to handle "paste" within the toolbar's Clear button.
*/
class CustPasteButton : public CustLightButton {