[PATCH] Use equivalent parent's constructor code for VcTreeStore
- From: Vincent Legoll <vincent legoll gmail com>
- To: meld-list gnome org
- Subject: [PATCH] Use equivalent parent's constructor code for VcTreeStore
- Date: Tue, 24 Feb 2009 21:37:26 +0100
Use DiffTreeStore's constructor as it is the same code, with the ntree
parameter set to 1
--
Vincent Legoll
Index: vcview.py
===================================================================
--- vcview.py (révision 1157)
+++ vcview.py (copie de travail)
@@ -89,11 +89,7 @@
class VcTreeStore(tree.DiffTreeStore):
def __init__(self):
- types = [type("")] * COL_END
- types[tree.COL_ICON] = type(tree.pixbuf_file)
- gtk.TreeStore.__init__(self, *types)
- self.ntree = 1
- self._setup_default_styles()
+ tree.DiffTreeStore.__init__(self, 1)
self.textstyle[tree.STATE_MISSING] = '<span foreground="#000088" strikethrough="true" weight="bold">%s</span>'
################################################################################
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]