summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-07-20 10:54:30 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2017-01-17 16:08:46 +0100
commit9e51007039770370182839846676b205f5c34c57 (patch)
tree0f00a1fc0b26a39b9bbf33e413cfba6d93c7596c /sd
parent9235c5a3c2c7038b75606235859057f13824d5a1 (diff)
tdf#97087 GDB pretty print the Scheduler task list
In addition to the GDB pretty printer, this annotates a lot more Timers and Idles. Change-Id: I5b93fab02161b23bb753e65ef92643a04fb0789c
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/dlg/brkdlg.cxx9
-rw-r--r--sd/source/ui/dlg/filedlg.cxx1
-rw-r--r--sd/source/ui/inc/BreakDlg.hxx2
3 files changed, 7 insertions, 5 deletions
diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx
index 516a3bcfbe9b..0626fde2e485 100644
--- a/sd/source/ui/dlg/brkdlg.cxx
+++ b/sd/source/ui/dlg/brkdlg.cxx
@@ -45,9 +45,12 @@ BreakDlg::BreakDlg(
sal_uLong nSumActionCount,
sal_uLong nObjCount )
: SfxModalDialog(pWindow, "BreakDialog", "modules/sdraw/ui/breakdialog.ui")
- , aIdle("sd BreakDlg Idle")
, mpProgress( nullptr )
{
+ m_aUpdateIdle.SetPriority( SchedulerPriority::REPAINT );
+ m_aUpdateIdle.SetIdleHdl( LINK( this, BreakDlg, InitialUpdate ) );
+ m_aUpdateIdle.SetDebugName( "sd::BreakDlg m_aUpdateIdle" );
+
get(m_pFiObjInfo, "metafiles");
get(m_pFiActInfo, "metaobjects");
get(m_pFiInsInfo, "drawingobjects");
@@ -160,9 +163,7 @@ IMPL_LINK( BreakDlg, UpDate, void*, nInit, bool )
*/
short BreakDlg::Execute()
{
- aIdle.SetPriority( SchedulerPriority::REPAINT );
- aIdle.SetIdleHdl( LINK( this, BreakDlg, InitialUpdate ) );
- aIdle.Start();
+ m_aUpdateIdle.Start();
return SfxModalDialog::Execute();
}
diff --git a/sd/source/ui/dlg/filedlg.cxx b/sd/source/ui/dlg/filedlg.cxx
index e5823d139d61..b06c7804fea6 100644
--- a/sd/source/ui/dlg/filedlg.cxx
+++ b/sd/source/ui/dlg/filedlg.cxx
@@ -214,6 +214,7 @@ SdFileDialog_Imp::SdFileDialog_Imp() :
mbLabelPlaying(false)
{
maUpdateIdle.SetIdleHdl(LINK(this, SdFileDialog_Imp, IsMusicStoppedHdl));
+ maUpdateIdle.SetDebugName( "SdFileDialog_Imp maUpdateIdle" );
css::uno::Reference < css::ui::dialogs::XFilePicker2 > xFileDlg = GetFilePicker();
diff --git a/sd/source/ui/inc/BreakDlg.hxx b/sd/source/ui/inc/BreakDlg.hxx
index e333ea3df50a..1f37322bc3f0 100644
--- a/sd/source/ui/inc/BreakDlg.hxx
+++ b/sd/source/ui/inc/BreakDlg.hxx
@@ -66,7 +66,7 @@ private:
bool bCancel;
- Idle aIdle;
+ Idle m_aUpdateIdle;
SvdProgressInfo *pProgrInfo;
SfxProgress *mpProgress;