[gtk+/gtk-2-22] textview: draw dnd icon with Pango
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] textview: draw dnd icon with Pango
- Date: Sat, 7 Aug 2010 13:55:04 +0000 (UTC)
commit 09080e3c766c5ca26e57731a07549490f8d20494
Author: Benjamin Otte <otte redhat com>
Date: Wed Jul 21 12:37:35 2010 +0200
textview: draw dnd icon with Pango
gtk/gtktextutil.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c
index 41fd545..7ca28e0 100644
--- a/gtk/gtktextutil.c
+++ b/gtk/gtktextutil.c
@@ -246,11 +246,9 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget,
gdk_cairo_set_source_color (cr, &widget->style->base [gtk_widget_get_state (widget)]);
cairo_paint (cr);
- gdk_draw_layout (drawable,
- widget->style->text_gc [gtk_widget_get_state (widget)],
- 1 + DRAG_ICON_LAYOUT_BORDER,
- 1 + DRAG_ICON_LAYOUT_BORDER,
- layout);
+ gdk_cairo_set_source_color (cr, &widget->style->text [gtk_widget_get_state (widget)]);
+ cairo_move_to (cr, 1 + DRAG_ICON_LAYOUT_BORDER, 1 + DRAG_ICON_LAYOUT_BORDER);
+ pango_cairo_show_layout (cr, layout);
cairo_set_source_rgb (cr, 0, 0, 0);
cairo_rectangle (cr, 0.5, 0.5, pixmap_width + 1, pixmap_height + 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]