From d82c597917d8ef5866c7a83d0c101f423a2ac05d Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 5 Dec 2007 22:02:03 +0000 Subject: zoomedit: Fixed some bugs. --- SidebarAdd.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'SidebarAdd.cpp') 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); -} -- cgit v1.2.3