From b454349d50a819960b7bc199a1c368f97ffc1a9d Mon Sep 17 00:00:00 2001 From: Sergey Tatarinov Date: Sat, 10 Jan 2015 20:51:10 +0000 Subject: Db_autobackups: reverted icon in the popup git-svn-id: http://svn.miranda-ng.org/main/trunk@11826 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/backup.cpp | 2 +- plugins/Db_autobackups/src/headers.h | 17 +++++++---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp index 22090ee0f6..a637ba7fe4 100644 --- a/plugins/Db_autobackups/src/backup.cpp +++ b/plugins/Db_autobackups/src/backup.cpp @@ -36,7 +36,7 @@ void ShowPopup(TCHAR* ptszText, TCHAR* ptszHeader, TCHAR* ptszPath) if (ptszPath != NULL) ppd.PluginData = (void*)mir_tstrdup(ptszPath); ppd.PluginWindowProc = DlgProcPopup; - ppd.lchIcon = Skin_GetIconByHandle(iconList[0].hIcolib); + ppd.lchIcon = Skin_GetIcon(iconList[0].szName); PUAddPopupT(&ppd); } diff --git a/plugins/Db_autobackups/src/headers.h b/plugins/Db_autobackups/src/headers.h index 77fdd86a14..a3bc9d04a9 100644 --- a/plugins/Db_autobackups/src/headers.h +++ b/plugins/Db_autobackups/src/headers.h @@ -23,29 +23,26 @@ #include "version.h" -#define MS_AB_BACKUP "AB/Backup" -#define MS_AB_SAVEAS "AB/SaveAs" +#define MS_AB_BACKUP "AB/Backup" +#define MS_AB_SAVEAS "AB/SaveAs" -#define SUB_DIR L"\\AutoBackups" -#define DIR L"%miranda_userdata%" +#define SUB_DIR L"\\AutoBackups" +#define DIR L"%miranda_userdata%" int SetBackupTimer(void); int OptionsInit(WPARAM wParam, LPARAM lParam); int LoadOptions(void); -void BackupStart(TCHAR *backup_filename); +void BackupStart(TCHAR *backup_filename); extern HINSTANCE g_hInstance; -extern TCHAR *profilePath; - +extern TCHAR *profilePath; static IconItem iconList[] = { - { LPGEN("Backup profile"), "backup", IDI_ICON1 }, + { LPGEN("Backup profile"), "backup", IDI_ICON1 }, { LPGEN("Save profile as..."), "saveas", IDI_ICON1 } }; - - #endif -- cgit v1.2.3