Hi

I just checked out everything (DFB, cairo, GTK+) from CVS and 
compilation of cairo-directfb-surface.c failed as follows

cairo-directfb-surface.c: In function ‘_directfb_acquire_surface’:
cairo-directfb-surface.c:351: error: ‘cairo_directfb_surface_t’ has no 
member named ‘buffer’

which was easily fixed with

--- a/src/cairo-directfb-surface.c
+++ b/src/cairo-directfb-surface.c
@@ -349,7 +349,7 @@ _directfb_acquire_surface (cairo_directf
              surface->dfbsurface->GetSize 
(surface->dfbsurface,&source_rect.w, &source_rect.h);
          }
          D_DEBUG_AT (Cairo_DirectFB, "%s buffer for surface.\n",
-                         surface->buffer ? "Reallocating" : "Allocating");
+                         buffer ? "Reallocating" : "Allocating");
          cairo_format = directfb_to_cairo_format(DSPF_ARGB);
          buffer = _directfb_buffer_surface_create 
(surface->dfb,DSPF_ARGB,source_rect.w,source_rect.h);
          if (!buffer)

the real problem is that GTK apps still crash: below is a debug session 
of gtk-demo (very same problem for other GTK apps too).

ciao

Attilio

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1487206720 (LWP 17740)]
0x001d0258 in ?? ()
(gdb) bt
#0  0x001d0258 in ?? ()
#1  0xa77ed626 in _cairo_directfb_surface_fill_rectangles 
(abstract_surface=0x82805e0, op=CAIRO_OPERATOR_OVER,
     color=0xafdcb5a0, rects=0x827eee0, n_rects=9) at 
cairo-directfb-surface.c:927
#2  0xa77d3627 in _cairo_surface_fill_rectangles (surface=0x82805e0, 
op=CAIRO_OPERATOR_OVER, color=0xafdcb5a0,
     rects=0x827eee0, num_rects=9) at cairo-surface.c:1161
#3  0xa77d3840 in _cairo_surface_fill_region (surface=0x82805e0, 
op=CAIRO_OPERATOR_OVER, color=0xafdcb5a0, region=0x8272498)
     at cairo-surface.c:1116
#4  0xa77d636e in _clip_and_composite_trapezoids (src=<value optimized 
out>, op=<value optimized out>, dst=0x82805e0,
     traps=0xafdcb4f4, clip=0x827ee1c, 
antialias=CAIRO_ANTIALIAS_DEFAULT) at cairo-surface-fallback.c:597
#5  0xa77d6500 in _cairo_surface_fallback_fill (surface=0x82805e0, 
op=CAIRO_OPERATOR_OVER, source=0xafdcb55c,
     path=0x8231ec8, fill_rule=CAIRO_FILL_RULE_WINDING, 
tolerance=0.10000000000000001, antialias=CAIRO_ANTIALIAS_DEFAULT)
     at cairo-surface-fallback.c:832
#6  0xa77d3f83 in _cairo_surface_fill (surface=0x82805e0, 
op=CAIRO_OPERATOR_OVER, source=0xafdcb614, path=0x8231ec8,
     fill_rule=CAIRO_FILL_RULE_WINDING, tolerance=0.10000000000000001, 
antialias=CAIRO_ANTIALIAS_DEFAULT)
     at cairo-surface.c:1321
#7  0xa77c89b4 in _cairo_gstate_fill (gstate=0x827ed98, path=0x8231ec8) 
at cairo-gstate.c:974
#8  0xa77c4109 in *INT_cairo_fill_preserve (cr=0x8231ec0) at cairo.c:1884
#9  0xa77c4132 in cairo_fill (cr=0x8231ec0) at cairo.c:1862
#10 0xa7ec0bff in gdk_window_clear_backing_rect (window=0x80c84b0, x=0, 
y=0, width=600, height=400) at gdkwindow.c:1877
#11 0xa7ebeacd in IA__gdk_window_begin_paint_region (window=0x80c84b0, 
region=0x81e9b00) at gdkwindow.c:1016
#12 0xa7c081fc in IA__gtk_main_do_event (event=0xafdcb7d4) at gtkmain.c:1378
#13 0xa7ec1fe9 in gdk_window_process_updates_internal (window=0x80c84b0) 
at gdkwindow.c:2324
#14 0xa7ec2123 in IA__gdk_window_process_all_updates () at gdkwindow.c:2387
#15 0xa7b4bc9b in gtk_container_idle_sizer (data=0x0) at gtkcontainer.c:1113
#16 0xa78aaaa1 in g_idle_dispatch (source=0x81e5928, callback=0x82762f8, 
user_data=0x0) at gmain.c:3924
#17 0xa78ac821 in IA__g_main_context_dispatch (context=0x80d7f50) at 
gmain.c:2043
#18 0xa78af896 in g_main_context_iterate (context=0x80d7f50, block=1, 
dispatch=1, self=0x80d80d8) at gmain.c:2675
#19 0xa78afc57 in IA__g_main_loop_run (loop=0x823b220) at gmain.c:2879
---Type <return> to continue, or q <return> to quit---
#20 0xa7c07901 in IA__gtk_main () at gtkmain.c:1000
#21 0x0806618d in main (argc=1, argv=0xafdcbae4) at main.c:924

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to