Merge lp:~snnw/lernid/highlight-tab into lp:lernid

Proposed by Sanne Wouda
Status: Merged
Merged at revision: not available
Proposed branch: lp:~snnw/lernid/highlight-tab
Merge into: lp:lernid
Diff against target: 13 lines (+2/-1)
1 file modified
bin/lernid (+2/-1)
To merge this branch: bzr merge lp:~snnw/lernid/highlight-tab
Reviewer Review Type Date Requested Status
Lernid Development Team Pending
Review via email: mp+18155@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sanne Wouda (snnw) wrote :

This prevents the session tab from highlighting when the tab is already active.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/lernid'
2--- bin/lernid 2010-01-26 21:10:05 +0000
3+++ bin/lernid 2010-01-27 18:54:11 +0000
4@@ -127,7 +127,8 @@
5 self.TAB_TERMINAL = 2
6
7 def highlight_session_tab(w, url=None):
8- self._session_label.set_label('<b>%s</b>' % _('_Session'))
9+ if self._tabs.get_current_page() != self.TAB_SESSION:
10+ self._session_label.set_label('<b>%s</b>' % _('_Session'))
11 def unhighlight_session_tab(w, p, page_num):
12 if page_num == self.TAB_SESSION:
13 self._session_label.set_label(_('_Session'))

Subscribers

People subscribed via source and target branches