• Kristian Rietveld's avatar
    Icon view must layout before the draw handler is called · cc22469b
    Kristian Rietveld authored
    gtk_icon_view_layout(), which can resize the bin window and thus
    underlying surfaces, could be called from gtk_icon_view_draw().  So
    we have to make sure that layouting is done before the draw handler is
    called.  We use the same construction as in tree view here, the layout
    idle handler is installed with a higher priority than
    GDK_PRIORITY_REDRAW and we wrap the call to gdk_window_process_updates()
    in a new function that will flush the layout queue beforehand.
    cc22469b
gtkiconview.c 282 KB