diff options
Diffstat (limited to 'plugins/Popup/src/services.cpp')
-rw-r--r-- | plugins/Popup/src/services.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/Popup/src/services.cpp b/plugins/Popup/src/services.cpp index b2c3887c4c..4be78c8a12 100644 --- a/plugins/Popup/src/services.cpp +++ b/plugins/Popup/src/services.cpp @@ -474,4 +474,21 @@ INT_PTR Popup_CreateClassPopup(WPARAM wParam, LPARAM lParam) INT_PTR Popup_DeletePopup(WPARAM, LPARAM lParam)
{
return (INT_PTR)SendMessage((HWND)lParam, UM_DESTROYPOPUP, 0, 0);
+}
+
+INT_PTR Popup_LoadSkin(WPARAM, LPARAM lParam)
+{
+ if (lParam)
+ {
+ mir_free(PopupOptions.SkinPack);
+ PopupOptions.SkinPack = mir_a2t((char*)lParam);
+ }
+
+ const PopupSkin *skin = 0;
+ if (skin = skins.getSkin(PopupOptions.SkinPack)) {
+ mir_free(PopupOptions.SkinPack);
+ PopupOptions.SkinPack = mir_tstrdup(skin->getName());
+ }
+
+ return 1;
}
\ No newline at end of file |