[GNOME-ABRT PATCH] Use GLib.io_add_watch() instead of IOChanell.add_watch()

Jiri Moskovcak jmoskovc at redhat.com
Fri Jul 19 13:45:33 UTC 2013


Works, pushed, thx

--Jirka

On 07/19/2013 01:19 PM, Jakub Filak wrote:
> The add_watch() method has been deprecated in pygobject-3.7.2
>
> Closes rhbz#985990
>
> Signed-off-by: Jakub Filak <jfilak at redhat.com>
> ---
>   src/gnome_abrt/signals.py | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/gnome_abrt/signals.py b/src/gnome_abrt/signals.py
> index b17ae48..e5c4e83 100644
> --- a/src/gnome_abrt/signals.py
> +++ b/src/gnome_abrt/signals.py
> @@ -70,5 +70,6 @@ def glib_sigchld_signal_handler(callback, data=None):
>
>       channel = GLib.IOChannel(pipes[0])
>       channel.set_flags(GLib.IOFlags.NONBLOCK)
> -    channel.add_watch(GLib.IOCondition.IN,
> -            _gsource_handle_signal, (callback, data))
> +
> +    GLib.io_add_watch(channel, GLib.PRIORITY_DEFAULT, GLib.IOCondition.IN,
> +                      _gsource_handle_signal, (callback, data))
>



More information about the Crash-catcher mailing list