diff options
Diffstat (limited to 'worldtime')
-rw-r--r-- | worldtime/IcoLib.h | 37 | ||||
-rw-r--r-- | worldtime/WorldTime.cpp | 2 | ||||
-rw-r--r-- | worldtime/WorldTime.vcproj | 4 | ||||
-rw-r--r-- | worldtime/plugwin.cpp | 4 | ||||
-rw-r--r-- | worldtime/plugwin.h | 2 |
5 files changed, 4 insertions, 45 deletions
diff --git a/worldtime/IcoLib.h b/worldtime/IcoLib.h deleted file mode 100644 index 1817df6..0000000 --- a/worldtime/IcoLib.h +++ /dev/null @@ -1,37 +0,0 @@ -typedef struct {
- int cbSize;
- char *pszSection; //section name used to group icons
- char *pszDescription; //description for options dialog
- char *pszName; //name to refer to icon when playing and in db
- //this name is miranda-wide. so use prefixes of your plugin
- //e.g: "isee_connect", "clist_delete", etc
- char *pszDefaultFile; //default icon file to use
- int iDefaultIndex;
-} SKINICONDESC;
-
-typedef struct {
- int cbSize;
- char *pszSection;
- char *pszDescription;
- char *pszName;
- char *pszDefaultFile;
- int iDefaultIndex;
- HICON hDefaultIcon;
-} SKINICONDESC2;
-
-//
-// Add a icon into options UI
-//
-// wParam = (WPARAM)0
-// lParam = (LPARAM)(SKINICONDESC*)sid;
-//
-#define MS_SKIN2_ADDICON "Skin2/Icons/AddIcon"
-//
-// Retrieve HICON with name specified in lParam
-// Returned HICON SHOULDN'T be destroyed, it managed by IcoLib
-//
-#define MS_SKIN2_GETICON "Skin2/Icons/GetIcon"
-//
-// Icons change notification
-//
-#define ME_SKIN2_ICONSCHANGED "Skin2/IconsChanged"
diff --git a/worldtime/WorldTime.cpp b/worldtime/WorldTime.cpp index d61eb9c..dc45dad 100644 --- a/worldtime/WorldTime.cpp +++ b/worldtime/WorldTime.cpp @@ -7,7 +7,7 @@ PLUGINLINK *pluginLink; PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
"World Time",
- PLUGIN_MAKE_VERSION(0, 3, 0, 0),
+ PLUGIN_MAKE_VERSION(0, 3, 0, 1),
"Display world times.",
"Scott Ellis",
"mail@scottellis.com.au",
diff --git a/worldtime/WorldTime.vcproj b/worldtime/WorldTime.vcproj index a8b18c8..2a5583f 100644 --- a/worldtime/WorldTime.vcproj +++ b/worldtime/WorldTime.vcproj @@ -331,10 +331,6 @@ >
</File>
<File
- RelativePath="IcoLib.h"
- >
- </File>
- <File
RelativePath="plugwin.h"
>
</File>
diff --git a/worldtime/plugwin.cpp b/worldtime/plugwin.cpp index cc7ae56..48bb576 100644 --- a/worldtime/plugwin.cpp +++ b/worldtime/plugwin.cpp @@ -762,9 +762,9 @@ static int PlugShowWindow(WPARAM wParam, LPARAM lParam) { int InitIcons(WPARAM wParam, LPARAM lParam) {
if(ServiceExists(MS_SKIN2_ADDICON)) {
- SKINICONDESC2 sid;
+ SKINICONDESC sid = {0};
- sid.cbSize = sizeof(SKINICONDESC2);
+ sid.cbSize = sizeof(SKINICONDESC);
sid.pszSection = "WorldTime";
sid.pszDescription = Translate("Day");
diff --git a/worldtime/plugwin.h b/worldtime/plugwin.h index 0e83d96..822fa51 100644 --- a/worldtime/plugwin.h +++ b/worldtime/plugwin.h @@ -27,7 +27,7 @@ #include <m_skin_eng.h>
-#include "IcoLib.h"
+#include <m_icolib.h>
#include <sstream>
|