diff options
author | neoraider <devnull@localhost> | 2007-10-18 21:18:01 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-10-18 21:18:01 +0200 |
commit | 2bc9bb15dcc9691f6946eaa7a03370814bad0b8e (patch) | |
tree | a0b45181788dd17bd580374fd4a3fdc04ae8bd17 /SidebarView.cpp | |
parent | b660b965bcb679e53cc89e7b8903190d2d162ff6 (diff) | |
download | zoomedit-2bc9bb15dcc9691f6946eaa7a03370814bad0b8e.tar zoomedit-2bc9bb15dcc9691f6946eaa7a03370814bad0b8e.zip |
zoomedit: edit.c in den EditManager integriert
Diffstat (limited to 'SidebarView.cpp')
-rw-r--r-- | SidebarView.cpp | 9 |
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); } |