Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2014-07-10 21:18:44 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-07-14 11:00:09 (GMT)
commit8df10e6b92ed5c3ff447977bfaff8e235e136722 (patch)
treeb062538da7132c60a7c3496ed3ba81e050210d15
parent711cda0d9a310c990142c242ce3d5724772450f3 (diff)
Remove gtk wait operations
I don't know why this code was in different places: while Gtk.events_pending(): Gtk.main_iteration() Probbly is the wrong solution to some problem. I removed it, if found the problem will try to solve it withut blocking.
-rw-r--r--cardtable.py2
-rw-r--r--svgcard.py7
2 files changed, 0 insertions, 9 deletions
diff --git a/cardtable.py b/cardtable.py
index 83d1b3d..25e8ab6 100644
--- a/cardtable.py
+++ b/cardtable.py
@@ -271,8 +271,6 @@ class CardTable(Gtk.EventBox):
self.set_property('child', self.table)
self.load_mode = mode
self.queue_draw()
- while Gtk.events_pending():
- Gtk.main_iteration()
def load_msg(self, widget, msg):
if not self.load_mode:
diff --git a/svgcard.py b/svgcard.py
index 9cc3b8d..df766f2 100644
--- a/svgcard.py
+++ b/svgcard.py
@@ -164,8 +164,6 @@ class SvgCard(Gtk.EventBox):
self.props['front'].update({'fill_color': style.Color(fill_color),
'stroke_color': style.Color(stroke_color)})
self.queue_draw()
- while Gtk.events_pending():
- Gtk.main_iteration()
def set_pixbuf(self, pixbuf):
if pixbuf is None:
@@ -180,8 +178,6 @@ class SvgCard(Gtk.EventBox):
self.show_jpeg = True
self.queue_draw()
- while Gtk.events_pending():
- Gtk.main_iteration()
def get_pixbuf(self):
return self.jpeg
@@ -239,9 +235,6 @@ class SvgCard(Gtk.EventBox):
self.flipped = True
self.queue_draw()
- while Gtk.events_pending():
- Gtk.main_iteration()
-
def cement(self):
if not self.get_speak():
return