diff options
Diffstat (limited to 'src/ClientWindow.cc')
-rw-r--r-- | src/ClientWindow.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ClientWindow.cc b/src/ClientWindow.cc index b0bf5d8..6cb814e 100644 --- a/src/ClientWindow.cc +++ b/src/ClientWindow.cc @@ -12,7 +12,8 @@ ClientWindow::ClientWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Gl indexLabel(NULL), ownerModuleLabel(NULL), closeButton(NULL), - toOwnerModuleButton(NULL) { + toOwnerModuleButton(NULL), + killButton(NULL) { refGlade->get_widget("nameLabel", nameLabel); refGlade->get_widget("protocolLabel", protocolLabel); @@ -20,6 +21,7 @@ ClientWindow::ClientWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Gl refGlade->get_widget("ownerModuleLabel", ownerModuleLabel); refGlade->get_widget("closeButton", closeButton); refGlade->get_widget("toOwnerModuleButton", toOwnerModuleButton); + refGlade->get_widget("killButton", killButton); closeButton->signal_clicked().connect(sigc::mem_fun(*this, &ClientWindow::onCloseButton)); toOwnerModuleButton->signal_clicked().connect(sigc::mem_fun(*this, &ClientWindow::onToOwnerModuleButton)); @@ -33,7 +35,7 @@ ClientWindow* ClientWindow::create() { } void ClientWindow::updateInfo(const ClientInfo &i) { - char t[20], ss[PA_SAMPLE_SNPRINT_MAX_LENGTH]; + char t[20]; nameLabel->set_text(i.name); protocolLabel->set_text(i.protocol_name); @@ -58,7 +60,7 @@ void ClientWindow::onToOwnerModuleButton() { serverInfoManager->showModuleWindow(owner_module); } -bool ClientWindow::on_delete_event(GdkEventAny* e) { +bool ClientWindow::on_delete_event(GdkEventAny*) { hide(); return false; } |