summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-10-08 20:46:12 +0000
committerMatt Wilson <msw@redhat.com>1999-10-08 20:46:12 +0000
commit24f7cf0493e974e17f16c3186a4c7836fb5cc4f5 (patch)
tree8d5f5258a8854d379cc206b3badf1772f2616608 /gui.py
parent755fc04fe15cffdd2900f4330a677d50be584fdf (diff)
downloadanaconda-24f7cf0493e974e17f16c3186a4c7836fb5cc4f5.tar.gz
anaconda-24f7cf0493e974e17f16c3186a4c7836fb5cc4f5.tar.xz
anaconda-24f7cf0493e974e17f16c3186a4c7836fb5cc4f5.zip
changes for i18n
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/gui.py b/gui.py
index 36b287a4b..cf61fb2dc 100755
--- a/gui.py
+++ b/gui.py
@@ -74,10 +74,10 @@ class WaitWindow:
def __init__(self, title, text):
threads_enter ()
self.window = GtkWindow (WINDOW_POPUP)
- self.window.set_title (title)
+ self.window.set_title (_(title))
self.window.set_position (WIN_POS_CENTER)
self.window.set_modal (TRUE)
- label = GtkLabel (text)
+ label = GtkLabel (_(text))
label.set_line_wrap (TRUE)
box = GtkFrame ()
box.set_border_width (10)
@@ -90,7 +90,6 @@ class WaitWindow:
self.window.show_all ()
thread = currentThread ()
if thread.getName () == "gtk_main":
- gdk_flush ()
while events_pending ():
mainiteration (FALSE)
threads_leave ()
@@ -104,13 +103,13 @@ class ProgressWindow:
def __init__(self, title, text, total):
threads_enter ()
self.window = GtkWindow (WINDOW_POPUP)
- self.window.set_title (title)
+ self.window.set_title (_(title))
self.window.set_position (WIN_POS_CENTER)
self.window.set_modal (TRUE)
box = GtkVBox (5)
box.set_border_width (10)
- label = GtkLabel (text)
+ label = GtkLabel (_(text))
label.set_line_wrap (TRUE)
label.set_alignment (0.0, 0.5)
box.pack_start (label)
@@ -160,10 +159,10 @@ class MessageWindow:
def __init__ (self, title, text, type = "ok"):
threads_enter ()
if type == "ok":
- self.window = GnomeOkDialog (text)
+ self.window = GnomeOkDialog (_(text))
self.window.connect ("clicked", self.quit)
if type == "okcancel":
- self.window = GnomeOkCancelDialog (text, self.okcancelquit)
+ self.window = GnomeOkCancelDialog (_(text), self.okcancelquit)
# this is the pixmap + the label
hbox = self.window.vbox.children ()[0]
label = hbox.children ()[1]