diff options
author | Abhishek Shrivastava <x.abhishek.flyhigh@gmail.com> | 2018-01-17 10:23:17 +0530 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-01-17 11:15:44 +0100 |
commit | 69645183237be13e32fcdeb7b10f1ca04c3198cc (patch) | |
tree | f85732386e81d806784c0d5e77fd11bf49b92c91 /sfx2 | |
parent | 665ffc01e124029dc1412cc31e67878f697902ac (diff) |
tdf#60937 Open Start Center on Quickstarter left-click
This patch modifies the click actions on quickstarter on Windows.
Earlier a left double click opened up Template Manager, which wasn't
user friendly.
Now on single left click on quickstarter icon it opens up Start Center
Change-Id: I23e56d5d1bb3f4bfc060149dec60de30ae1207cd
Reviewed-on: https://gerrit.libreoffice.org/48026
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdowniconw32.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx index b93639ee1c01..d91b7c3f05b9 100644 --- a/sfx2/source/appl/shutdowniconw32.cxx +++ b/sfx2/source/appl/shutdowniconw32.cxx @@ -65,6 +65,7 @@ using ::com::sun::star::beans::PropertyValue; #define IDM_TEMPLATE 9 #define IDM_MATH 12 #define IDM_INSTALL 10 +#define IDM_STARTCENTER 14 #define ICON_LO_DEFAULT 1 @@ -306,9 +307,9 @@ LRESULT CALLBACK listenerWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lP case SFX_TASKBAR_NOTIFICATION: switch( lParam ) { - case WM_LBUTTONDBLCLK: + case WM_LBUTTONDOWN: { - BOOL const ret = PostMessageW(aExecuterWindow, WM_COMMAND, IDM_TEMPLATE, reinterpret_cast<LPARAM>(hWnd)); + BOOL const ret = PostMessageW(aExecuterWindow, WM_COMMAND, IDM_STARTCENTER, reinterpret_cast<LPARAM>(hWnd)); SAL_WARN_IF(0 == ret, "sfx.appl", "ERROR: PostMessage() failed!"); break; } @@ -423,6 +424,9 @@ LRESULT CALLBACK executerWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lP case IDM_MATH: ShutdownIcon::OpenURL( MATH_URL, "_default" ); break; + case IDM_STARTCENTER: + ShutdownIcon::OpenURL( STARTMODULE_URL, "_default" ); + break; case IDM_TEMPLATE: if ( !ShutdownIcon::bModalMode ) ShutdownIcon::FromTemplate(); |