gtk multithread issue

Issue #29 resolved
Former user created an issue

I used to get this error:
{{{
gsharkdown.py:1133: GtkWarning: gtk_list_store_get_value: assertion VALID_ITER (iter, list_store)' failed gtk.main() gsharkdown.py:1133: Warning: g_object_set_property: assertionG_IS_VALUE (value)' failed
gtk.main()
gsharkdown.py:1133: Warning: g_value_unset: assertion `G_IS_VALUE (value)' failed
gtk.main()
}}}

Applied this fix and have no more crashes:
{{{
--- /usr/share/gsharkdown/lib/tfuncs.py 2011-09-12 09:31:46.000000000 +0100
+++ lib/tfuncs.py 2011-10-02 13:03:27.664161981 +0100
@@ -10,6 +10,7 @@
import lyrdblib
import guihelpers
import urllib2
+import gobject

try:
import pygst
@@ -104,7 +105,8 @@
os.remove(self.filename)
print e.args
finally:
- self._remove_download()
+ #self._remove_download()
+ gobject.idle_add(self._remove_download)

 def stop(self):
     # TODO: This one should be checked how to resolve, at the moment

}}}

Erdem

Comments (1)

  1. Log in to comment