diff --git a/src/widgets/statebar.cpp b/src/widgets/statebar.cpp index 6892997e9..3648236f6 100644 --- a/src/widgets/statebar.cpp +++ b/src/widgets/statebar.cpp @@ -24,7 +24,6 @@ #include #include -#include "Vaca/Bind.h" #include "jinete/jinete.h" #include "app.h" @@ -127,7 +126,7 @@ StatusBar::StatusBar() m_commands_box = box1; - App::instance()->CurrentToolChange.connect(Vaca::Bind(&StatusBar::onCurrentToolChange, this)); + App::instance()->CurrentToolChange.connect(&StatusBar::onCurrentToolChange, this); } StatusBar::~StatusBar() diff --git a/src/widgets/toolbar.cpp b/src/widgets/toolbar.cpp index 478a73678..9d500020f 100644 --- a/src/widgets/toolbar.cpp +++ b/src/widgets/toolbar.cpp @@ -402,7 +402,7 @@ void ToolBar::openPopupWindow(int group_index, ToolGroup* tool_group) // In case this tool contains more than just one tool, show the popup window m_open_on_hot = true; m_popup_window = new PopupWindow(NULL, false); - m_popup_window->Close.connect(Vaca::Bind(&ToolBar::onClosePopup, this)); + m_popup_window->Close.connect(Vaca::Bind(&ToolBar::onClosePopup, this)); ToolStrip* toolstrip = new ToolStrip(tool_group, this); jwidget_add_child(m_popup_window, toolstrip);