summaryrefslogtreecommitdiff
path: root/plugins/package_details.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/package_details.py')
-rw-r--r--plugins/package_details.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/package_details.py b/plugins/package_details.py
index 2ae9f56..49a88ad 100644
--- a/plugins/package_details.py
+++ b/plugins/package_details.py
@@ -56,7 +56,19 @@ class ChangelogDetail (ScrolledDetail):
_widget_name_ = "Changelog"
def widget_init (self):
- self._view_ = HighlightView(lambda p: os.path.join(p.get_package_path(), "ChangeLog"), ["changelog"])
+ self._view_ = HighlightView(self.view_update, ["changelog"])
ScrolledDetail.widget_init(self)
+ def view_update (self, pkg):
+ return os.path.join(pkg.get_package_path(), "Changelog")
+
+class EbuildDetail (ScrolledDetail):
+ __description__ = "Shows the ebuild of a package"
+ _widget_name_ = "Ebuild"
+
+ def widget_init(self):
+ self._view_ = HighlightView(lambda p: p.get_ebuild_path(), ["gentoo", "sh"])
+ ScrolledDetail.widget_init(self)
+
+register(EbuildDetail)
register(ChangelogDetail)
indows/basic.py?id=5e200de2c506c40d1f2c3152471b1b11d58c4f6f&follow=1'>Use this wrapper instead of ctypes to set the textdomain and stuff for the gt...René 'Necoro' Neumann1-9/+5 2009-09-03Add small wrapper to C-gettextRené 'Necoro' Neumann2-1/+22 2009-08-31Update messages.potRené 'Necoro' Neumann1-42/+94 2009-08-31Removed the gtk- strings from translationsRené 'Necoro' Neumann7-3639/+3479 2009-08-31Removed the 'translatable' attribute from 'gtk-*' stringsRené 'Necoro' Neumann5-11/+11 2009-08-31Removed TODO. Renamed ChangeLog to TODORené 'Necoro' Neumann2-40/+0 2009-08-27Only import stuff if necessaryRené 'Necoro' Neumann1-8/+8 2009-08-25Release the threadQueue-Lock in syncv0.13René 'Necoro' Neumann1-0/+1 2009-08-25Updated portugese translationAlberto Federman Neto1-650/+687 2009-08-15Update spanish translationDaniel Halens1-245/+258 2009-08-15Use boolean flags instead of obscure C flags for ipc.MessageQueueRené 'Necoro' Neumann3-13/+15 2009-08-15TypoRené 'Necoro' Neumann1-1/+1 2009-08-15Enhanced the extensions.shRené 'Necoro' Neumann1-3/+8 2009-08-15Move eix-format to correct locationRené 'Necoro' Neumann1-0/+0