summaryrefslogtreecommitdiffstats
path: root/SidebarView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SidebarView.cpp')
-rw-r--r--SidebarView.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/SidebarView.cpp b/SidebarView.cpp
index 82d4713..04c6dd0 100644
--- a/SidebarView.cpp
+++ b/SidebarView.cpp
@@ -1,5 +1,4 @@
#include "SidebarView.h"
-#include "edit.h"
void SidebarView::buttonClicked(GtkButton *button, SidebarView *sidebar) {
@@ -66,15 +65,15 @@ GtkWidget* SidebarView::getWidget() {
}
void SidebarView::update() {
- if(getActiveRoom()) {
- gtk_entry_set_text(GTK_ENTRY(entryName), getActiveRoom()->getName().c_str());
+ if(editor->getActiveRoom()) {
+ gtk_entry_set_text(GTK_ENTRY(entryName), editor->getActiveRoom()->getName().c_str());
gtk_widget_set_sensitive(entryName, TRUE);
- gchar *string = g_strdup_printf("%.2f", getActiveRoom()->area());
+ gchar *string = g_strdup_printf("%.2f", editor->getActiveRoom()->area());
gtk_label_set_text(GTK_LABEL(labelArea), string);
g_free(string);
- string = g_strdup_printf("%.2f", getActiveRoom()->perimeter());
+ string = g_strdup_printf("%.2f", editor->getActiveRoom()->perimeter());
gtk_label_set_text(GTK_LABEL(labelPerimeter), string);
g_free(string);
}