From: Grégoire Jadi Date: Thu, 18 Jul 2013 17:51:36 +0000 (+0200) Subject: * src/xwidget.c (xwidget_init_view): Prevent an error while displaying a X-Git-Tag: emacs-25.0.90~2877^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=84d73d4c04fea7bddfccea8c10c5aab65dc597e0;p=emacs.git * src/xwidget.c (xwidget_init_view): Prevent an error while displaying a xwidget of type `cairo' but doesn't do anything useful. --- 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