aboutsummaryrefslogtreecommitdiffstats
path: root/src/xwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xwidget.c')
-rw-r--r--src/xwidget.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xwidget.c b/src/xwidget.c
index c75f9bbd83e..bd007aad005 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -447,7 +447,7 @@ xwidget_init_view (
447 } else if (EQ(xww->type, Qcairo)) { 447 } else if (EQ(xww->type, Qcairo)) {
448 //Cairo view 448 //Cairo view
449 //uhm cairo is differentish in gtk 3. 449 //uhm cairo is differentish in gtk 3.
450 //gdk_cairo_create (gtk_widget_get_window (f->gwfixed)); 450 //gdk_cairo_create (gtk_widget_get_window (FRAME_GTK_WIDGET (s->f)));
451#ifdef HAVE_GOOCANVAS 451#ifdef HAVE_GOOCANVAS
452 xv->widget = goo_canvas_new(); 452 xv->widget = goo_canvas_new();
453 GooCanvasItem *root, *rect_item, *text_item; 453 GooCanvasItem *root, *rect_item, *text_item;
@@ -518,7 +518,7 @@ xwidget_init_view (
518 //make container widget 1st, and put the actual widget inside the container 518 //make container widget 1st, and put the actual widget inside the container
519 //later, drawing should crop container window if necessary to handle case where xwidget 519 //later, drawing should crop container window if necessary to handle case where xwidget
520 //is partially obscured by other emacs windows 520 //is partially obscured by other emacs windows
521 xv->emacswindow = GTK_CONTAINER (s->f->gwfixed); 521 xv->emacswindow = GTK_CONTAINER (FRAME_GTK_WIDGET (s->f));
522 //xw->widgetwindow = GTK_CONTAINER (gtk_layout_new (NULL, NULL)); 522 //xw->widgetwindow = GTK_CONTAINER (gtk_layout_new (NULL, NULL));
523 //xw->widgetwindow = GTK_CONTAINER (gtk_offscreen_window_new ()); 523 //xw->widgetwindow = GTK_CONTAINER (gtk_offscreen_window_new ());
524 524
@@ -555,7 +555,7 @@ xwidget_init_view (
555 555
556 gtk_widget_set_size_request (GTK_WIDGET (xv->widget), xww->width, xww->height); 556 gtk_widget_set_size_request (GTK_WIDGET (xv->widget), xww->width, xww->height);
557 gtk_widget_set_size_request (GTK_WIDGET (xv->widgetwindow), xww->width, xww->height); 557 gtk_widget_set_size_request (GTK_WIDGET (xv->widgetwindow), xww->width, xww->height);
558 gtk_fixed_put (GTK_FIXED (s->f->gwfixed), GTK_WIDGET (xv->widgetwindow), x, y); 558 gtk_fixed_put (GTK_FIXED (FRAME_GTK_WIDGET (s->f)), GTK_WIDGET (xv->widgetwindow), x, y);
559 xv->x = x; xv->y = y; 559 xv->x = x; xv->y = y;
560 gtk_widget_show_all (GTK_WIDGET (xv->widgetwindow)); 560 gtk_widget_show_all (GTK_WIDGET (xv->widgetwindow));
561 561
@@ -634,7 +634,7 @@ x_draw_xwidget_glyph_string (struct glyph_string *s)
634 if (!xwidget_hidden(xv)) //hidden equals not being seen during redisplay 634 if (!xwidget_hidden(xv)) //hidden equals not being seen during redisplay
635 { 635 {
636 //TODO should be possible to use xwidget_show_view here 636 //TODO should be possible to use xwidget_show_view here
637 gtk_fixed_move (GTK_FIXED (s->f->gwfixed), 637 gtk_fixed_move (GTK_FIXED (FRAME_GTK_WIDGET (s->f)),
638 GTK_WIDGET (xv->widgetwindow), 638 GTK_WIDGET (xv->widgetwindow),
639 x + clip_left, y + clip_top); 639 x + clip_left, y + clip_top);
640 } 640 }