17
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20
from gi.repository import GObject
30
28
from subprocess import Popen,PIPE
31
29
from Core.MetaRelease import MetaReleaseCore
36
class MetaRelease(MetaReleaseCore,gobject.GObject):
31
from gi.repository import Gtk
34
class MetaRelease(MetaReleaseCore,GObject.GObject):
39
'new_dist_available' : (gobject.SIGNAL_RUN_LAST,
41
(gobject.TYPE_PYOBJECT,)),
42
'dist_no_longer_supported' : (gobject.SIGNAL_RUN_LAST,
37
'new_dist_available' : (GObject.SignalFlags.RUN_LAST,
39
(GObject.TYPE_PYOBJECT,)),
40
'dist_no_longer_supported' : (GObject.SignalFlags.RUN_LAST,
48
46
def __init__(self, useDevelopmentRelease=False, useProposed=False):
49
gobject.GObject.__init__(self)
47
GObject.GObject.__init__(self)
50
48
MetaReleaseCore.__init__(self, useDevelopmentRelease, useProposed)
51
49
# in the gtk space to test if the download already finished
52
50
# this is needed because gtk is not thread-safe
53
gobject.timeout_add(1000, self.check)
51
GObject.timeout_add(1000, self.check)
56
54
# check if we have a metarelease_information file