/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: David Planella
  • Date: 2011-03-06 08:24:07 UTC
  • mfrom: (718 trunk)
  • mto: This revision was merged to the branch mainline in revision 719.
  • Revision ID: david.planella@ubuntu.com-20110306082407-y9zwkjje5oue9egw
Added preliminary internationalization support. Merged from trunk.

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