summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/windows.py
diff options
context:
space:
mode:
authornecoro <>2007-03-10 20:48:27 +0000
committernecoro <>2007-03-10 20:48:27 +0000
commit22a0baf7f459b267febfb16c7bc90cf460323a87 (patch)
treec5f599cb2a0d674fc2497b074100ac76f6b4000d /portato/gui/gtk/windows.py
parent3bc3cb0da005a683904e56aec93d4a2231f92a7a (diff)
downloadportato-22a0baf7f459b267febfb16c7bc90cf460323a87.tar.gz
portato-22a0baf7f459b267febfb16c7bc90cf460323a87.tar.bz2
portato-22a0baf7f459b267febfb16c7bc90cf460323a87.zip
Added plugin-data to about-dialog
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/windows.py19
1 files changed, 17 insertions, 2 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py
index 5638741..2e5fd85 100644
--- a/portato/gui/gtk/windows.py
+++ b/portato/gui/gtk/windows.py
@@ -102,7 +102,7 @@ class AbstractDialog (Window):
class AboutWindow (AbstractDialog):
"""A window showing the "about"-informations."""
- def __init__ (self, parent):
+ def __init__ (self, parent, plugins):
"""Constructor.
@param parent: the parent window
@@ -121,6 +121,21 @@ Copyright (C) 2006-2007 René 'Necoro' Neumann &lt;necoro@necoro.net&gt;
<small>Thanks to Fred for support and ideas :P</small>
""" % VERSION)
+ view = self.tree.get_widget("pluginList")
+ store = gtk.ListStore(str,str)
+
+ view.set_model(store)
+
+ cell = gtk.CellRendererText()
+ col = gtk.TreeViewColumn("Plugin", cell, markup = 0)
+ view.append_column(col)
+
+ col = gtk.TreeViewColumn("Authors", cell, text = 1)
+ view.append_column(col)
+
+ for p in [("<b>"+n+"</b>",a) for n,a in plugins]:
+ store.append(p)
+
self.window.show_all()
class SearchWindow (AbstractDialog):
@@ -983,7 +998,7 @@ class MainWindow (Window):
return True
def cb_about_clicked (self, button):
- AboutWindow(self.window)
+ AboutWindow(self.window, self.pluginQueue.get_plugin_data())
return True
def cb_right_click (self, object, event):