Improved Batch Queue stability
see 1383
This commit is contained in:
@@ -412,6 +412,10 @@ void ThumbBrowserBase::buttonPressed (int x, int y, int button, GdkEventType typ
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool ThumbBrowserBase::Internal::on_expose_event(GdkEventExpose* event) {
|
bool ThumbBrowserBase::Internal::on_expose_event(GdkEventExpose* event) {
|
||||||
|
// TODO: Check for Linux
|
||||||
|
#ifdef WIN32
|
||||||
|
Glib::RWLock::ReaderLock l(parent->entryRW);
|
||||||
|
#endif
|
||||||
|
|
||||||
dirty = false;
|
dirty = false;
|
||||||
|
|
||||||
@@ -424,7 +428,7 @@ bool ThumbBrowserBase::Internal::on_expose_event(GdkEventExpose* event) {
|
|||||||
// draw thumbnails
|
// draw thumbnails
|
||||||
Glib::RefPtr<Pango::Context> context = get_pango_context ();
|
Glib::RefPtr<Pango::Context> context = get_pango_context ();
|
||||||
context->set_font_description (get_style()->get_font());
|
context->set_font_description (get_style()->get_font());
|
||||||
for (size_t i=0; i<parent->fd.size(); i++) {
|
for (size_t i=0; i<parent->fd.size() && !dirty; i++) { // if dirty meanwhile, cancel and wait for next redraw
|
||||||
if (!parent->fd[i]->drawable || !parent->fd[i]->insideWindow (0, 0, w, h))
|
if (!parent->fd[i]->drawable || !parent->fd[i]->insideWindow (0, 0, w, h))
|
||||||
parent->fd[i]->updatepriority = false;
|
parent->fd[i]->updatepriority = false;
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user