Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=dd4a650fe9d57757195d80fbbeceac317cffe220

commit dd4a650fe9d57757195d80fbbeceac317cffe220
Author: bouleetbil <[email protected]>
Date:   Wed Jan 11 09:21:23 2012 +0100

pyfpm
*use draw from pyfpmtools

diff --git a/py-pacman/pyfpm/src/pyfpm.py b/py-pacman/pyfpm/src/pyfpm.py
index a9c9127..cef83ae 100755
--- a/py-pacman/pyfpm/src/pyfpm.py
+++ b/py-pacman/pyfpm/src/pyfpm.py
@@ -329,9 +329,7 @@ def main():
splash = builder.get_object('splash')
# [...] set splash up
splash.show()
-       # ensure it is rendered immediately
-       while Gtk.events_pending():
-               Gtk.main_iteration()
+       draw()
app = GUI()
splash.destroy()
Gtk.main()
diff --git a/py-pacman/pyfpm/src/pyfpminstall.py 
b/py-pacman/pyfpm/src/pyfpminstall.py
index 45584ec..dce8491 100644
--- a/py-pacman/pyfpm/src/pyfpminstall.py
+++ b/py-pacman/pyfpm/src/pyfpminstall.py
@@ -180,12 +180,6 @@ def fpm_trans_conv(*args):
response[0]=1
draw()

-def draw():
-       try :
-               while Gtk.events_pending():
-                       Gtk.main_iteration()
-       except:
-               print "window closed"

def quit(i):
print "bye bye"
diff --git a/py-pacman/pyfpm/src/pyfun.py b/py-pacman/pyfpm/src/pyfun.py
index 2363c60..531ed6b 100644
--- a/py-pacman/pyfpm/src/pyfun.py
+++ b/py-pacman/pyfpm/src/pyfun.py
@@ -100,9 +100,7 @@ def main():
label_what.set_text("Check update packages")
# [...] set splash up
splash.show()
-       # ensure it is rendered immediately
-       while Gtk.events_pending():
-               Gtk.main_iteration()
+       draw()
app = GUI()
splash.destroy()
Gtk.main()
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to