[meld] Don't use combobox text helpers in non-text-only box
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Don't use combobox text helpers in non-text-only box
- Date: Fri, 26 Apr 2013 22:43:45 +0000 (UTC)
commit 8344d58e874591a27cb9be045e5037adedffd8e2
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Apr 27 06:25:04 2013 +1000
Don't use combobox text helpers in non-text-only box
meld/vcview.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/meld/vcview.py b/meld/vcview.py
index 23a3ee0..8d879f0 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -110,8 +110,11 @@ class CommitDialog(gnomeglade.Component):
self.widget.destroy()
def on_previousentry_activate(self, gentry):
- buf = self.textview.get_buffer()
- buf.set_text(gentry.get_active_text())
+ idx = gentry.get_active()
+ if idx != -1:
+ model = gentry.get_model()
+ buf = self.textview.get_buffer()
+ buf.set_text(model[idx][0])
COL_LOCATION, COL_STATUS, COL_REVISION, COL_TAG, COL_OPTIONS, COL_END = \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]