forked from AuroraMiddleware/gtk
textview: Use gtk_cairo_transform_to_window()
This commit is contained in:
parent
0795f1e0c9
commit
19d1377494
@ -4853,12 +4853,9 @@ gtk_text_view_draw (GtkWidget *widget,
|
|||||||
GTK_TEXT_WINDOW_TEXT);
|
GTK_TEXT_WINDOW_TEXT);
|
||||||
if (gtk_cairo_should_draw_window (cr, window))
|
if (gtk_cairo_should_draw_window (cr, window))
|
||||||
{
|
{
|
||||||
int x, y;
|
|
||||||
|
|
||||||
DV(g_print (">Exposed ("G_STRLOC")\n"));
|
DV(g_print (">Exposed ("G_STRLOC")\n"));
|
||||||
cairo_save (cr);
|
cairo_save (cr);
|
||||||
gdk_window_get_position (window, &x, &y);
|
gtk_cairo_transform_to_window (cr, widget, window);
|
||||||
cairo_translate (cr, x, y);
|
|
||||||
gtk_text_view_paint (widget, cr);
|
gtk_text_view_paint (widget, cr);
|
||||||
cairo_restore (cr);
|
cairo_restore (cr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user