Changes in / [f233898:b3ebed5]


Ignore:
Location:
src-qt4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/PCDM/src/main.cpp

    r5b07f4a r9cc1b3c  
    2626#define TMPLANGFILE QString("/tmp/.PCDMLang") 
    2727#define TMPAUTOLOGINFILE QString("/tmp/.PCDMAutoLogin") 
    28  
     28#define TMPAUTHFILE QString("/tmp/.PCDMAuth") 
    2929//Make sure that prefix is set 
    3030//#ifndef prefix 
  • src-qt4/PCDM/src/pcdm-xprocess.cpp

    re949bab r9cc1b3c  
    407407  } 
    408408} 
     409// ------------------------------------------- 
     410//   XAUTHORITY FUNCTIONS 
     411// ------------------------------------------- 
     412void XProcess::generateXAuth(){ 
     413  //determine the filename 
     414  XAUTHFILENAME = XauFileName(); 
     415  //generate the structure 
     416  XAUTH = new Xauth; 
     417    XAUTH-> 
     418  //open the file (as new) 
     419  FILE *XFILE = fopen( XAUTHFILENAME, "w+" ); 
     420  //Write the authorization file 
     421  XauWriteAuth( XFILE, XAUTH ); 
     422  //Now close the file 
     423  fclose(XFILE); 
     424} 
     425 
     426void XProcess::revokeXAuth(){ 
     427 
     428} 
  • src-qt4/PCDM/src/pcdm-xprocess.h

    r577dd9b r9cc1b3c  
    2222 
    2323#include "pcdm-backend.h" 
     24 
     25#include <X11/Xauth.h> 
    2426 
    2527class XProcess : public QProcess 
     
    5557        void pam_logFailure(int); 
    5658        void pam_shutdown(); //cleanly close all the PAM stuff 
     59        // XAuthoriy functions 
     60        Xauth XAUTH; //saved authority structure 
     61        char *XAUTHFILENAME; //file location for the authority file 
     62        void generateXAuth(); 
     63        void revokeXAuth(); 
    5764         
     65   
    5866  private slots: 
    5967        void slotCleanup(int, QProcess::ExitStatus); 
  • src-qt4/pc-softwaremanager/mainUI.cpp

    r4ba4baf r6763bdf  
    276276 
    277277void MainUI::slotPBIStatusUpdate(QString pbiID){ 
     278  //This will do a full update of a particlar PBI entry 
     279  //    and just update/check the icons for all the other PBI's 
    278280  for(int i=0; i<ui->tree_install_apps->topLevelItemCount(); i++){ 
    279281    QString itemID = ui->tree_install_apps->topLevelItem(i)->whatsThis(0); 
     
    289291        slotUpdateSelectedPBI(true);; //only update status 
    290292      } 
    291       return; // Found our match, we can return now 
     293    }else{ 
     294      //Just check/update the icon if necessary 
     295      if(ui->tree_install_apps->topLevelItem(i)->icon(0).isNull()){ 
     296         ui->tree_install_apps->topLevelItem(i)->setIcon(0, QIcon( PBI->PBIInfo(itemID, QStringList() << "icon").join("") )); 
     297      } 
    292298    } 
    293299  } 
Note: See TracChangeset for help on using the changeset viewer.