Skip to content

Commit 76a7044

Browse files
committed
remove shortcuts hints from tooltips
There's a shortcut page for that
1 parent 1d4aaa5 commit 76a7044

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

data/resources/ui/window.blp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ template GeopardWindow: Adw.ApplicationWindow {
1818
Gtk.Button previous {
1919
icon-name: "go-previous-symbolic";
2020
action-name: "win.previous";
21-
tooltip-text: _("Go back one page (Alt+←)\nRight-click to show history");
21+
tooltip-text: _("Go back one page\nRight-click to show history");
2222
}
2323

2424
Gtk.Popover previous_popover {
@@ -32,7 +32,7 @@ template GeopardWindow: Adw.ApplicationWindow {
3232
Gtk.Button next {
3333
icon-name: "go-next-symbolic";
3434
action-name: "win.next";
35-
tooltip-text: _("Go forward one page (Alt+→)\nRight-click to show history");
35+
tooltip-text: _("Go forward one page\nRight-click to show history");
3636
}
3737

3838
Gtk.Popover next_popover {
@@ -45,14 +45,14 @@ template GeopardWindow: Adw.ApplicationWindow {
4545
Gtk.Button {
4646
icon-name: "view-refresh-symbolic";
4747
action-name: "win.reload";
48-
tooltip-text: _("Reload current page (Ctrl+R)");
48+
tooltip-text: _("Reload current page");
4949
}
5050

5151
[start]
5252
Gtk.Button {
5353
icon-name: "tab-new-symbolic";
5454
action-name: "win.new-tab";
55-
tooltip-text: _("Open a new tab (Ctrl+T)");
55+
tooltip-text: _("Open a new tab");
5656
}
5757

5858
[title]
@@ -152,28 +152,28 @@ template GeopardWindow: Adw.ApplicationWindow {
152152
Gtk.Button {
153153
icon-name: "go-previous-symbolic";
154154
action-name: "win.previous";
155-
tooltip-text: _("Go back one page (Alt+←)\nRight-click to show history");
155+
tooltip-text: _("Go back one page\nRight-click to show history");
156156
}
157157

158158
[start]
159159
Gtk.Button {
160160
icon-name: "go-next-symbolic";
161161
action-name: "win.next";
162-
tooltip-text: _("Go forward one page (Alt+→)\nRight-click to show history");
162+
tooltip-text: _("Go forward one page\nRight-click to show history");
163163
}
164164

165165
[start]
166166
Gtk.Button {
167167
icon-name: "view-refresh-symbolic";
168168
action-name: "win.reload";
169-
tooltip-text: _("Reload current page (Ctrl+R)");
169+
tooltip-text: _("Reload current page");
170170
}
171171

172172
[title]
173173
Gtk.Button {
174174
icon-name: "system-search-symbolic";
175175
action-name: "win.focus-url-bar";
176-
tooltip-text: _("Start searching (Ctrl+L)");
176+
tooltip-text: _("Start searching");
177177
}
178178

179179
[end]
@@ -187,7 +187,7 @@ template GeopardWindow: Adw.ApplicationWindow {
187187
Gtk.Button {
188188
icon-name: "tab-new-symbolic";
189189
action-name: "win.new-tab";
190-
tooltip-text: _("Open a new tab (Ctrl+T)");
190+
tooltip-text: _("Open a new tab");
191191
}
192192
}
193193
}

src/widgets/window.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ impl Window {
378378
&gtk::Button::builder()
379379
.icon_name("zoom-out-symbolic")
380380
.action_name("win.zoom-out")
381-
.tooltip_text("Zoom out (Ctrl+-)")
381+
.tooltip_text("Zoom out")
382382
.css_classes(vec!["flat", "circular"])
383383
.build(),
384384
);
@@ -389,7 +389,7 @@ impl Window {
389389
.flags(glib::BindingFlags::SYNC_CREATE)
390390
.transform_to(|_, zoom: f64| Some(format!("{:3}%", (zoom * 100.0) as usize).to_value()))
391391
.build();
392-
value_btn.set_tooltip_text(Some("Reset zoom level (Ctrl+0)"));
392+
value_btn.set_tooltip_text(Some("Reset zoom level"));
393393
value_btn.set_action_name(Some("win.reset-zoom"));
394394
value_btn.add_css_class("flat");
395395
value_btn.add_css_class("body");
@@ -399,7 +399,7 @@ impl Window {
399399
zoom_box.append(
400400
&gtk::Button::builder()
401401
.icon_name("zoom-in-symbolic")
402-
.tooltip_text("Zoom in (Ctrl++)")
402+
.tooltip_text("Zoom in")
403403
.css_classes(vec!["flat", "circular"])
404404
.action_name("win.zoom-in")
405405
.build(),

0 commit comments

Comments
 (0)