]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xwidget.c (xwidget_init_view): Prevent an error while displaying a
authorGrégoire Jadi <gregoire.jadi@gmail.com>
Thu, 18 Jul 2013 17:51:36 +0000 (19:51 +0200)
committerGrégoire Jadi <gregoire.jadi@gmail.com>
Thu, 18 Jul 2013 17:51:36 +0000 (19:51 +0200)
xwidget of type `cairo' but doesn't do anything useful.

src/xwidget.c

index 28bb056954e02ac1161462a45a063f3a913aabe2..2b3034217df427740f21dda687f4c5408b41b513 100644 (file)
@@ -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