if we've got focus, set the background of the rect to bg[NORMAL], and the

2003-05-19  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard-label.c (set_colors): if we've got focus,
	set the background of the rect to bg[NORMAL], and the fill color
	of the text and label to text[NORMAL].  This will make the
	background a different color than the canvas, but won't make it
	use the selected background.  fixes #42472

svn path=/trunk/; revision=21262
This commit is contained in:
Chris Toshok
2003-05-19 18:41:24 +00:00
committed by Chris Toshok
parent fcb80018c0
commit 2d3e30b912
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2003-05-19 Chris Toshok <toshok@ximian.com>
* gui/widgets/e-minicard-label.c (set_colors): if we've got focus,
set the background of the rect to bg[NORMAL], and the fill color
of the text and label to text[NORMAL]. This will make the
background a different color than the canvas, but won't make it
use the selected background. fixes #42472
2003-05-19 Chris Toshok <toshok@ximian.com>
* gui/merging/e-card-merging.c (e_card_merging_book_commit_card):

View File

@ -419,15 +419,15 @@ set_colors (EMinicardLabel *label)
if (label->has_focus) {
gnome_canvas_item_set (label->rect,
"outline_color_gdk", &style->mid[GTK_STATE_SELECTED],
"fill_color_gdk", &style->bg[GTK_STATE_SELECTED],
"fill_color_gdk", &style->bg[GTK_STATE_NORMAL],
NULL);
gnome_canvas_item_set (label->field,
"fill_color_gdk", &canvas->style->text[GTK_STATE_SELECTED],
"fill_color_gdk", &canvas->style->text[GTK_STATE_NORMAL],
NULL);
gnome_canvas_item_set (label->fieldname,
"fill_color_gdk", &canvas->style->text[GTK_STATE_SELECTED],
"fill_color_gdk", &canvas->style->text[GTK_STATE_NORMAL],
NULL);
}
else {