Fixed intermittent hanging in foreign_new method.

This commit is contained in:
Eratosthenes 2010-11-30 01:26:41 -05:00
parent e30989a852
commit 3f2e1dc0ee

2
pyfpdb/HUD_main.pyw Normal file → Executable file
View File

@ -180,11 +180,11 @@ class HUD_main(object):
gtk.gdk.threads_enter()
try:
table.gdkhandle = gtk.gdk.window_foreign_new(table.number)
newlabel = gtk.Label("%s - %s" % (table.site, table_name))
self.vb.add(newlabel)
newlabel.show()
self.main_window.resize_children()
table.gdkhandle = gtk.gdk.window_foreign_new(table.number)
self.hud_dict[table.key].tablehudlabel = newlabel
self.hud_dict[table.key].create(new_hand_id, self.config, stat_dict, cards)