diff options
author | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-11-20 10:30:44 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-11-20 10:30:44 (GMT) |
commit | 67e7847ff4c04a0c4148fd76b70576bbd4718f0a (patch) | |
tree | a9418a3dbc9c98f630a77e1ac24a8d70eedf8a43 | |
parent | 65483b46fcdfe26aaf9244bbcefb69405a1e6130 (diff) |
Call sync() after profile creation. Addresses dlo#9612
-rw-r--r-- | src/jarabe/intro/window.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jarabe/intro/window.py b/src/jarabe/intro/window.py index 3975900..bce16ea 100644 --- a/src/jarabe/intro/window.py +++ b/src/jarabe/intro/window.py @@ -14,6 +14,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +from ctypes import cdll import os import logging from gettext import gettext as _ @@ -33,6 +34,10 @@ from jarabe.intro import colorpicker _BACKGROUND_COLOR = style.COLOR_WHITE +def sync(): + libc = cdll.LoadLibrary("libc.so.6") + libc.sync() + def create_profile(name, color=None, pixbuf=None): if not pixbuf: path = os.path.join(os.path.dirname(__file__), 'default-picture.png') @@ -256,6 +261,7 @@ class IntroWindow(gtk.Window): def _create_profile_cb(self, name, color): create_profile(name, color) + sync() gtk.main_quit() return False |