mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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:
parent
2af36b1e56
commit
bacc9c0afc
@ -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
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user