diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2003-10-24 04:18:55 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-10-24 04:18:55 +0800 |
commit | 10a44354477a1beb54282e118045863079c9b783 (patch) | |
tree | b6c4cab111de602424bc4a3fc8b513edb095eec3 /widgets/table | |
parent | b1be2a6d83aa9b9404ca735e73e73dc903625dc7 (diff) | |
download | gsoc2013-evolution-10a44354477a1beb54282e118045863079c9b783.tar.gz 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/table')
-rw-r--r-- | widgets/table/e-table-item.c | 5 |
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) |