Skip to content

Commit

Permalink
removing callbacks is ok
Browse files Browse the repository at this point in the history
  • Loading branch information
oktonion committed Sep 8, 2017
1 parent 5bf52f7 commit 4a3bf70
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,14 @@ namespace PhWidgets
template<size_t count>
inline void removeLink(PtCallback_t const (&callbacks)[count])
{
PtRemoveCallback(_rwidget->widget(), _arg, callbacks, count);
PtRemoveCallbacks(_rwidget->widget(), _arg, callbacks, count);
}

inline void removeLink(PtCallback_t callback)
{
PtCallback_t callbacks[] = { callback };

addLink(callbacks);
removeLink(callbacks);
}

inline void removeLink(int(*callback)( PtWidget_t *, void *, PtCallbackInfo_t * ), void *data = nullptr)
Expand All @@ -629,14 +629,14 @@ namespace PhWidgets
template<size_t count>
inline void removeLink(PtRawCallback_t const (&callbacks)[count])
{
PtRemoveEventHandler(_rwidget->widget(), callbacks, count);
PtRemoveEventHandlers(_rwidget->widget(), callbacks, count);
}

inline void removeLink(PtRawCallback_t callback)
{
PtRawCallback_t callbacks[] = { callback };

addLink(callbacks);
removeLink(callbacks);
}

inline void removeLink(int(*callback)( PtWidget_t *, void *, PtCallbackInfo_t * ), Events::eEvents event, void *data = nullptr)
Expand Down

0 comments on commit 4a3bf70

Please sign in to comment.