[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.0-22-ge53e415
Luca Bruno
lethalman88 at gmail.com
Wed Mar 25 22:56:48 UTC 2009
The following commit has been merged in the master branch:
commit 2e692ebdb3230aabb107af9819e0d9bafd962811
Author: Luca Bruno <lethalman88 at gmail.com>
Date: Wed Mar 25 22:06:04 2009 +0100
display an information dialog if python-vte is not available
diff --git a/debian/changelog b/debian/changelog
index f39719e..52d627a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,8 +12,10 @@ reportbug (4.1) UNRELEASED; urgency=low
- fix default when choosing for realname and email at configuration time
- offer interface configuration on explicit configuration or when no
interface is being specified
+ * reportbug/ui/gtk2_ui.py:
+ - display an information dialog if python-vte is not available
- -- Luca Bruno <lethalman88 at gmail.com> Wed, 25 Mar 2009 21:28:19 +0100
+ -- Luca Bruno <lethalman88 at gmail.com> Wed, 25 Mar 2009 22:05:09 +0100
reportbug (4.0) unstable; urgency=low
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 26e71f8..6570f7c 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -24,7 +24,6 @@
try:
import gtk
- from gtk import gdk
import gobject
except ImportError:
raise UINotImportable, 'Please install the python-gtk2 package to use this interface.'
@@ -32,7 +31,15 @@ except ImportError:
try:
import vte
except ImportError:
- raise UINotImportable, 'Please install the python-vte package to use this interface.'
+ message = "Please install the %s package to use the gtk2 interface."
+ dialog = gtk.MessageDialog (None, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
+ gtk.MESSAGE_INFO, gtk.BUTTONS_CLOSE, None)
+ dialog.set_markup (message % "<b>python-vte</b>")
+ dialog.run ()
+ dialog.destroy ()
+ while gtk.events_pending ():
+ gtk.main_iteration ()
+ raise UINotImportable, message % "python-vte"
try:
import gtkspell
@@ -40,7 +47,7 @@ try:
except:
has_spell = False
-gdk.threads_init ()
+gtk.gdk.threads_init ()
import sys
import re
@@ -501,7 +508,7 @@ class Page (ReportbugConnector):
self.assistant.insert_page (self.widget, self.page_num)
self.set_page_complete (self.default_complete)
self.set_page_type (self.page_type)
- self.assistant.set_page_side_image (self.widget, gdk.pixbuf_new_from_file (self.side_image))
+ self.assistant.set_page_side_image (self.widget, gtk.gdk.pixbuf_new_from_file (self.side_image))
self.assistant.set_next_page (self)
self.set_page_title ("Reportbug")
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list