Skip to content

Commit

Permalink
[WIP] add statusline widget for back/forward indicator
Browse files Browse the repository at this point in the history
Fixes #2737.
  • Loading branch information
blueyed committed Jun 18, 2017
1 parent a5db21a commit 0e955fe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions qutebrowser/mainwindow/statusbar/bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
from qutebrowser.browser import browsertab
from qutebrowser.config import config, style
from qutebrowser.utils import usertypes, log, objreg, utils
from qutebrowser.mainwindow.statusbar import (command, progress, keystring,
percentage, url, tabindex)
from qutebrowser.mainwindow.statusbar import (backforward, command, progress,
keystring, percentage, url,
tabindex)
from qutebrowser.mainwindow.statusbar import text as textwidget


Expand Down Expand Up @@ -184,6 +185,9 @@ def __init__(self, *, win_id, private, parent=None):
self.percentage = percentage.Percentage()
self._hbox.addWidget(self.percentage)

self.backforward = backforward.Backforward()
self._hbox.addWidget(self.backforward)

self.tabindex = tabindex.TabIndex()
self._hbox.addWidget(self.tabindex)

Expand Down Expand Up @@ -321,6 +325,7 @@ def on_tab_changed(self, tab):
self.url.on_tab_changed(tab)
self.prog.on_tab_changed(tab)
self.percentage.on_tab_changed(tab)
self.backforward.on_tab_changed(tab)
self.maybe_hide()
assert tab.private == self._color_flags.private

Expand Down

0 comments on commit 0e955fe

Please sign in to comment.