mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
textview: draw dnd icon with Pango
This commit is contained in:
parent
dec093d9f1
commit
0310626938
@ -245,11 +245,9 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget,
|
|||||||
gdk_cairo_set_source_color (cr, &widget->style->base [gtk_widget_get_state (widget)]);
|
gdk_cairo_set_source_color (cr, &widget->style->base [gtk_widget_get_state (widget)]);
|
||||||
cairo_paint (cr);
|
cairo_paint (cr);
|
||||||
|
|
||||||
gdk_draw_layout (drawable,
|
gdk_cairo_set_source_color (cr, &widget->style->text [gtk_widget_get_state (widget)]);
|
||||||
widget->style->text_gc [gtk_widget_get_state (widget)],
|
cairo_move_to (cr, 1 + DRAG_ICON_LAYOUT_BORDER, 1 + DRAG_ICON_LAYOUT_BORDER);
|
||||||
1 + DRAG_ICON_LAYOUT_BORDER,
|
pango_cairo_show_layout (cr, layout);
|
||||||
1 + DRAG_ICON_LAYOUT_BORDER,
|
|
||||||
layout);
|
|
||||||
|
|
||||||
cairo_set_source_rgb (cr, 0, 0, 0);
|
cairo_set_source_rgb (cr, 0, 0, 0);
|
||||||
cairo_rectangle (cr, 0.5, 0.5, pixmap_width + 1, pixmap_height + 1);
|
cairo_rectangle (cr, 0.5, 0.5, pixmap_width + 1, pixmap_height + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user