summaryrefslogtreecommitdiff
path: root/src/sourceoutputwidget.cc
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2009-06-28 16:38:39 +0100
committerColin Guthrie <cguthrie@mandriva.org>2009-06-28 16:38:39 +0100
commitf1a23af603dfb250c10f8a4ec6a6f9acbd80d972 (patch)
tree09cf272b4870b6d33085d2d4b1d9b4ad3dd5aec3 /src/sourceoutputwidget.cc
parentac052e1a30d1aeb7c514f9dd4eb8e6fb50382185 (diff)
Restructure the class inheritance a bit.
This just shuffles around the streamwidget a bit. The RoleWidget child class is the exception, so try and gear things around SinkInput/SourceOutput widgets more to save repeating the same code too much.
Diffstat (limited to 'src/sourceoutputwidget.cc')
-rw-r--r--src/sourceoutputwidget.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/sourceoutputwidget.cc b/src/sourceoutputwidget.cc
index 19290f0..cb995b5 100644
--- a/src/sourceoutputwidget.cc
+++ b/src/sourceoutputwidget.cc
@@ -29,21 +29,13 @@
#include "i18n.h"
SourceOutputWidget::SourceOutputWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x) :
- StreamWidget(cobject, x),
- mpMainWindow(NULL) {
+ StreamWidget(cobject, x) {
gchar *txt;
directionLabel->set_label(txt = g_markup_printf_escaped("<i>%s</i>", _("from")));
g_free(txt);
terminate.set_label(_("Terminate Recording"));
- terminate.signal_activate().connect(sigc::mem_fun(*this, &SourceOutputWidget::onKill));
- contextMenu.append(terminate);
- contextMenu.show_all();
-}
-
-void SourceOutputWidget::init(MainWindow* mainWindow) {
- mpMainWindow = mainWindow;
}
SourceOutputWidget* SourceOutputWidget::create(MainWindow* mainWindow) {
@@ -73,15 +65,6 @@ uint32_t SourceOutputWidget::sourceIndex() {
return mSourceIndex;
}
-bool SourceOutputWidget::onContextTriggerEvent(GdkEventButton* event) {
- if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
- contextMenu.popup(event->button, event->time);
- return true;
- }
-
- return false;
-}
-
void SourceOutputWidget::onKill() {
pa_operation* o;
if (!(o = pa_context_kill_source_output(get_context(), index, NULL, NULL))) {