Fedora 18 backport - GLib does not have unix_signal_add

master
James Cameron 5 years ago
parent 85fc4680e9
commit 87fcfb62e4

@ -316,7 +316,9 @@ class Activity(Window, Gtk.Container):
}
def __init__(self, handle, create_jobject=True):
GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, self.close)
if hasattr(GLib, 'unix_signal_add'):
GLib.unix_signal_add(
GLib.PRIORITY_DEFAULT, signal.SIGINT, self.close)
# Stuff that needs to be done early
icons_path = os.path.join(get_bundle_path(), 'icons')

Loading…
Cancel
Save