diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-12 16:23:22 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-12 16:23:22 +0200 |
| commit | 6152afd41bc875529bf34367f22cf5067574d257 (patch) | |
| tree | 3ea2431739e880f4b042cf6d43e14fa8e8520848 /DistUpgrade/DistUpgradeViewGtk.py | |
| parent | 9c767ba4bb7d2632a34e7ecbcae314ff5691f7d3 (diff) | |
| download | python-apt-6152afd41bc875529bf34367f22cf5067574d257.tar.gz | |
* tell the user about demoted packages
Diffstat (limited to 'DistUpgrade/DistUpgradeViewGtk.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeViewGtk.py | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index 80575859..6454bbe3 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -378,15 +378,20 @@ class DistUpgradeViewGtk(DistUpgradeView,SimpleGladeApp): attrlist.insert(attr) label.set_property("attributes",attrlist) - def information(self, summary, msg): + def information(self, summary, msg, extended_msg=None): + self.dialog_information.set_transient_for(self.window_main) msg = "<big><b>%s</b></big>\n\n%s" % (summary,msg) - dialog = gtk.MessageDialog(parent=self.window_main, - flags=gtk.DIALOG_MODAL, - type=gtk.MESSAGE_INFO, - buttons=gtk.BUTTONS_CLOSE) - dialog.set_markup(msg) - dialog.run() - dialog.destroy() + self.label_information.set_markup(msg) + if extended_msg != None: + buffer = self.textview_information.get_buffer() + buffer.set_text(extended_msg) + self.scroll_information.show() + else: + self.scroll_information.hide() + self.dialog_information.realize() + self.dialog_information.window.set_functions(gtk.gdk.FUNC_MOVE) + self.dialog_information.run() + self.dialog_information.hide() def error(self, summary, msg, extended_msg=None): self.dialog_error.set_transient_for(self.window_main) @@ -402,7 +407,7 @@ class DistUpgradeViewGtk(DistUpgradeView,SimpleGladeApp): self.dialog_error.realize() self.dialog_error.window.set_functions(gtk.gdk.FUNC_MOVE) self.dialog_error.run() - self.dialog_error.destroy() + self.dialog_error.hide() return False def confirmChanges(self, summary, changes, downloadSize, actions=None): |
