summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_events.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-03-06 19:03:12 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-03-06 19:03:12 +0000
commit5fb7d6a8304db2236f46a6c7b33b0540fee11fd6 (patch)
tree89c9fde528f3437a86bb9fb83171f64bbc75efed /plugins/Dropbox/src/dropbox_events.cpp
parentaeff43204a4f2b583f9f83b383be00cac89cbd4e (diff)
Dropbox:
- added first approach of options page - fixed tabsrmm button destruction git-svn-id: http://svn.miranda-ng.org/main/trunk@8430 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_events.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_events.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/plugins/Dropbox/src/dropbox_events.cpp b/plugins/Dropbox/src/dropbox_events.cpp
index 1e5157faa1..0e5472ef0b 100644
--- a/plugins/Dropbox/src/dropbox_events.cpp
+++ b/plugins/Dropbox/src/dropbox_events.cpp
@@ -55,6 +55,20 @@ int CDropbox::OnModulesLoaded(WPARAM wParam, LPARAM lParam)
return 0;
}
+int CDropbox::OnPreShutdown(WPARAM wParam, LPARAM lParam)
+{
+ if (ServiceExists(MS_BB_ADDBUTTON))
+ {
+ BBButton bbd = { sizeof(bbd) };
+ bbd.pszModuleName = MODULE;
+
+ bbd.dwButtonID = BBB_ID_FILE_SEND;
+ CallService(MS_BB_REMOVEBUTTON, 0, (LPARAM)&bbd);
+ }
+
+ return 0;
+}
+
int CDropbox::OnOptionsInit(WPARAM wParam, LPARAM lParam)
{
OPTIONSDIALOGPAGE odp = { sizeof(odp) };
@@ -66,7 +80,7 @@ int CDropbox::OnOptionsInit(WPARAM wParam, LPARAM lParam)
odp.pszTitle = LPGEN("Dropbox");
odp.pfnDlgProc = MainOptionsProc;
- //Options_AddPage(wParam, &odp);
+ Options_AddPage(wParam, &odp);
return 0;
}