1

[SOLVED] cairo rendering png image fails

view story
linux-howto

https://bbs.archlinux.org – I can make cairo draw simply geometry onto a GtkDrawingArea but NOT an Image.callback:static gboolean cb_event_draw (GtkWidget *obj, cairo_t *cr, gpointer data) { guint width, height; GdkRGBA color; width = gtk_widget_get_allocated_width (obj); height = gtk_widget_get_allocated_height (obj); //this one does not do anything, total fail: /* cairo_set_source_surface (cr, image, 10., 10.); cairo_fill (cr);*/ // dummy, this works: cairo_arc (cr, width / 2., height / 2., MIN (width, height) / 2., 0, 2. * G_PI); gtk_style_context_get_color (gtk_widget_get_style (HowTos)