[Libreoffice-commits] core.git: sfx2/source

Abhishek Shrivastava x.abhishek.flyhigh at gmail.com
Wed Jan 17 10:16:05 UTC 2018


 sfx2/source/appl/shutdowniconw32.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 69645183237be13e32fcdeb7b10f1ca04c3198cc
Author: Abhishek Shrivastava <x.abhishek.flyhigh at gmail.com>
Date:   Wed Jan 17 10:23:17 2018 +0530

    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 at collabora.com>
    Tested-by: Jenkins <ci at libreoffice.org>

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();


More information about the Libreoffice-commits mailing list