textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutbutton.cpp
branchRCL_3
changeset 12 5e18d8c489d6
parent 11 c8fb4cf7b3ae
child 20 ebd48d2de13c
equal deleted inserted replaced
11:c8fb4cf7b3ae 12:5e18d8c489d6
   356 // (other items were commented in a header).
   356 // (other items were commented in a header).
   357 // ---------------------------------------------------------------------------
   357 // ---------------------------------------------------------------------------
   358 //
   358 //
   359 EXPORT_C void CButtonBase::SetDimmed(TBool aDimFlag)
   359 EXPORT_C void CButtonBase::SetDimmed(TBool aDimFlag)
   360     {
   360     {
       
   361     if(iDimmed == aDimFlag)
       
   362         return;
   361     //Remove its active flag if dim an active button.
   363     //Remove its active flag if dim an active button.
   362     if(aDimFlag && IsActive())
   364     if(aDimFlag && IsActive())
   363         SetActive(EFalse);
   365         SetActive(EFalse);
   364     iDimmed = aDimFlag;
   366     iDimmed = aDimFlag;
   365     if(iDimmed)
   367     if(iDimmed)