diff options
Diffstat (limited to 'svx/source/gallery2/GalleryControl.cxx')
-rw-r--r-- | svx/source/gallery2/GalleryControl.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/svx/source/gallery2/GalleryControl.cxx b/svx/source/gallery2/GalleryControl.cxx index f9070492b3a0..80822893f9f0 100644 --- a/svx/source/gallery2/GalleryControl.cxx +++ b/svx/source/gallery2/GalleryControl.cxx @@ -39,17 +39,16 @@ GalleryControl::GalleryControl ( : Window(pParentWindow, WB_SIZEABLE|WB_MOVEABLE|WB_CLOSEABLE|WB_HIDE), mpGallery (Gallery::GetGalleryInstance()), mpSplitter(VclPtr<GallerySplitter>::Create( - this, WB_HSCROLL, [this] () { return this->InitSettings(); })), mpBrowser1(VclPtr<GalleryBrowser1>::Create( - this, mpGallery, [this] (KeyEvent const& rEvent, vcl::Window *const pWindow) { return this->GalleryKeyInput(rEvent, pWindow); }, - [this] () { return this->ThemeSelectionHasChanged(); })), + [this] () + { return mpBrowser2->SelectTheme(mpBrowser1->GetSelectedTheme()); })), mpBrowser2(VclPtr<GalleryBrowser2>::Create(this, mpGallery)), maLastSize(GetOutputSizePixel()), mbIsInitialResize(true) @@ -220,11 +219,6 @@ void GalleryControl::GetFocus() mpBrowser1->GrabFocus(); } -void GalleryControl::ThemeSelectionHasChanged() -{ - mpBrowser2->SelectTheme(mpBrowser1->GetSelectedTheme()); -} - IMPL_LINK_NOARG( GalleryControl, SplitHdl, Splitter*, void ) { if(mpSplitter->IsHorizontal()) |