Commit 0fed1f55 authored by Kai Willadsen's avatar Kai Willadsen

Booleanise access to BufferData.writable

parent 0e1dfc0a
......@@ -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
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:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment