/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to branchview/treemodel.py

  • Committer: Curtis Hovey
  • Date: 2011-08-12 19:50:45 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110812195045-y86bmaibs3pw5w6d
Updated buffer.getText() calls and ModifierType enums.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
__author__    = "Gary van der Merwe <garyvdm@gmail.com>"
8
8
 
9
9
 
10
 
from gi.repository import Gtk
11
 
from gi.repository import GObject
 
10
import gtk
 
11
import gobject
12
12
from xml.sax.saxutils import escape
13
13
 
14
14
from bzrlib.config import parse_username
34
34
TAGS = 12
35
35
AUTHORS = 13
36
36
 
37
 
class TreeModel(Gtk.TreeStore):
 
37
class TreeModel(Gtk.GenericTreeModel):
38
38
 
39
39
    def __init__ (self, branch, line_graph_data):
40
 
        Gtk.TreeStore.__init__(self)
 
40
        GObject.GObject.__init__(self)
41
41
        self.revisions = {}
42
42
        self.branch = branch
43
43
        self.repository = branch.repository
78
78
        if index == AUTHORS: return GObject.TYPE_STRING
79
79
 
80
80
    def on_get_iter(self, path):
81
 
        # XXX sinzui 2011-08-12: maybe path.get_indices()[0]?
82
81
        return path[0]
83
82
 
84
83
    def on_get_path(self, rowref):