project: use cairo_surface_t when possible
We can avoid an entire roundtrip from surface > pixbuf > surface if we simply pass the surface to GtkImage. We also save quite a bunch of debug lines.
This commit is contained in:
+2
-2
@@ -73,10 +73,10 @@ gchar* gcal_get_weekday (gint
|
||||
|
||||
gchar* gcal_get_month_name (gint i);
|
||||
|
||||
GdkPixbuf* gcal_get_pixbuf_from_color (GdkRGBA *color,
|
||||
cairo_surface_t*gcal_get_surface_from_color (GdkRGBA *color,
|
||||
gint size);
|
||||
|
||||
GdkPixbuf* get_circle_pixbuf_from_color (GdkRGBA *color,
|
||||
cairo_surface_t*get_circle_surface_from_color (GdkRGBA *color,
|
||||
gint size);
|
||||
|
||||
void get_color_name_from_source (ESource *source,
|
||||
|
||||
Reference in New Issue
Block a user