diff options
Diffstat (limited to 'src/findbar.cc')
-rw-r--r-- | src/findbar.cc | 12 |
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() |