Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for adjusting parameter values #193

Merged
merged 13 commits into from
Dec 22, 2020
18 changes: 1 addition & 17 deletions fract4dgui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,10 @@
break_new_things = False
edyoung marked this conversation as resolved.
Show resolved Hide resolved


def threads_enter():
if threads_enabled:
Gdk.threads_enter()


def threads_leave():
if threads_enabled:
Gdk.threads_leave()


def idle_wrapper(callable, *args):
threads_enter()
callable(*args)
threads_leave()


def idle_add(callable, *args):
edyoung marked this conversation as resolved.
Show resolved Hide resolved
"""A wrapper around GObject.idle_add which wraps the callback in
threads_enter/threads_leave if required"""
GLib.idle_add(idle_wrapper, callable, *args)
GLib.idle_add(callable, *args)


def input_add(fd, cb):
Expand Down