summaryrefslogtreecommitdiffstats
path: root/SidebarAdd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SidebarAdd.cpp')
-rw-r--r--SidebarAdd.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/SidebarAdd.cpp b/SidebarAdd.cpp
index 57de3ee..80ec74f 100644
--- a/SidebarAdd.cpp
+++ b/SidebarAdd.cpp
@@ -1,10 +1,6 @@
#include "SidebarAdd.h"
-void SidebarAdd::buttonClicked(GtkButton *button, SidebarAdd *sidebar) {
- sidebar->editor->finishRoom();
-}
-
SidebarAdd::SidebarAdd(EditManager *editor) {
this->editor = editor;
@@ -16,10 +12,6 @@ SidebarAdd::SidebarAdd(EditManager *editor) {
gtk_misc_set_alignment(GTK_MISC(labelRoomInfo), 0.0, 0.5);
gtk_box_pack_start(GTK_BOX(sidebar), labelRoomInfo, FALSE, FALSE, 5);
- buttonAdd = gtk_button_new_with_label("Add room");
- g_signal_connect(G_OBJECT(buttonAdd), "clicked", G_CALLBACK(buttonClicked), this);
- gtk_box_pack_end(GTK_BOX(sidebar), buttonAdd, FALSE, FALSE, 0);
-
gtk_widget_show_all(sidebar);
}
@@ -30,13 +22,3 @@ SidebarAdd::~SidebarAdd() {
GtkWidget* SidebarAdd::getWidget() {
return sidebar;
}
-
-void SidebarAdd::update() {
- if(!editor->getActiveRoom())
- return;
-
- if(editor->getActiveRoom()->size() > 2 && editor->polygonOk(*editor->getActiveRoom()))
- gtk_widget_set_sensitive(buttonAdd, TRUE);
- else
- gtk_widget_set_sensitive(buttonAdd, FALSE);
-}