Re: Build break with latest GTK+ 3



On Tue, 2010-08-31 at 12:28 +0200, Murray Cumming wrote:
> git master of goocanvas currently doesn't build against git master of
> GTK+, which has removed GdkGC, apparently in favor of using cairo_t.
> 
> goocanvas.c: In function ‘goo_canvas_expose_event’:
> goocanvas.c:2695: error: ‘GtkStyle’ has no member named ‘base_gc’.

Luckily that is the only code in goocanvas affected by the change:

  /* Clear the background. */
  if (canvas->clear_background)
    {
      gdk_draw_rectangle (canvas->canvas_window,
			  gtk_widget_get_style (widget)->base_gc[gtk_widget_get_state
(widget)], TRUE,
			  event->area.x, event->area.y,
			  event->area.width, event->area.height);
    }

  cr = goo_canvas_create_cairo_context (canvas);


-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]