Ported Fabios batch queue refresh fix
This commit is contained in:
@@ -798,16 +798,6 @@ void FileBrowser::notifySelectionListener () {
|
||||
}
|
||||
}
|
||||
|
||||
void FileBrowser::redrawNeeded (ThumbBrowserEntryBase* entry) {
|
||||
|
||||
if (entry->insideWindow (0, 0, internal.get_width(), internal.get_height())) {
|
||||
if (!internal.isDirty ()) {
|
||||
internal.setDirty ();
|
||||
internal.queue_draw ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void FileBrowser::redrawNeeded (LWButton* button) {
|
||||
|
||||
queue_draw ();
|
||||
|
@@ -132,7 +132,6 @@ class FileBrowser : public ThumbBrowserBase, public LWButtonListener {
|
||||
|
||||
void openDefaultViewer (int destination);
|
||||
|
||||
void redrawNeeded (ThumbBrowserEntryBase* entry);
|
||||
void thumbRearrangementNeeded ();
|
||||
void _thumbRearrangementNeeded ();
|
||||
|
||||
|
@@ -577,6 +577,16 @@ void ThumbBrowserBase::refreshEditedState (const std::set<Glib::ustring>& efiles
|
||||
queue_draw ();
|
||||
}
|
||||
|
||||
void ThumbBrowserBase::redrawNeeded (ThumbBrowserEntryBase* entry) {
|
||||
|
||||
if (entry->insideWindow (0, 0, internal.get_width(), internal.get_height())) {
|
||||
if (!internal.isDirty ()) {
|
||||
internal.setDirty ();
|
||||
internal.queue_draw ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ThumbBrowserBase::setArrangement (Arrangement a) {
|
||||
|
||||
arrangement = a;
|
||||
|
@@ -119,7 +119,7 @@ class ThumbBrowserBase : public Gtk::VBox {
|
||||
virtual bool keyPressed (GdkEventKey* event) {return true;}
|
||||
virtual void selectionChanged () {}
|
||||
|
||||
virtual void redrawNeeded (ThumbBrowserEntryBase* entry) {}
|
||||
virtual void redrawNeeded (ThumbBrowserEntryBase* entry);
|
||||
virtual void thumbRearrangementNeeded () {}
|
||||
|
||||
Gtk::Widget* getDrawingArea () { return &internal; }
|
||||
|
Reference in New Issue
Block a user