Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Plugin Settings Icons
dmoore:
i haven't checked the sdk code, but perhaps you need to match the directory structure inside your zip file (e.g. put your images in image/ThreadSearch in the .cbplugin zip). otherwise, bug in the sdk?
dje:
Hi all !
So, there were 2 errors.
The first:
my cbplugin did not contain path info, in my case images\ThreadSearch\
The second:
there is a bug.
Sorry for not submitting a patch but I'm not at home and pc A is my dev pc and pc B has internet...
in PluginManager::ExtractFile, the expression:
--- Code: ---wxFileName(dst_filename).GetPath(wxPATH_GET_SEPARATOR)
--- End code ---
returns on my PC \Dev\codeblocks\src\devel\share\codeblocks\images\ThreadSearch\
The problem is that the volume is missing in the string.
CreateDirRecursively fails at line 399 in globals.cpp because currdir value is :\Dev due to missing volume.
I hope it helps and it is clear enough to be useful.
I'll submit a bug and a patch when I'm back at home if problem is not solved.
My conf:
WinXP SP2, dev SVN 0 on my built C::B ??
It is recent (less than one week).
Dje
dje:
Hi !
Problem :
during plugin install, directories are not created on windows.
Solution:
Still not at home so I give the line instead of the patch:
Replace line 629 in pluginmanager.cpp in bool PluginManager::ExtractFile(...)
--- Code: --- CreateDirRecursively(wxFileName(dst_filename).GetPath(wxPATH_GET_SEPARATOR));
--- End code ---
by
--- Code: --- CreateDirRecursively(wxFileName(dst_filename).GetPath(wxPATH_GET_SEPARATOR|wxPATH_GET_VOLUME));
--- End code ---
That works on windows and was not tested on other OSs.
Dje
mandrav:
--- Quote ---That works on windows and was not tested on other OSs.
--- End quote ---
Done, thanks Dje.
dje:
Hi all !
I found a bug related to this topic.
It concerns extra icons relative path during plugin export.
In my SVN environment, my plugin extra icons are located in :
C:\Dev\codeblocks\src\devel\share\codeblocks\images\ThreadSearch
I export ThreadSearch plugin in
C:\Dev\codeblocks\src\plugins\contrib\ThreadSearchBin\Win
The .cbplugin contains all files, but if I unzip it, extra icons are extracted in
D:\tmp\ThreadSearch-0.8\Dev\codeblocks\src\devel\share\codeblocks\images\ThreadSearch
instead of
D:\tmp\ThreadSearch-0.8\images\ThreadSearch
I'll put it on BerliOS this evening.
Dje
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version