[gnumeric] Fix selection background. [#648676]
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Fix selection background. [#648676]
- Date: Sun, 31 Jul 2011 17:06:37 +0000 (UTC)
commit 93fef8f8a18b792f511167a85cc3cf1094d2f56d
Author: Jean Brefort <jean brefort normalesup org>
Date: Sun Jul 31 19:10:58 2011 +0200
Fix selection background. [#648676]
ChangeLog | 5 +++++
NEWS | 3 +++
src/pattern.c | 6 ++++++
3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4ab91a4..8eaa021 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-31 Jean Brefort <jean brefort normalesup org>
+
+ * src/pattern.c (gnumeric_background_set): always change selection
+ background color. [#648676]
+
2011-07-30 Andreas J. Guelzow <aguelzow pyrshep ca>
* component/gnumeric.c (go_gnm_component_render): fix call to
diff --git a/NEWS b/NEWS
index 76b3043..46c647b 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,9 @@ Andreas:
[#655389]
* Fix import of Excel 2003 xml files in non-C locale. [#655554]
+Jean:
+ * Fix selection background. [#648676]
+
Morten:
* Fix --with-gnome compilation: [#652802]
* Fix parsing crash. [Redhat #726860]
diff --git a/src/pattern.c b/src/pattern.c
index 31e62d0..a9fdea0 100644
--- a/src/pattern.c
+++ b/src/pattern.c
@@ -71,6 +71,12 @@ gnumeric_background_set (GnmStyle const *mstyle, cairo_t *cr,
gopat.pattern = patterns[pattern - 1];
gopat.fore = gnm_style_get_pattern_color (mstyle)->go_color;
gopat.back = gnm_style_get_back_color (mstyle)->go_color;
+ if (is_selected) {
+ GOColor light;
+ light = theme? GO_COLOR_FROM_GDK (theme->light[GTK_STATE_SELECTED]): GO_COLOR_FROM_RGB (230, 230, 250);
+ gopat.fore = GO_COLOR_INTERPOLATE (light, gopat.fore, .5);
+ gopat.back = GO_COLOR_INTERPOLATE (light, gopat.back, .5);
+ }
crpat = go_pattern_create_cairo_pattern (&gopat, cr);
cairo_set_source (cr, crpat);
cairo_pattern_destroy (crpat);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]