diff options
author | neoraider <devnull@localhost> | 2007-12-05 23:02:03 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-12-05 23:02:03 +0100 |
commit | d82c597917d8ef5866c7a83d0c101f423a2ac05d (patch) | |
tree | 7df4f557e2d020de09a0d0b349960a7c81fe5853 /SidebarAdd.cpp | |
parent | beb34f184adcea0f8a902f49109f9ffa7951e6ba (diff) | |
download | zoomedit-d82c597917d8ef5866c7a83d0c101f423a2ac05d.tar zoomedit-d82c597917d8ef5866c7a83d0c101f423a2ac05d.zip |
zoomedit: Fixed some bugs.
Diffstat (limited to 'SidebarAdd.cpp')
-rw-r--r-- | SidebarAdd.cpp | 18 |
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); -} |