idlehomescreen/xmluirendering/uiengine/src/xncomponentfactory.cpp
branchRCL_3
changeset 12 9674c1a575e9
parent 2 08c6ee43b396
equal deleted inserted replaced
11:ff572dfe6d86 12:9674c1a575e9
    95         
    95         
    96     aTargetComponent->SetNode( aNode );
    96     aTargetComponent->SetNode( aNode );
    97             
    97             
    98     if ( type == KView )
    98     if ( type == KView )
    99         {
    99         {
   100         CXnAppUiAdapter* appui = static_cast< CXnAppUiAdapter* >( iAvkonAppUi );
       
   101         
       
   102         adapter->SetContainerWindowL( appui->ViewAdapter().BgControl() ); 
       
   103                            
       
   104         aNode.ViewNodeImpl()->SetComponent( aTargetComponent );
   100         aNode.ViewNodeImpl()->SetComponent( aTargetComponent );
   105         }
   101         }
   106     else
   102     else
   107         {
   103         {
   108         aNode.ComponentNodeImpl()->SetComponent( aTargetComponent );
   104         aNode.ComponentNodeImpl()->SetComponent( aTargetComponent );
   128     if ( type != KToolTip )
   124     if ( type != KToolTip )
   129         {
   125         {
   130         // Don't activate tooltip yet
   126         // Don't activate tooltip yet
   131         adapter->ActivateL();
   127         adapter->ActivateL();
   132         }
   128         }
   133     
   129       
   134     adapter->MakeVisible( EFalse );
       
   135     
       
   136     CleanupStack::Pop( aTargetComponent );
   130     CleanupStack::Pop( aTargetComponent );
   137     
   131     
   138     return response;
   132     return response;
   139     }
   133     }
   140 
   134