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:
Georges Basile Stavracas Neto
2017-03-17 10:14:25 -03:00
parent 478db350e3
commit cf6cdfd2aa
8 changed files with 59 additions and 59 deletions
+2 -2
View File
@@ -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,