diff options
author | vanadiae <vanadiae35@gmail.com> | 2021-06-01 15:59:13 +0200 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@gnome.org> | 2021-06-12 21:52:25 +0000 |
commit | b41370469dc408c802889058af072468e5b025dc (patch) | |
tree | 206f3deb92d44d07fb7a9d900c3f85c887905574 /src/ephy-action-bar-end.c | |
parent | ed35bb985e808056ff259be766bc09dc71b3ca6d (diff) | |
download | epiphany-b41370469dc408c802889058af072468e5b025dc.tar.gz |
window: Add shortcut to show bookmarks list
Most buttons in the headerbar have a shortcut to activate them, which
is nice given that using Tab to reach them is long because of all the UI
elements in the web page that take precedence.
But the bookmarks list popover doesn't have one, so let's add one :)
Diffstat (limited to 'src/ephy-action-bar-end.c')
-rw-r--r-- | src/ephy-action-bar-end.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ephy-action-bar-end.c b/src/ephy-action-bar-end.c index c979ffa41..ca3519b49 100644 --- a/src/ephy-action-bar-end.c +++ b/src/ephy-action-bar-end.c @@ -312,6 +312,12 @@ ephy_action_bar_end_set_show_bookmarks_button (EphyActionBarEnd *action_bar_end, gtk_widget_set_visible (action_bar_end->bookmarks_button, show); } +void +ephy_action_bar_end_show_bookmarks (EphyActionBarEnd *action_bar_end) +{ + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (action_bar_end->bookmarks_button), TRUE); +} + GtkWidget * ephy_action_bar_end_get_bookmarks_button (EphyActionBarEnd *action_bar_end) { |