From 543df5c49e8a169bd6e2b884fa7b8b501f15823b Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Mon, 9 Jan 2006 18:32:58 +0000 Subject: * gui.py (ExceptionWindow): Tweak display of the exception window. * ui/exn.glade: Change default size, add an hbox with an icon next to the label. * pixmaps/exception.png: Friendly icon indicating bad things have happened. --- ChangeLog | 9 +++++++ gui.py | 9 +++++++ pixmaps/exception.png | Bin 0 -> 3461 bytes ui/exn.glade | 70 +++++++++++++++++++++++++++++++++++--------------- 4 files changed, 67 insertions(+), 21 deletions(-) create mode 100644 pixmaps/exception.png diff --git a/ChangeLog b/ChangeLog index ceb75f16a..b943afd8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-01-09 David Cantrell + + * gui.py (ExceptionWindow): Tweak display of the exception + window. + * ui/exn.glade: Change default size, add an hbox with an icon + next to the label. + * pixmaps/exception.png: Friendly icon indicating bad things + have happened. + 2006-01-08 Jeremy Katz * iw/GroupSelector.py (OptionalPackageSelector.__init__): Tweak diff --git a/gui.py b/gui.py index 657678339..9cd8f44e0 100755 --- a/gui.py +++ b/gui.py @@ -588,9 +588,18 @@ class ExceptionWindow: exnView = exnxml.get_widget("exnView") expander = exnxml.get_widget("exnExpander") info = exnxml.get_widget("info") + infoImage = exnxml.get_widget("infoImage") info.set_text(exceptionText) + # IKEA is fun + infoImage.clear() + for imgdir in ("/usr/share/anaconda/pixmaps", "/mnt/source/RHupdates"): + img = imgdir + "/exception.png" + if os.path.exists(img): + infoImage.set_from_file(img) + break + # Add the brief traceback message to the upper text view. textbuf = gtk.TextBuffer() textbuf.set_text(shortTraceback) diff --git a/pixmaps/exception.png b/pixmaps/exception.png new file mode 100644 index 000000000..b989deb42 Binary files /dev/null and b/pixmaps/exception.png differ diff --git a/ui/exn.glade b/ui/exn.glade index d7bb77b9f..7a7ecee52 100644 --- a/ui/exn.glade +++ b/ui/exn.glade @@ -7,19 +7,20 @@ True Exception Occurred GTK_WINDOW_TOPLEVEL - center + GTK_WIN_POS_CENTER True + 550 + 440 True False True False False GDK_WINDOW_TYPE_HINT_DIALOG - center + GDK_GRAVITY_NORTH_WEST True + False True - 400 - 300 @@ -95,22 +96,50 @@ 5 - + True - - False - False - GTK_JUSTIFY_LEFT - True - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 + False + 0 + + + + True + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + + True + Exception Info + False + False + GTK_JUSTIFY_LEFT + True + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + 0 @@ -125,7 +154,6 @@ True False 0 - Exception text @@ -133,7 +161,7 @@ True GTK_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC - in + GTK_SHADOW_NONE GTK_CORNER_TOP_LEFT -- cgit