Skip to content
  • Emmanuele Bassi's avatar
    Replace gdk_threads_add_timeout* with g_timeout_add() · c655759c
    Emmanuele Bassi authored
    The main GDK thread lock is not portable and deprecated.
    
    The only reason why gdk_threads_add_timeout() and
    gdk_threads_add_timeout_full() exist is to allow invoking a callback
    with the GDK lock held, in case 3rd party libraries still use the
    deprecated gdk_threads_enter()/gdk_threads_leave() API.
    
    Since we're removing the GDK lock, and we're releasing a new major API,
    such code cannot exist any more; this means we can use the GLib API for
    installing timeout callbacks.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=793124
    c655759c