summaryrefslogtreecommitdiffstats
path: root/SidebarManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SidebarManager.cpp')
-rw-r--r--SidebarManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/SidebarManager.cpp b/SidebarManager.cpp
index 393d748..42731a8 100644
--- a/SidebarManager.cpp
+++ b/SidebarManager.cpp
@@ -3,7 +3,7 @@
SidebarManager::SidebarManager(Window *window)
- : sidebarToolbox(window), toolAddPolygon(&window->getEditManager())
+ : sidebarToolbox(window), toolAddRect(&window->getEditManager()), toolAddPolygon(&window->getEditManager())
{
this->window = window;
activeSidebar = NULL;
@@ -27,6 +27,7 @@ SidebarManager::SidebarManager(Window *window)
viewport = gtk_viewport_new(NULL, NULL);
gtk_container_add(GTK_CONTAINER(scrolledWindow), viewport);
+ sidebarToolbox.addTool(&toolAddRect);
sidebarToolbox.addTool(&toolAddPolygon);
gtk_widget_show(sidebar);