[Libreoffice-commits] core.git: cui/source dbaccess/source vcl/source vcl/unx
Michael Meeks
michael.meeks at collabora.com
Fri May 8 14:34:15 PDT 2015
cui/source/customize/cfg.cxx | 2 +-
cui/source/dialogs/SpellDialog.cxx | 4 ++--
cui/source/dialogs/cuigaldlg.cxx | 4 ++--
cui/source/dialogs/thesdlg.cxx | 2 +-
cui/source/options/optlingu.cxx | 2 +-
dbaccess/source/ext/macromigration/macromigrationdialog.cxx | 2 +-
dbaccess/source/ui/app/AppDetailPageHelper.cxx | 2 +-
dbaccess/source/ui/app/AppSwapWindow.cxx | 2 +-
dbaccess/source/ui/browser/sbagrid.cxx | 2 +-
vcl/source/window/dialog.cxx | 2 +-
vcl/source/window/dockmgr.cxx | 2 +-
vcl/source/window/dockwin.cxx | 2 +-
vcl/source/window/mouse.cxx | 2 +-
vcl/source/window/syschild.cxx | 2 +-
vcl/source/window/toolbox.cxx | 2 +-
vcl/source/window/toolbox2.cxx | 2 +-
vcl/source/window/winproc.cxx | 4 ++--
vcl/unx/generic/app/i18n_status.cxx | 2 +-
18 files changed, 21 insertions(+), 21 deletions(-)
New commits:
commit 8372b3c3d1c3e8a787e174cc31dca55627b74b15
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Fri May 8 22:13:08 2015 +0100
PostUserEvent - first cut at keeping a VclPtr for posted UserEvents.
This should eventually enable more certainty that they are still
live by the time we emit the event later.
Change-Id: I7c9eb4c000753d4efe8c59a9e13ef3e11c93b2fa
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 89d5b4c..f902a15 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -2001,7 +2001,7 @@ SvTreeListEntry* SvxConfigPage::AddFunction(
{
// asynchronous error message, because of MsgBoxes
PostUserEvent(
- LINK( this, SvxConfigPage, AsyncInfoMsg ) );
+ LINK( this, SvxConfigPage, AsyncInfoMsg ), NULL, true );
delete pNewEntryData;
return NULL;
}
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index c1238be..10bc499 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -238,8 +238,8 @@ SpellDialog::SpellDialog(SpellDialogChildWindow* pChildWindow,
//InitHdl wants to use virtual methods, so it
//can't be called during the ctor, so init
//it on next event cycle post-ctor
- Application::PostUserEvent( LINK(
- this, SpellDialog, InitHdl ) );
+ Application::PostUserEvent(
+ LINK( this, SpellDialog, InitHdl ), NULL, true );
}
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index 7f4abcb..4eafd49 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -110,7 +110,7 @@ void SearchThread::execute()
ImplSearch( maStartURL, aFormats, mpBrowser->bSearchRecursive );
}
- Application::PostUserEvent( LINK( mpProgress, SearchProgress, CleanUpHdl ) );
+ Application::PostUserEvent( LINK( mpProgress, SearchProgress, CleanUpHdl ), NULL, true );
}
@@ -343,7 +343,7 @@ void TakeThread::execute()
delete pStatusProgress;
}
- Application::PostUserEvent( LINK( mpProgress, TakeProgress, CleanUpHdl ) );
+ Application::PostUserEvent( LINK( mpProgress, TakeProgress, CleanUpHdl ), NULL, true );
}
// - TakeProgress -
diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx
index a71456e..26808a1 100644
--- a/cui/source/dialogs/thesdlg.cxx
+++ b/cui/source/dialogs/thesdlg.cxx
@@ -442,7 +442,7 @@ IMPL_LINK( SvxThesaurusDialog, AlternativesDoubleClickHdl_Impl, SvxCheckListBox
//! workaround to set the selection since calling SelectEntryPos within
//! the double click handler does not work
- Application::PostUserEvent( LINK( this, SvxThesaurusDialog, SelectFirstHdl_Impl ), pBox );
+ Application::PostUserEvent( LINK( this, SvxThesaurusDialog, SelectFirstHdl_Impl ), pBox, true );
return 0;
}
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index 1f780e4..12ef876 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -1530,7 +1530,7 @@ IMPL_LINK( SvxLinguTabPage, BoxDoubleClickHdl_Impl, SvTreeListBox *, pBox )
//! on a module entry and exiting the "Edit Modules" dialog
//! after that.
Application::PostUserEvent( LINK(
- this, SvxLinguTabPage, PostDblClickHdl_Impl ) );
+ this, SvxLinguTabPage, PostDblClickHdl_Impl ), NULL, true);
}
else if (pBox == m_pLinguOptionsCLB)
{
diff --git a/dbaccess/source/ext/macromigration/macromigrationdialog.cxx b/dbaccess/source/ext/macromigration/macromigrationdialog.cxx
index 24c1a7c..011a1c6 100644
--- a/dbaccess/source/ext/macromigration/macromigrationdialog.cxx
+++ b/dbaccess/source/ext/macromigration/macromigrationdialog.cxx
@@ -214,7 +214,7 @@ namespace dbmm
enableButtons( WizardButtonFlags::FINISH | WizardButtonFlags::CANCEL | WizardButtonFlags::PREVIOUS | WizardButtonFlags::NEXT, false );
// start the migration asynchronously
- PostUserEvent( LINK( this, MacroMigrationDialog, OnStartMigration ) );
+ PostUserEvent( LINK( this, MacroMigrationDialog, OnStartMigration ), NULL, true );
}
break;
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 4b72d59..0928d17 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -143,7 +143,7 @@ namespace
{
bool nRet = Window::Notify( rNEvt );
if ( rNEvt.GetType() == MouseNotifyEvent::INPUTENABLE && IsInputEnabled() )
- PostUserEvent( LINK( this, OTablePreviewWindow, OnDisableInput) );
+ PostUserEvent( LINK( this, OTablePreviewWindow, OnDisableInput), NULL, true );
return nRet;
}
IMPL_LINK_NOARG(OTablePreviewWindow, OnDisableInput)
diff --git a/dbaccess/source/ui/app/AppSwapWindow.cxx b/dbaccess/source/ui/app/AppSwapWindow.cxx
index 1f215df..37df472 100644
--- a/dbaccess/source/ui/app/AppSwapWindow.cxx
+++ b/dbaccess/source/ui/app/AppSwapWindow.cxx
@@ -154,7 +154,7 @@ bool OApplicationSwapWindow::onContainerSelected( ElementType _eType )
return true;
}
- PostUserEvent( LINK( this, OApplicationSwapWindow, ChangeToLastSelected ) );
+ PostUserEvent( LINK( this, OApplicationSwapWindow, ChangeToLastSelected ), NULL, true );
return false;
}
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx
index c2dab41..3aef2d4 100644
--- a/dbaccess/source/ui/browser/sbagrid.cxx
+++ b/dbaccess/source/ui/browser/sbagrid.cxx
@@ -1424,7 +1424,7 @@ sal_Int8 SbaGridControl::ExecuteDrop( const BrowserExecuteDropEvent& rEvt )
m_aDataDescriptor = ODataAccessObjectTransferable::extractObjectDescriptor(aDropped);
if (m_nAsyncDropEvent)
Application::RemoveUserEvent(m_nAsyncDropEvent);
- m_nAsyncDropEvent = Application::PostUserEvent(LINK(this, SbaGridControl, AsynchDropEvent));
+ m_nAsyncDropEvent = Application::PostUserEvent(LINK(this, SbaGridControl, AsynchDropEvent), NULL, true);
return DND_ACTION_COPY;
}
}
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 6f4bb7e..b92e1a7 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -584,7 +584,7 @@ bool Dialog::Notify( NotifyEvent& rNEvt )
// like e.g. SfxModelessDialog which destroy themselves inside Close()
// post this Close asynchronous so we can leave our key handler before
// we get destroyed
- PostUserEvent( LINK( this, Dialog, ImplAsyncCloseHdl ), this );
+ PostUserEvent( LINK( this, Dialog, ImplAsyncCloseHdl ), this , true);
return true;
}
}
diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx
index 0480b30..684f444 100644
--- a/vcl/source/window/dockmgr.cxx
+++ b/vcl/source/window/dockmgr.cxx
@@ -243,7 +243,7 @@ void ImplDockFloatWin2::Move()
* last Move message.
*/
if( ! mnLastUserEvent )
- mnLastUserEvent = Application::PostUserEvent( LINK( this, ImplDockFloatWin2, DockingHdl ) );
+ mnLastUserEvent = Application::PostUserEvent( LINK( this, ImplDockFloatWin2, DockingHdl ), NULL, true );
}
void ImplDockFloatWin2::Resize()
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index d554562..d7e8b4b 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -209,7 +209,7 @@ void ImplDockFloatWin::Move()
* last Move message.
*/
if( ! mnLastUserEvent )
- mnLastUserEvent = Application::PostUserEvent( LINK( this, ImplDockFloatWin, DockingHdl ) );
+ mnLastUserEvent = Application::PostUserEvent( LINK( this, ImplDockFloatWin, DockingHdl ), NULL, true );
}
void ImplDockFloatWin::Resize()
diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx
index 72e6840..bbcd0ad 100644
--- a/vcl/source/window/mouse.cxx
+++ b/vcl/source/window/mouse.cxx
@@ -160,7 +160,7 @@ void Window::ImplCallMouseMove( sal_uInt16 nMouseCode, bool bModChanged )
void Window::ImplGenerateMouseMove()
{
if ( !mpWindowImpl->mpFrameData->mnMouseMoveId )
- mpWindowImpl->mpFrameData->mnMouseMoveId = Application::PostUserEvent( LINK( mpWindowImpl->mpFrameWindow, Window, ImplGenerateMouseMoveHdl ) );
+ mpWindowImpl->mpFrameData->mnMouseMoveId = Application::PostUserEvent( LINK( mpWindowImpl->mpFrameWindow, Window, ImplGenerateMouseMoveHdl ), NULL, true );
}
IMPL_LINK_NOARG(Window, ImplGenerateMouseMoveHdl)
diff --git a/vcl/source/window/syschild.cxx b/vcl/source/window/syschild.cxx
index 6181709..25867d8 100644
--- a/vcl/source/window/syschild.cxx
+++ b/vcl/source/window/syschild.cxx
@@ -82,7 +82,7 @@ long ImplSysChildProc( void* pInst, SalObject* /* pObject */,
if ( !pWindow->ImplGetFrameData()->mnFocusId )
{
pWindow->ImplGetFrameData()->mbStartFocusState = true;
- pWindow->ImplGetFrameData()->mnFocusId = Application::PostUserEvent( LINK( pWindow->ImplGetFrameWindow(), vcl::Window, ImplAsyncFocusHdl ) );
+ pWindow->ImplGetFrameData()->mnFocusId = Application::PostUserEvent( LINK( pWindow->ImplGetFrameWindow(), vcl::Window, ImplAsyncFocusHdl ), NULL, true );
}
break;
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index f3d8729..1b825b8 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -5013,7 +5013,7 @@ bool ToolBox::ImplOpenItem( vcl::KeyCode aKeyCode )
return bRet;
UpdateCustomMenu();
- mpData->mnEventId = Application::PostUserEvent( LINK( this, ToolBox, ImplCallExecuteCustomMenu ) );
+ mpData->mnEventId = Application::PostUserEvent( LINK( this, ToolBox, ImplCallExecuteCustomMenu ), NULL, true );
}
else if( mnHighItemId && ImplGetItem( mnHighItemId ) &&
(ImplGetItem( mnHighItemId )->mnBits & ToolBoxItemBits::DROPDOWN) )
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index ce755bf..d06291c 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1942,7 +1942,7 @@ void ToolBox::ExecuteCustomMenu()
// handle custom menu asynchronously
// to avoid problems if the toolbox is closed during menu execute
UpdateCustomMenu();
- mpData->mnEventId = Application::PostUserEvent( LINK( this, ToolBox, ImplCallExecuteCustomMenu ) );
+ mpData->mnEventId = Application::PostUserEvent( LINK( this, ToolBox, ImplCallExecuteCustomMenu ), NULL, true );
}
}
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index d50093e..3ab6541c 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -1890,7 +1890,7 @@ static void ImplHandleGetFocus( vcl::Window* pWindow )
if ( !pWindow->ImplGetWindowImpl()->mpFrameData->mnFocusId )
{
pWindow->ImplGetWindowImpl()->mpFrameData->mbStartFocusState = !pWindow->ImplGetWindowImpl()->mpFrameData->mbHasFocus;
- pWindow->ImplGetWindowImpl()->mpFrameData->mnFocusId = Application::PostUserEvent( LINK( pWindow, vcl::Window, ImplAsyncFocusHdl ) );
+ pWindow->ImplGetWindowImpl()->mpFrameData->mnFocusId = Application::PostUserEvent( LINK( pWindow, vcl::Window, ImplAsyncFocusHdl ), NULL, true);
vcl::Window* pFocusWin = pWindow->ImplGetWindowImpl()->mpFrameData->mpFocusWin;
if ( pFocusWin && pFocusWin->ImplGetWindowImpl()->mpCursor )
pFocusWin->ImplGetWindowImpl()->mpCursor->ImplShow();
@@ -1927,7 +1927,7 @@ static void ImplHandleLoseFocus( vcl::Window* pWindow )
if ( !pWindow->ImplGetWindowImpl()->mpFrameData->mnFocusId )
{
pWindow->ImplGetWindowImpl()->mpFrameData->mbStartFocusState = !pWindow->ImplGetWindowImpl()->mpFrameData->mbHasFocus;
- pWindow->ImplGetWindowImpl()->mpFrameData->mnFocusId = Application::PostUserEvent( LINK( pWindow, vcl::Window, ImplAsyncFocusHdl ) );
+ pWindow->ImplGetWindowImpl()->mpFrameData->mnFocusId = Application::PostUserEvent( LINK( pWindow, vcl::Window, ImplAsyncFocusHdl ), NULL, true );
}
vcl::Window* pFocusWin = pWindow->ImplGetWindowImpl()->mpFrameData->mpFocusWin;
diff --git a/vcl/unx/generic/app/i18n_status.cxx b/vcl/unx/generic/app/i18n_status.cxx
index d61c0b7..896d345 100644
--- a/vcl/unx/generic/app/i18n_status.cxx
+++ b/vcl/unx/generic/app/i18n_status.cxx
@@ -287,7 +287,7 @@ void XIMStatusWindow::show( bool bShow, I18NStatus::ShowReason eReason )
m_bDelayedShow = bShow;
m_eDelayedReason = eReason;
if( ! m_nDelayedEvent )
- m_nDelayedEvent = Application::PostUserEvent( LINK( this, XIMStatusWindow, DelayedShowHdl ) );
+ m_nDelayedEvent = Application::PostUserEvent( LINK( this, XIMStatusWindow, DelayedShowHdl ), NULL, true );
}
void XIMStatusWindow::setText( const OUString& rText )
More information about the Libreoffice-commits
mailing list