summaryrefslogtreecommitdiff
path: root/plugins/Utils
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-12-01 08:43:08 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-12-01 08:43:08 +0000
commit86802925857034fec1fbfb5c0eb668e996b0518d (patch)
tree68d51590b10b9416c1e2d1bd652a00ce5807da4e /plugins/Utils
parent14517f8c04b030e4e46f6eb1167a073ef7a1ae51 (diff)
finally mir_icons removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@2578 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Utils')
-rw-r--r--plugins/Utils/mir_icons.cpp71
-rw-r--r--plugins/Utils/mir_icons.h28
2 files changed, 0 insertions, 99 deletions
diff --git a/plugins/Utils/mir_icons.cpp b/plugins/Utils/mir_icons.cpp
deleted file mode 100644
index 9af9f2a3d2..0000000000
--- a/plugins/Utils/mir_icons.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
-Copyright (C) 2007-2009 Ricardo Pescuma Domenecci
-
-This is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public
-License as published by the Free Software Foundation; either
-version 2 of the License, or (at your option) any later version.
-
-This is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Library General Public License for more details.
-
-You should have received a copy of the GNU Library General Public
-License along with this file; see the file license.txt. If
-not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.
-*/
-
-#include <Windows.h>
-
-#include "mir_icons.h"
-
-#include <newpluginapi.h>
-#include <m_system.h>
-#include <m_icolib.h>
-
-extern HINSTANCE hInst;
-
-HICON IcoLib_LoadIcon(const char *iconName, BOOL copy)
-{
- if (iconName == NULL || iconName[0] == 0)
- return NULL;
-
- HICON hIcon = Skin_GetIcon(iconName);
- if (copy && hIcon != NULL) {
- hIcon = CopyIcon(hIcon);
- Skin_ReleaseIcon(hIcon);
- }
- return hIcon;
-}
-
-void IcoLib_ReleaseIcon(const char *iconName)
-{
- Skin_ReleaseIcon(iconName);
-}
-
-void IcoLib_ReleaseIcon(HICON hIcon)
-{
- Skin_ReleaseIcon(hIcon);
-}
-
-HANDLE IcoLib_Register(char *name, char *section, char *description, int id)
-{
- HANDLE hIcon = Skin_GetIconHandle(name);
- if (hIcon != NULL)
- return hIcon;
-
- TCHAR tszFile[MAX_PATH];
- GetModuleFileName(hInst, tszFile, MAX_PATH);
-
- SKINICONDESC sid = {0};
- sid.cbSize = sizeof(SKINICONDESC);
- sid.flags = SIDF_PATH_TCHAR;
- sid.pszName = name;
- sid.pszSection = section;
- sid.pszDescription = description;
- sid.ptszDefaultFile = tszFile;
- sid.iDefaultIndex = -id;
- return Skin_AddIcon(&sid);
-}
diff --git a/plugins/Utils/mir_icons.h b/plugins/Utils/mir_icons.h
deleted file mode 100644
index 397e53bc93..0000000000
--- a/plugins/Utils/mir_icons.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
-Copyright (C) 2005-2009 Ricardo Pescuma Domenecci
-
-This is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public
-License as published by the Free Software Foundation; either
-version 2 of the License, or (at your option) any later version.
-
-This is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Library General Public License for more details.
-
-You should have received a copy of the GNU Library General Public
-License along with this file; see the file license.txt. If
-not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.
-*/
-
-
-#ifndef __MIR_ICONS_H__
-# define __MIR_ICONS_H__
-
-HANDLE IcoLib_Register(char *name, char *section, char *description, int id);
-
-HICON IcoLib_LoadIcon(const char *iconName, BOOL copy = FALSE);
-
-#endif // __MIR_ICONS_H__