]> git.0d.be Git - empathy.git/commit
[EmpathyVideoWidget] fix X crash when using Empathy with GTK+ c-s-w
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Mon, 14 Sep 2009 01:33:06 +0000 (11:33 +1000)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 14 Sep 2009 08:27:12 +0000 (09:27 +0100)
commitddcb7848002b70bc8950d45a9079582a8787c394
tree7fa336aa919d43073869d527b7992a66f086fb72
parent38cf0499b0329c0556cb2adc2460fb234c596a43
[EmpathyVideoWidget] fix X crash when using Empathy with GTK+ c-s-w

In client-side-windows enabled GTK+, a call to GDK_WINDOW_XID() implicitly calls
gdk_window_ensure_native() so that a native X11 window exists serverside to
have an XID for.

Calling gdk_window_ensure_native() from a thread is not awesome and causes
Empathy to abort with one of several X errors. The fix is to call
GDK_WINDOW_XID() as soon as the widget is realized, before the XID is requested
from a thread (it would be neater to call gdk_window_ensure_native() here,
but that would force us to require GTK+ 2.18, which we don't want to do).

Fixes gnome bug #594890
libempathy-gtk/empathy-video-widget.c