- if (part->state2 >= 0)
- {
- surface2 = _gtk_win32_theme_part_create_surface (part, part->part2, part->state2,
- width, height);
-
- cr = cairo_create (surface);
-
- pattern = cairo_pattern_create_for_surface (surface2);
- cairo_set_source (cr, pattern);
- cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
- cairo_paint (cr);
-
- cairo_destroy (cr);
- cairo_pattern_destroy (pattern);
- cairo_surface_destroy (surface2);
- }
-
- /* We need to return an image surface, as that is what the code expects in order
- to get the size */
- image = cairo_win32_surface_get_image (surface);
- pattern = cairo_pattern_create_for_surface (cairo_surface_reference (image));
-
- cairo_matrix_init_scale (&matrix,
- width,
- height);
- cairo_pattern_set_matrix (pattern, &matrix);
-
- /* We can't immediately destroy the surface, because that would free the data
- the image surface refers too. Instead we destroy it with the pattern. */
- cairo_pattern_set_user_data (pattern,
- &key,
- surface, (cairo_destroy_func_t) cairo_surface_destroy);
+ /* XXX: Do something better here (like printing the theme parts) */
+ gdk_rgba_parse (&color, "pink");
+ gdk_cairo_set_source_rgba (cr, &color);
+ cairo_paint (cr);