summaryrefslogtreecommitdiff
path: root/plugins/Weather/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-11 21:53:08 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-11 21:53:08 +0000
commit2b982f8a1f23ae29136f62fb3819df50c281e19f (patch)
tree2bcd75424aa5187212a888fa57f1ff63a6baa8ae /plugins/Weather/src
parentc25eab397cf1ab92b1d6fa5933a6981ba0409bd7 (diff)
rest of minor TopToolbar_AddButton issues
git-svn-id: http://svn.miranda-ng.org/main/trunk@3981 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src')
-rw-r--r--plugins/Weather/src/weather.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/plugins/Weather/src/weather.cpp b/plugins/Weather/src/weather.cpp
index 17d873d482..fd110987e6 100644
--- a/plugins/Weather/src/weather.cpp
+++ b/plugins/Weather/src/weather.cpp
@@ -103,16 +103,15 @@ int WeatherShutdown(WPARAM wParam,LPARAM lParam)
int OnToolbarLoaded(WPARAM wParam, LPARAM lParam)
{
- TTBButton tbb = {0};
- tbb.cbSize = sizeof(TTBButton);
- tbb.name = LPGEN("Enable/disable auto update");
- tbb.pszService = MS_WEATHER_ENABLED;
- tbb.pszTooltipUp = LPGEN("Auto Update Enabled");
- tbb.pszTooltipDn = LPGEN("Auto Update Disabled");
- tbb.hIconHandleUp = GetIconHandle("main");
- tbb.hIconHandleDn = GetIconHandle("disabled");
- tbb.dwFlags = (db_get_b(NULL, WEATHERPROTONAME, "AutoUpdate", 1) ? 0 : TTBBF_PUSHED) | TTBBF_ASPUSHBUTTON | TTBBF_VISIBLE;
- hTBButton = TopToolbar_AddButton(&tbb);
+ TTBButton ttb = { sizeof(ttb) };
+ ttb.name = LPGEN("Enable/disable auto update");
+ ttb.pszService = MS_WEATHER_ENABLED;
+ ttb.pszTooltipUp = LPGEN("Auto Update Enabled");
+ ttb.pszTooltipDn = LPGEN("Auto Update Disabled");
+ ttb.hIconHandleUp = GetIconHandle("main");
+ ttb.hIconHandleDn = GetIconHandle("disabled");
+ ttb.dwFlags = (db_get_b(NULL, WEATHERPROTONAME, "AutoUpdate", 1) ? 0 : TTBBF_PUSHED) | TTBBF_ASPUSHBUTTON | TTBBF_VISIBLE;
+ hTBButton = TopToolbar_AddButton(&ttb);
return 0;
}