summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/services.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-01-08 10:13:05 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-01-08 10:13:05 +0000
commit4b120013511a56eeee224272825c8711957d20d2 (patch)
tree4a7fbe404fb99124339afea346d10bb23fcf005f /plugins/SmileyAdd/src/services.cpp
parent284bcba502b7b70c564adcbe508ea4e42ad67e17 (diff)
SmileyAdd: background color setting moved to core colors
git-svn-id: http://svn.miranda-ng.org/main/trunk@16055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/services.cpp')
-rw-r--r--plugins/SmileyAdd/src/services.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp
index c85d1789c9..4fd7bc9771 100644
--- a/plugins/SmileyAdd/src/services.cpp
+++ b/plugins/SmileyAdd/src/services.cpp
@@ -351,12 +351,25 @@ INT_PTR ReloadPack(WPARAM, LPARAM lParam)
if (smc != NULL) smc->Load();
}
else
+ {
+ g_SmileyCategories.ClearAll();
+ g_SmileyCategories.AddAllProtocolsAsCategory();
g_SmileyCategories.ClearAndLoadAll();
+ }
NotifyEventHooks(hEvent1, 0, 0);
return 0;
}
+INT_PTR ReloadOptions(WPARAM, LPARAM)
+{
+ g_SmileyCategories.ClearAll();
+ g_SmileyCategories.AddAllProtocolsAsCategory();
+ g_SmileyCategories.ClearAndLoadAll();
+ opt.Load();
+ return 0;
+}
+
INT_PTR LoadContactSmileys(WPARAM, LPARAM lParam)
{
if (opt.DisableCustom) return 0;
@@ -445,3 +458,10 @@ int DbSettingChanged(WPARAM hContact, LPARAM lParam)
}
return 0;
}
+
+
+int ReloadColour(WPARAM, LPARAM)
+{
+ opt.SelWndBkgClr = db_get_dw(NULL, "SmileyAdd", "SelWndBkgClr", GetSysColor(COLOR_WINDOW));
+ return 0;
+} \ No newline at end of file