diff --git a/src/preferences/backgrounds/BackgroundsView.h b/src/preferences/backgrounds/BackgroundsView.h index e7f97096f5..aa7b27019b 100644 --- a/src/preferences/backgrounds/BackgroundsView.h +++ b/src/preferences/backgrounds/BackgroundsView.h @@ -35,6 +35,8 @@ #define SETTINGS_FILE "Backgrounds_settings" +class ImageFilePanel; + class BGImageMenuItem : public BMenuItem { public: BGImageMenuItem(const char *label, int32 imageIndex, BMessage *message, @@ -122,7 +124,7 @@ class BackgroundsView : public BBox { PreView *fPreView; // the view for previewing the result PreviewBox *fPreview; // the box which draws a computer/folder BFilePanel *fFolderPanel; // the file panels for folders - BFilePanel *fPanel; // the file panels for images + ImageFilePanel *fPanel; // the file panels for images BackgroundImage *fCurrent; // the current BackgroundImage object BackgroundImage::BackgroundImageInfo *fCurrentInfo;//the current BackgroundImageInfo object diff --git a/src/preferences/backgrounds/ImageFilePanel.h b/src/preferences/backgrounds/ImageFilePanel.h index 41ac1cbb0d..fdab60eeed 100644 --- a/src/preferences/backgrounds/ImageFilePanel.h +++ b/src/preferences/backgrounds/ImageFilePanel.h @@ -37,7 +37,8 @@ class ImageFilePanel : public BFilePanel { bool modal = false, bool hideWhenDone = true); virtual void SelectionChanged(); - virtual void Show(); + + void Show(); protected: BView* fImageView;