[evolution-data-server] No need to allocate colors with cairo drawing
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] No need to allocate colors with cairo drawing
- Date: Fri, 1 Oct 2010 18:37:45 +0000 (UTC)
commit d3b49f4bf1495402253d7ebdf017bb75bf2a6d06
Author: William Jon McCann <jmccann redhat com>
Date: Fri Oct 1 14:37:23 2010 -0400
No need to allocate colors with cairo drawing
.gitignore | 2 +-
libedataserverui/e-cell-renderer-color.c | 3 ---
2 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9449734..bd9fd46 100644
--- a/.gitignore
+++ b/.gitignore
@@ -63,7 +63,7 @@
/po/Makefile.in
/po/Makefile.in.in
/po/POTFILES
-/po/evolution-data-server-2.32.pot
+/po/evolution-data-server-2.34.pot
/po/stamp-it
/so_locations
/stamp-h1
diff --git a/libedataserverui/e-cell-renderer-color.c b/libedataserverui/e-cell-renderer-color.c
index 13982f2..089c6b7 100644
--- a/libedataserverui/e-cell-renderer-color.c
+++ b/libedataserverui/e-cell-renderer-color.c
@@ -131,9 +131,6 @@ cell_renderer_color_render (GtkCellRenderer *cell,
!gdk_rectangle_intersect (expose_area, &draw_rect, &draw_rect))
return;
- gdk_colormap_alloc_color (
- gdk_colormap_get_system (), priv->color, FALSE, TRUE);
-
cr = gdk_cairo_create (window);
gdk_cairo_set_source_color (cr, priv->color);
cairo_rectangle (cr, pix_rect.x, pix_rect.y, draw_rect.width, draw_rect.height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]