From 22a0baf7f459b267febfb16c7bc90cf460323a87 Mon Sep 17 00:00:00 2001
From: necoro <>
Date: Sat, 10 Mar 2007 20:48:27 +0000
Subject: Added plugin-data to about-dialog
---
portato/gui/gtk/windows.py | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
(limited to 'portato/gui/gtk/windows.py')
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 <necoro@necoro.net>
Thanks to Fred for support and ideas :P
""" % 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 [(""+n+"",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):
--
cgit v1.2.3-70-g09d2