OSDN Git Service

Use gtk.gdk.threads_enter and gtk.gdk.threads_leave. Follow the warning.
authorAiwota Programmer <aiwotaprog@tetteke.tk>
Sat, 5 May 2007 14:10:19 +0000 (23:10 +0900)
committerAiwota Programmer <aiwotaprog@tetteke.tk>
Sat, 5 May 2007 14:10:19 +0000 (23:10 +0900)
src/FukuiNoNamari/board_data.py
src/FukuiNoNamari/session.py

index 79c3117..0f41c98 100644 (file)
@@ -119,11 +119,11 @@ class BoardData:
     def _progressing(self, iterable):
         for before, fraction in follow(iterable):
             if int(before*10) != int(fraction*10):
-                gtk.threads_enter()
+                gtk.gdk.threads_enter()
                 try:
                     self.set_fraction(fraction)
                 finally:
-                    gtk.threads_leave()
+                    gtk.gdk.threads_leave()
             yield fraction
 
     def _modify_dict(self, item_dict):
index 99b2319..df0faf4 100644 (file)
@@ -121,6 +121,6 @@ def start():
     restore()
     if not _windows:
         uri_opener.open_uri("http://ex11.2ch.net/morningcoffee/")
-    gtk.threads_enter()
+    gtk.gdk.threads_enter()
     gtk.main()
-    gtk.threads_leave()
+    gtk.gdk.threads_leave()