summaryrefslogtreecommitdiffstats
path: root/src/ClientWindow.cc
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-16 00:02:32 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-16 00:02:32 +0000
commit0a84f669d3d4c72c498b01b999dd89af7f917480 (patch)
tree77960fce506b9297682ef79be9274467f595bf8a /src/ClientWindow.cc
parentae4653849a9a5990caf84d5ecd1466435760dd60 (diff)
update to new API
show source and source_output latencies ad kill buttons to client/sink_input/source_output (incomplete) add vumeter buttons to sink/source git-svn-id: file:///home/lennart/svn/public/paman/trunk@33 cdefa82f-4ce1-0310-97f5-ab6066f37c3c
Diffstat (limited to 'src/ClientWindow.cc')
-rw-r--r--src/ClientWindow.cc8
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;
}