/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 18:35:08 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110827183508-ugqbp58na4mtt1no
Updated the pixbuf calls to gtk3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
from gi.repository import Gtk
18
18
 
19
19
 
20
 
class PluginsPage(Gtk.Paned):
 
20
class PluginsPage(Gtk.VPaned):
21
21
 
22
22
    def __init__(self):
23
 
        super(PluginsPage, self).__init__()
24
 
        self.set_orientation(Gtk.Orientation.VERTICAL)
 
23
        Gtk.VPaned.__init__(self)
25
24
        self.set_border_width(12)
26
25
        self.set_position(216)
27
26
 
42
41
        treeview.set_headers_visible(False)
43
42
        treeview.set_model(self.model)
44
43
        treeview.connect("row-activated", self.row_selected)
45
 
        treeview.connect("cursor-changed", self.row_selected)
46
44
 
47
45
        cell = Gtk.CellRendererText()
48
46
        column = Gtk.TreeViewColumn()
70
68
        self.pack2(scrolledwindow, resize=False, shrink=True)
71
69
        self.show()
72
70
 
73
 
    def row_selected(self, tv, path=None, tvc=None):
74
 
        if path is None:
75
 
            (path, focus) = tv.get_cursor()
76
 
        if path is None:
77
 
            # The event was fired as the widget was destroyed.
78
 
            return
 
71
    def row_selected(self, tv, path, tvc):
79
72
        import bzrlib
80
73
        p = bzrlib.plugin.plugins()[self.model[path][0]].module
81
74
        from inspect import getdoc
124
117
            self.table.attach(align, 0, 2, 1, 2, Gtk.AttachOptions.EXPAND | Gtk.AttachOptions.FILL, Gtk.AttachOptions.FILL)
125
118
 
126
119
        self.table.show_all()
 
120
 
 
121