summaryrefslogtreecommitdiff
path: root/src/findbar.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-09-03 01:15:33 +0000
committercorvid <corvid@lavabit.com>2011-09-03 01:15:33 +0000
commit4472e0fdac7e83bd7db6e891d27c7f5d9309d390 (patch)
tree4a06c2fef4b9da86463804988cef2324c4b5257f /src/findbar.cc
parent5f13e27cd63be637586cf3dd1b6fdf5c98e93328 (diff)
use Fl::option() when disabling UI tooltips
Diffstat (limited to 'src/findbar.cc')
-rw-r--r--src/findbar.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/findbar.cc b/src/findbar.cc
index dcb9db53..47363db0 100644
--- a/src/findbar.cc
+++ b/src/findbar.cc
@@ -125,6 +125,7 @@ Findbar::Findbar(int width, int height) :
hide_btn->callback(hide_cb, this);
hide_btn->clear_visible_focus();
hide_btn->box(FL_THIN_UP_BOX);
+ hide_btn->tooltip("Hide");
add(hide_btn);
i = new MyInput(x, border, input_width, height);
@@ -140,6 +141,8 @@ Findbar::Findbar(int width, int height) :
next_btn->callback(search_cb, this);
next_btn->clear_visible_focus();
next_btn->box(FL_THIN_UP_BOX);
+ next_btn->tooltip("Find next occurrence of the search phrase\n"
+ "shortcut: Enter");
add(next_btn);
prev_btn= new Fl_Button(x, border, button_width, height, "Previous");
@@ -148,6 +151,8 @@ Findbar::Findbar(int width, int height) :
prev_btn->callback(searchBackwards_cb, this);
prev_btn->clear_visible_focus();
prev_btn->box(FL_THIN_UP_BOX);
+ prev_btn->tooltip("Find previous occurrence of the search phrase\n"
+ "shortcut: Shift+Enter");
add(prev_btn);
check_btn = new Fl_Check_Button(x, border, 2*button_width, height,
@@ -156,13 +161,6 @@ Findbar::Findbar(int width, int height) :
check_btn->clear_visible_focus();
add(check_btn);
- if (prefs.show_tooltip) {
- hide_btn->tooltip("Hide");
- next_btn->tooltip("Find next occurrence of the search phrase\n"
- "shortcut: Enter");
- prev_btn->tooltip("Find previous occurrence of the search phrase\n"
- "shortcut: Shift+Enter");
- }
}
Findbar::~Findbar()