From f545bc769a16d1ff7b302733f793cbcbd397cdca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 May 2018 20:13:26 +0300 Subject: new helper for MS_TTB_ADDBUTTON --- protocols/JabberG/src/jabber_menu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/JabberG') diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp index 3b8f9c0fac..308c215d20 100644 --- a/protocols/JabberG/src/jabber_menu.cpp +++ b/protocols/JabberG/src/jabber_menu.cpp @@ -798,19 +798,19 @@ int g_OnToolbarInit(WPARAM, LPARAM) ttb.pszService = "JABBER/*/Groupchat"; ttb.pszTooltipUp = ttb.name = LPGEN("Join conference"); ttb.hIconHandleUp = g_GetIconHandle(IDI_GROUP); - TopToolbar_AddButton(&ttb); + g_plugin.addTTB(&ttb); CreateServiceFunction("JABBER/*/Bookmarks", g_ToolbarHandleBookmarks); ttb.pszService = "JABBER/*/Bookmarks"; ttb.pszTooltipUp = ttb.name = LPGEN("Open bookmarks"); ttb.hIconHandleUp = g_GetIconHandle(IDI_BOOKMARKS); - TopToolbar_AddButton(&ttb); + g_plugin.addTTB(&ttb); CreateServiceFunction("JABBER/*/ServiceDiscovery", g_ToolbarHandleServiceDiscovery); ttb.pszService = "JABBER/*/ServiceDiscovery"; ttb.pszTooltipUp = ttb.name = LPGEN("Service discovery"); ttb.hIconHandleUp = g_GetIconHandle(IDI_SERVICE_DISCOVERY); - TopToolbar_AddButton(&ttb); + g_plugin.addTTB(&ttb); return 0; } -- cgit v1.2.3