/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: Martin Pool
  • Date: 2010-05-27 03:07:30 UTC
  • mfrom: (688.1.5 201956-help)
  • Revision ID: mbp@canonical.com-20100527030730-os0opv1xroetccm9
Make find/goto more discoverable

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import gtk
24
24
 
25
 
 
26
25
class PluginsPage(gtk.VPaned):
27
 
 
28
26
    def __init__(self):
29
27
        gtk.VPaned.__init__(self)
30
28
        self.set_border_width(12)
58
56
        column.pack_start(cell, expand=True)
59
57
        column.add_attribute(cell, "text", 1)
60
58
        treeview.append_column(column)
61
 
 
 
59
        
62
60
        import bzrlib.plugin
63
61
        plugins = bzrlib.plugin.plugins()
64
62
        plugin_names = plugins.keys()
65
63
        plugin_names.sort()
66
64
        for name in plugin_names:
67
65
            self.model.append([name, getattr(plugins[name], '__file__', None)])
68
 
 
 
66
                 
69
67
        scrolledwindow = gtk.ScrolledWindow()
70
68
        scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
71
69
        scrolledwindow.add_with_viewport(self.table)