From 1e8e7feb924ae7bdf566bceec41d0f7061bded2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20L=C3=BCbbemeier?= Date: Sun, 4 Mar 2018 16:33:02 +0100 Subject: [PATCH] Tooltips for icon-only headerbar buttons --- src/ui.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui.rs b/src/ui.rs index b9bc378..5b4bc37 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -255,6 +255,7 @@ impl Ui { let shell_ref = Rc::clone(&self.shell); new_tab_btn.connect_clicked(move |_| shell_ref.borrow_mut().new_tab()); new_tab_btn.set_can_focus(false); + new_tab_btn.set_tooltip_text("Open a new tab"); header_bar.pack_start(&new_tab_btn); let paste_btn = @@ -262,6 +263,7 @@ impl Ui { let shell = self.shell.clone(); paste_btn.connect_clicked(move |_| shell.borrow_mut().edit_paste()); paste_btn.set_can_focus(false); + paste_btn.set_tooltip_text("Paste from clipboard"); header_bar.pack_end(&paste_btn); let save_btn = Button::new_with_label("Save All");