This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-zoomedit/SidebarToolbox.cpp
2007-11-30 15:04:01 +00:00

31 lines
487 B
C++

#include "SidebarToolbox.h"
SidebarToolbox::SidebarToolbox()
{
widget = gtk_vbox_new(FALSE, 0);
g_object_ref_sink(G_OBJECT(widget));
}
SidebarToolbox::~SidebarToolbox()
{
g_object_unref(G_OBJECT(widget));
}
bool SidebarToolbox::addTool(Tool *tool) {
bool ret = tools.insert(tool).second;
update();
return ret;
}
bool SidebarToolbox::removeTool(Tool *tool) {
bool ret = (tools.erase(tool) > 0);
update();
return ret;
}
void SidebarToolbox::update() {
}