[gtk+/rendering-cleanup: 105/124] decorations: Draw text with Cairo
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 105/124] decorations: Draw text with Cairo
- Date: Thu, 22 Jul 2010 02:07:29 +0000 (UTC)
commit 7bfd7f1833c47cae7cc2dc6ac5a3a45362e6e1c9
Author: Benjamin Otte <otte redhat com>
Date: Wed Jul 21 13:20:22 2010 +0200
decorations: Draw text with Cairo
gtk/gtkwindow-decorate.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkwindow-decorate.c b/gtk/gtkwindow-decorate.c
index fae3293..e291360 100644
--- a/gtk/gtkwindow-decorate.c
+++ b/gtk/gtkwindow-decorate.c
@@ -692,15 +692,8 @@ gtk_decorated_window_paint (GtkWidget *widget,
/* Title */
if (deco->title_layout)
{
- if (area)
- gdk_gc_set_clip_rectangle (widget->style->fg_gc [border_state], area);
-
- 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);
+ gdk_cairo_set_source_color (cr, widget->style->fg [border_state]);
+ pango_cairo_show_layout (cr, deco->title_layout);
}
cairo_destroy (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]