use bg/fg not base/text for the window title area.

2001-10-24  Havoc Pennington  <hp@pobox.com>

	* src/frames.c (meta_frames_expose_event): use bg/fg not base/text
	for the window title area.
This commit is contained in:
Havoc Pennington 2001-10-25 03:08:48 +00:00 committed by Havoc Pennington
parent 2af36b1e56
commit bacc9c0afc
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2001-10-24 Havoc Pennington <hp@pobox.com>
* src/frames.c (meta_frames_expose_event): use bg/fg not base/text
for the window title area.
2001-10-24 Havoc Pennington <hp@pobox.com> 2001-10-24 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_new): support initial * src/window.c (meta_window_new): support initial

View File

@ -1749,14 +1749,14 @@ meta_frames_expose_event (GtkWidget *widget,
clip.width -= frames->props->text_border.left + clip.width -= frames->props->text_border.left +
frames->props->text_border.right; frames->props->text_border.right;
layout_gc = widget->style->text_gc[GTK_STATE_NORMAL]; layout_gc = widget->style->fg_gc[GTK_STATE_NORMAL];
if (flags & META_FRAME_HAS_FOCUS) if (flags & META_FRAME_HAS_FOCUS)
{ {
layout_gc = widget->style->text_gc[GTK_STATE_SELECTED]; layout_gc = widget->style->fg_gc[GTK_STATE_SELECTED];
/* Draw blue background */ /* Draw blue background */
gdk_draw_rectangle (frame->window, gdk_draw_rectangle (frame->window,
widget->style->base_gc[GTK_STATE_SELECTED], widget->style->bg_gc[GTK_STATE_SELECTED],
TRUE, TRUE,
fgeom.title_rect.x, fgeom.title_rect.x,
fgeom.title_rect.y, fgeom.title_rect.y,