Commit 1c4395c5 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

set can_recurse on the recv_message watch, so we don't block on recursive

2004-08-29  Manish Singh  <yosh@gimp.org>

        * app/plug-in/plug-in.c (plug_in_open): set can_recurse on the
        recv_message watch, so we don't block on recursive calls to the
        handler. plug_in_recv_message needs some refcounting help now
        though.
parent ed055fa6
2004-08-29 Manish Singh <yosh@gimp.org>
* app/plug-in/plug-in.c (plug_in_open): set can_recurse on the
recv_message watch, so we don't block on recursive calls to the
handler. plug_in_recv_message needs some refcounting help now
though.
2004-08-29 Helvetix Victorinox <helvetix@gimp.org>
* app/composite/gimp-composite-x86.h
......
......@@ -479,11 +479,16 @@ plug_in_open (PlugIn *plug_in)
if (! plug_in->synchronous)
{
plug_in->input_id = g_io_add_watch (plug_in->my_read,
G_IO_IN | G_IO_PRI |
G_IO_ERR | G_IO_HUP,
plug_in_recv_message,
plug_in);
GSource *source;
source = g_io_create_watch (plug_in->my_read,
G_IO_IN | G_IO_PRI | G_IO_ERR | G_IO_HUP);
g_source_set_callback (source, plug_in_recv_message, plug_in, NULL);
g_source_set_can_recurse (source, TRUE);
plug_in->input_id = g_source_attach (source, NULL);
g_source_unref (source);
gimp->open_plug_ins = g_slist_prepend (gimp->open_plug_ins, plug_in);
}
......
......@@ -479,11 +479,16 @@ plug_in_open (PlugIn *plug_in)
if (! plug_in->synchronous)
{
plug_in->input_id = g_io_add_watch (plug_in->my_read,
G_IO_IN | G_IO_PRI |
G_IO_ERR | G_IO_HUP,
plug_in_recv_message,
plug_in);
GSource *source;
source = g_io_create_watch (plug_in->my_read,
G_IO_IN | G_IO_PRI | G_IO_ERR | G_IO_HUP);
g_source_set_callback (source, plug_in_recv_message, plug_in, NULL);
g_source_set_can_recurse (source, TRUE);
plug_in->input_id = g_source_attach (source, NULL);
g_source_unref (source);
gimp->open_plug_ins = g_slist_prepend (gimp->open_plug_ins, plug_in);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment