/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: Jelmer Vernooij
  • Date: 2010-02-28 15:19:15 UTC
  • mfrom: (674.1.1 bzr-gtk)
  • Revision ID: jelmer@samba.org-20100228151915-bvwflj8ongj2fwqd
Merge qense's indicator application work, but don't require appindicator to be installed.

Show diffs side-by-side

added added

removed removed

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