decorations: Draw text with Cairo
This commit is contained in:
@ -692,15 +692,8 @@ gtk_decorated_window_paint (GtkWidget *widget,
|
|||||||
/* Title */
|
/* Title */
|
||||||
if (deco->title_layout)
|
if (deco->title_layout)
|
||||||
{
|
{
|
||||||
if (area)
|
gdk_cairo_set_source_color (cr, widget->style->fg [border_state]);
|
||||||
gdk_gc_set_clip_rectangle (widget->style->fg_gc [border_state], area);
|
pango_cairo_show_layout (cr, deco->title_layout);
|
||||||
|
|
||||||
gdk_draw_layout (frame,
|
|
||||||
widget->style->fg_gc [border_state],
|
|
||||||
DECORATION_BORDER_LEFT, 1,
|
|
||||||
deco->title_layout);
|
|
||||||
if (area)
|
|
||||||
gdk_gc_set_clip_rectangle (widget->style->fg_gc [border_state], NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cairo_destroy (cr);
|
cairo_destroy (cr);
|
||||||
|
|||||||
Reference in New Issue
Block a user