menu: Use gtk_cairo_transform_to_window()

This commit is contained in:
Benjamin Otte 2010-09-23 11:54:27 +02:00
parent 7a2010ae28
commit bd4545c03a

View File

@ -2986,14 +2986,10 @@ gtk_menu_draw (GtkWidget *widget,
if (gtk_cairo_should_draw_window (cr, menu->bin_window))
{
int xoff, yoff;
gint y = -border.y + menu->scroll_offset;
cairo_save (cr);
gdk_window_get_position (menu->view_window, &xoff, &yoff);
cairo_translate (cr, xoff, yoff);
gdk_window_get_position (menu->bin_window, &xoff, &yoff);
cairo_translate (cr, xoff, yoff);
gtk_cairo_transform_to_window (cr, widget, menu->bin_window);
if (!menu->tearoff_active)
{