[meld] Booleanise access to BufferData.writable



commit 0fed1f55a732ae6678ef77f5f6bdf5d4aa2af463
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Wed Mar 17 11:38:06 2010 +1000

    Booleanise access to BufferData.writable

 meld/filediff.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 7276b1e..81d684e 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -942,11 +942,11 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
             stock = None
             if self.textbuffer[i].data.modified:
                 shortnames[i] += "*"
-                if self.textbuffer[i].data.writable == 1:
+                if self.textbuffer[i].data.writable:
                     stock = gtk.STOCK_SAVE
                 else:
                     stock = gtk.STOCK_SAVE_AS
-            elif self.textbuffer[i].data.writable == 0:
+            elif not self.textbuffer[i].data.writable:
                 stock = gtk.STOCK_NO
             if stock:
                 self.statusimage[i].show()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]