[kupfer] browser: Allow direct markup only when no selected match exists
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] browser: Allow direct markup only when no selected match exists
- Date: Sat, 24 Oct 2009 15:09:53 +0000 (UTC)
commit 49b04183d6cd7d3ce1033659e2e6ff4b5a7652aa
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sat Oct 24 17:06:27 2009 +0200
browser: Allow direct markup only when no selected match exists
kupfer/browser.py | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/browser.py b/kupfer/browser.py
index ac5e7d1..95835fb 100644
--- a/kupfer/browser.py
+++ b/kupfer/browser.py
@@ -257,9 +257,12 @@ class MatchView (gtk.Bin):
self.label.set_text("<no text>")
return
- if not self.cur_match or self.match_state is not State.Match:
- # Allow markup in the text string if we have no match
- self.label.set_markup(self.cur_text)
+ if not self.cur_match:
+ if self.match_state is not State.Match:
+ # Allow markup in the text string if we have no match
+ self.label.set_markup(self.cur_text)
+ else:
+ self.label.set_text(self.cur_text)
return
# update the text label
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]