idlehomescreen/nativeuicontroller/src/aitoolbarrenderer.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
equal deleted inserted replaced
34:5456b4e8b3a8 35:3321d3e205b6
    34 #include "activeidle2domainpskeys.h"
    34 #include "activeidle2domainpskeys.h"
    35 #include "aiscutplugindomaincrkeys.h"
    35 #include "aiscutplugindomaincrkeys.h"
    36 
    36 
    37 #include "ainativeuiplugins.h"
    37 #include "ainativeuiplugins.h"
    38 
    38 
    39 #include <AiNativeUi.rsg>
    39 #include <ainativeui.rsg>
    40 #include "debug.h"
    40 #include "debug.h"
    41 
    41 
    42 using namespace AiNativeUiController;
    42 using namespace AiNativeUiController;
    43 
    43 
    44 // Constants
    44 // Constants
   335         }
   335         }
   336     // No button yet => Create new
   336     // No button yet => Create new
   337     if ( index >= iButtons.Count() )
   337     if ( index >= iButtons.Count() )
   338         {
   338         {
   339         button = CAiToolbarButton::NewL();
   339         button = CAiToolbarButton::NewL();
       
   340         CleanupStack::PushL( button );
   340         button->SetShortcutId( aShortcutId );
   341         button->SetShortcutId( aShortcutId );
   341         iButtons.Append( button );
   342         iButtons.AppendL( button );
       
   343         CleanupStatck::Pop( button );
   342         }
   344         }
   343 
   345 
   344     // Use the old button
   346     // Use the old button
   345     else if( index >= KFirstButton && index < iButtons.Count() )
   347     else if( index >= KFirstButton && index < iButtons.Count() )
   346         {
   348         {