Subversion Repositories spk

Rev

Rev 105 | Rev 152 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 105 Rev 129
Line 48... Line 48...
48
			{
48
			{
49
				//extract icon
49
				//extract icon
50
				C_File *f = p->GetIcon();
50
				C_File *f = p->GetIcon();
51
				f->SetFullDir(CyStringFromSystemString(System::IO::Path::GetTempPath()));
51
				f->SetFullDir(CyStringFromSystemString(System::IO::Path::GetTempPath()));
52
				if ( f->UncompressData() )
52
				if ( f->UncompressData() )
53
					f->WriteFilePointer();
53
					f->writeFilePointer();
54
				
54
				
55
				PluginManager::DisplayListIcon(p, ListPackages, item);
55
				PluginManager::DisplayListIcon(p, ListPackages, item);
56
			}
56
			}
57
 
57
 
58
			C_File *gf = p->GetFirstFile(FILETYPE_ADVERT);
58
			C_File *gf = p->GetFirstFile(FILETYPE_ADVERT);
59
			if ( gf )
59
			if ( gf )
60
			{
60
			{
61
				gf->SetFullDir(CyStringFromSystemString(System::IO::Path::GetTempPath()));
61
				gf->SetFullDir(CyStringFromSystemString(System::IO::Path::GetTempPath()));
62
				if ( gf->UncompressData() )
62
				if ( gf->UncompressData() )
63
					gf->WriteFilePointer();
63
					gf->writeFilePointer();
64
			}
64
			}
65
 
65
 
66
 
66
 
67
			if ( count == 1 )
67
			if ( count == 1 )
68
				item->Selected = true;
68
				item->Selected = true;
Line 116... Line 116...
116
			// update graphic
116
			// update graphic
117
			bool addedIcon = false;
117
			bool addedIcon = false;
118
			C_File *picFile = p->GetFirstFile(FILETYPE_ADVERT);
118
			C_File *picFile = p->GetFirstFile(FILETYPE_ADVERT);
119
			if ( picFile )
119
			if ( picFile )
120
			{
120
			{
121
				System::String ^pic = SystemStringFromCyString(picFile->GetFilePointer());
121
				System::String ^pic = _US(picFile->filePointer());
122
				if ( System::IO::File::Exists(pic) )
122
				if ( System::IO::File::Exists(pic) )
123
				{
123
				{
124
					try {
124
					try {
125
						Bitmap ^myBitmap = gcnew Bitmap(pic);
125
						Bitmap ^myBitmap = gcnew Bitmap(pic);
126
						if ( myBitmap )
126
						if ( myBitmap )