[kupfer] preferences: Use AboutDialog.get_content_area(..)
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] preferences: Use AboutDialog.get_content_area(..)
- Date: Mon, 31 Aug 2009 18:46:53 +0000 (UTC)
commit 522fb81fa483690ebdbf6b6d2e7508b95bb041d7
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Mon Aug 31 14:01:52 2009 +0200
preferences: Use AboutDialog.get_content_area(..)
kupfer/preferences.py | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/kupfer/preferences.py b/kupfer/preferences.py
index d28e1a1..2294f19 100644
--- a/kupfer/preferences.py
+++ b/kupfer/preferences.py
@@ -223,11 +223,9 @@ class PreferencesWindowController (pretty.OutputMixin):
about.set_version(version)
about.set_comments(description)
about.set_copyright(author)
- # extra info hack; find the vbox in the about dialog
- child = about.get_child()
- if isinstance(child, gtk.VBox):
- wid = self._make_plugin_info_widget(plugin_id)
- child.pack_start(wid)
+ child = about.get_content_area()
+ wid = self._make_plugin_info_widget(plugin_id)
+ child.pack_start(wid)
about.show()
about.connect("response", lambda widget, response: widget.destroy())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]