aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-10-24 04:18:55 +0800
committerHans Petter <hansp@src.gnome.org>2003-10-24 04:18:55 +0800
commit10a44354477a1beb54282e118045863079c9b783 (patch)
treeb6c4cab111de602424bc4a3fc8b513edb095eec3 /widgets
parentb1be2a6d83aa9b9404ca735e73e73dc903625dc7 (diff)
downloadgsoc2013-evolution-10a44354477a1beb54282e118045863079c9b783.tar
gsoc2013-evolution-10a44354477a1beb54282e118045863079c9b783.tar.gz
gsoc2013-evolution-10a44354477a1beb54282e118045863079c9b783.tar.bz2
gsoc2013-evolution-10a44354477a1beb54282e118045863079c9b783.tar.lz
gsoc2013-evolution-10a44354477a1beb54282e118045863079c9b783.tar.xz
gsoc2013-evolution-10a44354477a1beb54282e118045863079c9b783.tar.zst
gsoc2013-evolution-10a44354477a1beb54282e118045863079c9b783.zip
Allocate colors using gdk_colormap_alloc_color().
2003-10-23 Hans Petter Jansson <hpj@ximian.com> * e-table-item.c (eti_get_cell_background_color): Allocate colors using gdk_colormap_alloc_color(). svn path=/trunk/; revision=23053
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table-item.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 4acff10b2c..d02b4501ad 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -260,6 +260,8 @@ eti_get_cell_background_color (ETableItem *eti, int row, int col, gboolean selec
if (color_spec != NULL) {
if (gdk_color_parse (color_spec, &bg)) {
background = gdk_color_copy (&bg);
+ gdk_colormap_alloc_color (gtk_widget_get_colormap (GTK_WIDGET (canvas)), background,
+ FALSE, TRUE);
allocated = TRUE;
}
}
@@ -273,7 +275,8 @@ eti_get_cell_background_color (ETableItem *eti, int row, int col, gboolean selec
allocated = TRUE;
}
e_hsv_tweak (background, 0.0f, 0.0f, -0.07f);
- gdk_color_alloc (gtk_widget_get_colormap (GTK_WIDGET (canvas)), background);
+ gdk_colormap_alloc_color (gtk_widget_get_colormap (GTK_WIDGET (canvas)), background,
+ FALSE, TRUE);
}
}
if (allocatedp)