[webkit-gtk] What supposed to hold the GDK in calls from WebKit/gtk/WebCoreSupport

Dan Winship danw at gnome.org
Mon Aug 22 14:12:06 PDT 2011


On 08/22/2011 02:26 PM, Evan Martin wrote:
> On Mon, Aug 22, 2011 at 9:34 AM, Martin Robinson <mrobinson at webkit.org> wrote:
>> On Mon, Aug 22, 2011 at 9:26 AM, Yehouda Harpaz <yeh at lispworks.com> wrote:
>>> The Soup callbacks happend form the  g_main_loop_run by some idle
>>> source, which is is establisg by Soup code itself, so to get this you
>>> need to change the Soup source. Is that what you mean?
>>
>> No, since I do not believe that libsoup depends on GDK. We may need to
>> change the libsoup backend in WebKit though. I'm just conjecturing at
>> this point though. :)
> 
> You can grab the gdk lock upon entry to the callbacks that you
> register with libsoup.

Just to confirm, this is exactly the right answer, and applies not just
to libsoup, but to all main loop callbacks that don't arise out of gdk
event processing. (Eg, gio async callbacks, glib idle handlers and
timeouts, etc.).

-- Dan


More information about the webkit-gtk mailing list