From 2bc9bb15dcc9691f6946eaa7a03370814bad0b8e Mon Sep 17 00:00:00 2001 From: neoraider Date: Thu, 18 Oct 2007 19:18:01 +0000 Subject: zoomedit: edit.c in den EditManager integriert --- SidebarView.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'SidebarView.cpp') 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); } -- cgit v1.2.3