From 84d73d4c04fea7bddfccea8c10c5aab65dc597e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Jadi?= Date: Thu, 18 Jul 2013 19:51:36 +0200 Subject: [PATCH] * src/xwidget.c (xwidget_init_view): Prevent an error while displaying a xwidget of type `cairo' but doesn't do anything useful. --- src/xwidget.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xwidget.c b/src/xwidget.c index 28bb056954e..2b3034217df 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -998,6 +998,10 @@ xwidget_init_view (struct xwidget *xww, //Cairo view //uhm cairo is differentish in gtk 3. //gdk_cairo_create (gtk_widget_get_window (FRAME_GTK_WIDGET (s->f))); + xv->widget = gtk_drawing_area_new(); + g_signal_connect (G_OBJECT ( xv->widget), "draw", + G_CALLBACK (xwidget_osr_draw_callback), NULL); + } else if (EQ(xww->type, Qwebkit_osr)|| EQ(xww->type, Qsocket_osr)|| (!NILP (Fget(xww->type, QCxwgir_class))))//xwgir widgets are OSR -- 2.39.2