Use gtk_widget_get_window() instead of widget->window

This commit is contained in:
Michael Natterer
2009-10-09 11:05:10 +02:00
parent 2da2c510d2
commit f34cdad2bc

View File

@ -295,7 +295,8 @@ about_dialog_anim_expose (GtkWidget *widget,
gdk_region_destroy (covered_region);
}
gdk_draw_layout (widget->window, text_gc, x, y, dialog->layout);
gdk_draw_layout (gtk_widget_get_window (widget),
text_gc, x, y, dialog->layout);
gdk_gc_set_clip_region (text_gc, NULL);