bugfix for issue #569: thumbs disappear when +/- button is pressed
An implementation for redrawNeed() was lacking in the derived class BatchQueue: when updateImage called it there was no effect.
This commit is contained in:
@@ -639,16 +639,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 ();
|
||||
|
@@ -116,7 +116,6 @@ class FileBrowser : public ThumbBrowserBase, public LWButtonListener {
|
||||
|
||||
void openDefaultViewer (int destination);
|
||||
|
||||
void redrawNeeded (ThumbBrowserEntryBase* entry);
|
||||
void thumbRearrangementNeeded ();
|
||||
void _thumbRearrangementNeeded ();
|
||||
|
||||
|
@@ -566,5 +566,14 @@ int ThumbBrowserBase::getEffectiveHeight() {
|
||||
return h;
|
||||
}
|
||||
|
||||
void ThumbBrowserBase::redrawNeeded (ThumbBrowserEntryBase* entry) {
|
||||
|
||||
if (entry->insideWindow (0, 0, internal.get_width(), internal.get_height())) {
|
||||
if (!internal.isDirty ()) {
|
||||
internal.setDirty ();
|
||||
internal.queue_draw ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -116,7 +116,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