summaryrefslogtreecommitdiffstats
path: root/SidebarToolbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SidebarToolbox.cpp')
-rw-r--r--SidebarToolbox.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/SidebarToolbox.cpp b/SidebarToolbox.cpp
index a26417b..b264835 100644
--- a/SidebarToolbox.cpp
+++ b/SidebarToolbox.cpp
@@ -1,4 +1,5 @@
#include "SidebarToolbox.h"
+#include "Window.h"
void SidebarToolbox::buttonToggled(GtkWidget *button, SidebarToolbox *toolbox) {
@@ -6,6 +7,8 @@ void SidebarToolbox::buttonToggled(GtkWidget *button, SidebarToolbox *toolbox) {
return;
toolbox->activateTool(toolbox->buttonsRev[button]);
+
+ toolbox->window->update();
}
void SidebarToolbox::sizeAllocate(GtkWidget *widget, GtkAllocation *allocation, SidebarToolbox *toolbox) {
@@ -56,7 +59,9 @@ void SidebarToolbox::activateTool(Tool *tool) {
tool->activate();
}
-SidebarToolbox::SidebarToolbox(EditManager *editManager) : toolSelector(editManager) {
+SidebarToolbox::SidebarToolbox(Window *window) : toolSelector(&window->getEditManager()) {
+ this->window = window;
+
widget = gtk_table_new(1, 1, TRUE);
g_object_ref_sink(G_OBJECT(widget));