/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 preferences/plugins.py

  • Committer: Curtis Hovey
  • Date: 2011-08-27 21:08:38 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110827210838-rzss3sw26wq5g0ze
Show the python plugin info when the cursor gives a row focus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        treeview.set_headers_visible(False)
42
42
        treeview.set_model(self.model)
43
43
        treeview.connect("row-activated", self.row_selected)
 
44
        treeview.connect("cursor-changed", self.row_selected)
44
45
 
45
46
        cell = Gtk.CellRendererText()
46
47
        column = Gtk.TreeViewColumn()
68
69
        self.pack2(scrolledwindow, resize=False, shrink=True)
69
70
        self.show()
70
71
 
71
 
    def row_selected(self, tv, path, tvc):
 
72
    def row_selected(self, tv, path=None, tvc=None):
 
73
        if path is None:
 
74
            (path, focus) = tv.get_cursor()
72
75
        import bzrlib
73
76
        p = bzrlib.plugin.plugins()[self.model[path][0]].module
74
77
        from inspect import getdoc
117
120
            self.table.attach(align, 0, 2, 1, 2, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
118
121
 
119
122
        self.table.show_all()
120
 
 
121