aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-03-09 04:18:28 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-09 04:18:28 +0800
commit87c7a840467687a189135cddf31ca64c440e4a95 (patch)
treee8a5cea249f29bd3fe95356bc4e12d4cda87d72e /libempathy-gtk
parentf6eae878d6d5dd0e87324072001ecbb3128d7bcd (diff)
downloadgsoc2013-empathy-87c7a840467687a189135cddf31ca64c440e4a95.tar
gsoc2013-empathy-87c7a840467687a189135cddf31ca64c440e4a95.tar.gz
gsoc2013-empathy-87c7a840467687a189135cddf31ca64c440e4a95.tar.bz2
gsoc2013-empathy-87c7a840467687a189135cddf31ca64c440e4a95.tar.lz
gsoc2013-empathy-87c7a840467687a189135cddf31ca64c440e4a95.tar.xz
gsoc2013-empathy-87c7a840467687a189135cddf31ca64c440e4a95.tar.zst
gsoc2013-empathy-87c7a840467687a189135cddf31ca64c440e4a95.zip
Assert that the widget is realized before using its XID
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2637
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-video-widget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-video-widget.c b/libempathy-gtk/empathy-video-widget.c
index 568a54901..605039f3f 100644
--- a/libempathy-gtk/empathy-video-widget.c
+++ b/libempathy-gtk/empathy-video-widget.c
@@ -364,6 +364,7 @@ empathy_video_widget_sync_message_cb (GstBus *bus, GstMessage *message,
if (gst_structure_has_name (s, "prepare-xwindow-id"))
{
+ g_assert (GTK_WIDGET_REALIZED (GTK_WIDGET (self)));
gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (priv->overlay),
GDK_WINDOW_XID (GTK_WIDGET (self)->window));
}