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

Krisztian Pinter pin.terminator at gmail.com
Wed Sep 4 04:16:32 PDT 2013


 sfx2/source/dialog/backingwindow.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 03fe1dc6ff8fbc1091515825d04a87778c22757d
Author: Krisztian Pinter <pin.terminator at gmail.com>
Date:   Wed Sep 4 13:09:36 2013 +0200

    startcenter: Fix template buttons breaking when used with k.board
    
    Change-Id: I14a6b5610b4cb337101403bbbf5c5d70af012c54
    Reviewed-on: https://gerrit.libreoffice.org/5806
    Reviewed-by: Krisztian Pinter <pin.terminator at gmail.com>
    Tested-by: Krisztian Pinter <pin.terminator at gmail.com>

diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index bece1f6..3b66cc9 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -525,6 +525,7 @@ IMPL_LINK( BackingWindow, RecentTemplateToggleHdl, Button*, pButton )
         mpWriterShowTemplateButton->Hide();
         mpWriterTemplateThumbnails->Show();
         mpWriterShowRecentButton->Show();
+        mpWriterShowRecentButton->GrabFocus();
     }
     else if( pButton == mpWriterShowRecentButton )
     {
@@ -532,6 +533,7 @@ IMPL_LINK( BackingWindow, RecentTemplateToggleHdl, Button*, pButton )
         mpWriterShowRecentButton->Hide();
         mpWriterRecentThumbnails->Show();
         mpWriterShowTemplateButton->Show();
+        mpWriterShowTemplateButton->GrabFocus();
     }
     // calc
     else if( pButton == mpCalcShowTemplateButton )
@@ -540,6 +542,7 @@ IMPL_LINK( BackingWindow, RecentTemplateToggleHdl, Button*, pButton )
         mpCalcShowTemplateButton->Hide();
         mpCalcTemplateThumbnails->Show();
         mpCalcShowRecentButton->Show();
+        mpCalcShowRecentButton->GrabFocus();
     }
     else if( pButton == mpCalcShowRecentButton )
     {
@@ -547,6 +550,7 @@ IMPL_LINK( BackingWindow, RecentTemplateToggleHdl, Button*, pButton )
         mpCalcShowRecentButton->Hide();
         mpCalcRecentThumbnails->Show();
         mpCalcShowTemplateButton->Show();
+        mpCalcShowTemplateButton->GrabFocus();
     }
     // impress
     else if( pButton == mpImpressShowTemplateButton )
@@ -555,6 +559,7 @@ IMPL_LINK( BackingWindow, RecentTemplateToggleHdl, Button*, pButton )
         mpImpressShowTemplateButton->Hide();
         mpImpressTemplateThumbnails->Show();
         mpImpressShowRecentButton->Show();
+        mpImpressShowRecentButton->GrabFocus();
     }
     else if( pButton == mpImpressShowRecentButton )
     {
@@ -562,6 +567,7 @@ IMPL_LINK( BackingWindow, RecentTemplateToggleHdl, Button*, pButton )
         mpImpressShowRecentButton->Hide();
         mpImpressRecentThumbnails->Show();
         mpImpressShowTemplateButton->Show();
+        mpImpressShowTemplateButton->GrabFocus();
     }
     // draw
     else if( pButton == mpDrawShowTemplateButton )
@@ -570,6 +576,7 @@ IMPL_LINK( BackingWindow, RecentTemplateToggleHdl, Button*, pButton )
         mpDrawShowTemplateButton->Hide();
         mpDrawTemplateThumbnails->Show();
         mpDrawShowRecentButton->Show();
+        mpDrawShowRecentButton->GrabFocus();
     }
     else if( pButton == mpDrawShowRecentButton )
     {
@@ -577,6 +584,7 @@ IMPL_LINK( BackingWindow, RecentTemplateToggleHdl, Button*, pButton )
         mpDrawShowRecentButton->Hide();
         mpDrawRecentThumbnails->Show();
         mpDrawShowTemplateButton->Show();
+        mpDrawShowTemplateButton->GrabFocus();
     }
     return 0;
 }


More information about the Libreoffice-commits mailing list