# HG changeset patch # User James D. Callahan III # Date 1363967319 18000 # Node ID e9670d6c6bf1156c5f6631a4ec719c246d4d276e # Parent fbd94a0be29ca6848c7e230afa129add146a437c Added keybinding for comment system, disabling the MiniMap/LDB icon for now (or indefinitely). diff -r fbd94a0be29c -r e9670d6c6bf1 Bindings.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bindings.xml Fri Mar 22 10:48:39 2013 -0500 @@ -0,0 +1,5 @@ + + + LibStub("AceAddon-3.0"):GetAddon("WoWDBProfiler").ShowPossibleSubjects() + + diff -r fbd94a0be29c -r e9670d6c6bf1 Comments.lua --- a/Comments.lua Thu Mar 21 15:23:41 2013 -0500 +++ b/Comments.lua Fri Mar 22 10:48:39 2013 -0500 @@ -287,11 +287,14 @@ end if display:GetLineCount() == 3 then + display = display:Release() WDP:Print("There are no possible comment subjects.") return end display:Show() end + + WDP.ShowPossibleSubjects = ShowPossibleSubjects -- For Keybinding. end -- do-block -- METHODS ------------------------------------------------------------ @@ -531,19 +534,21 @@ end) panel.submitButton = submit - local data_obj = LibStub("LibDataBroker-1.1"):NewDataObject(ADDON_NAME, { - type = "data source", - label = ADDON_NAME, - text = " ", - icon = [[Interface\CHATFRAME\UI-ChatIcon-Chat-Up]], - OnClick = function(self, button, down) - ShowPossibleSubjects(self) - end, - OnTooltipShow = function(self) - self:AddLine(_G.CLICK_TO_ENTER_COMMENT) - end, - }) +-- local data_obj = LibStub("LibDataBroker-1.1"):NewDataObject(ADDON_NAME, { +-- type = "data source", +-- label = ADDON_NAME, +-- text = " ", +-- icon = [[Interface\CHATFRAME\UI-ChatIcon-Chat-Up]], +-- OnClick = function(self, button, down) +-- ShowPossibleSubjects(self) +-- end, +-- OnTooltipShow = function(self) +-- self:AddLine(_G.CLICK_TO_ENTER_COMMENT) +-- end, +-- }) +-- +-- private.data_obj = data_obj +-- LibStub("LibDBIcon-1.0"):Register(ADDON_NAME, data_obj, private.db.global.config.minimap_icon) - private.data_obj = data_obj - LibStub("LibDBIcon-1.0"):Register(ADDON_NAME, data_obj, private.db.global.config.minimap_icon) + _G["BINDING_HEADER_WOWDB_PROFILER"] = "WoWDB Profiler" end