summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-10-01 23:37:38 +0000
committerJeremy Katz <katzj@redhat.com>2003-10-01 23:37:38 +0000
commita974e8ce0b0e06baa1eb893e98b8db959bb3e1ae (patch)
tree14a60a82b96ea2abd6aa52144b8c3023a4a14803 /gui.py
parentfc4dc88c4473dc249279ee058d1acac6527a0ac6 (diff)
downloadanaconda-a974e8ce0b0e06baa1eb893e98b8db959bb3e1ae.tar.gz
anaconda-a974e8ce0b0e06baa1eb893e98b8db959bb3e1ae.tar.xz
anaconda-a974e8ce0b0e06baa1eb893e98b8db959bb3e1ae.zip
make it so that WaitWindow doesn't show the title in the titlebar to make
them look less klunky
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/gui.py b/gui.py
index f2481cbb7..94f4e1f3d 100755
--- a/gui.py
+++ b/gui.py
@@ -340,7 +340,7 @@ def titleBarMotionEventCB(widget, event, data):
data["window"].move(newx, newy)
-def addFrame(dialog, title=None):
+def addFrame(dialog, title=None, showtitle = 1):
contents = dialog.get_children()[0]
dialog.remove(contents)
frame = gtk.Frame()
@@ -365,11 +365,15 @@ def addFrame(dialog, title=None):
eventBox.add(titleBox)
eventBox.modify_bg(gtk.STATE_NORMAL,
eventBox.rc_get_style().bg[gtk.STATE_SELECTED])
- titlelbl = gtk.Label("")
- titlelbl.set_markup("<b>"+_(title)+"</b>")
- titlelbl.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse ("white"))
- titlelbl.set_property("ypad", 4)
- titleBox.pack_start(titlelbl)
+ if showtitle:
+ titlelbl = gtk.Label("")
+ titlelbl.set_markup("<b>"+_(title)+"</b>")
+ titlelbl.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse ("white"))
+ titlelbl.set_property("ypad", 4)
+ titleBox.pack_start(titlelbl)
+ else:
+ s = gtk.Label("")
+ titleBox.pack_start(s)
box.pack_start(eventBox, gtk.FALSE, gtk.FALSE)
except:
pass
@@ -399,7 +403,7 @@ class WaitWindow:
box.add(label)
box.set_shadow_type(gtk.SHADOW_NONE)
self.window.add(box)
- addFrame(self.window)
+ addFrame(self.window, showtitle = 0)
self.window.show_all()
rootPushBusyCursor()