[Libreoffice-commits] .: Branch 'feature/cmclayouttrans' - vcl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Aug 23 04:40:36 PDT 2012


 vcl/source/window/builder.cxx |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit 35c4c62c178f1ed2d08267c0845b7c05a2590f35
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Aug 23 12:40:01 2012 +0100

    map gtk-media-next and gtk-media-previous stock items
    
    Change-Id: Id5c973942108a95649d1cc23b21820c2b981aef9

diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index ad792b9..6f0c9af 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -257,6 +257,18 @@ namespace
                 pWindow = new CancelButton(pParent, nBits);
             else if (sType.equalsL(RTL_CONSTASCII_STRINGPARAM("gtk-help")))
                 pWindow = new HelpButton(pParent, nBits);
+            else if (sType.equalsL(RTL_CONSTASCII_STRINGPARAM("gtk-media-next")))
+            {
+                PushButton *pBtn = new PushButton(pParent, nBits);
+                pBtn->SetSymbol(SYMBOL_NEXT);
+                pWindow = pBtn;
+            }
+            else if (sType.equalsL(RTL_CONSTASCII_STRINGPARAM("gtk-media-previous")))
+            {
+                PushButton *pBtn = new PushButton(pParent, nBits);
+                pBtn->SetSymbol(SYMBOL_PREV);
+                pWindow = pBtn;
+            }
             else
                 fprintf(stderr, "unknown stock type %s\n", sType.getStr());
         }


More information about the Libreoffice-commits mailing list