diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2009-06-28 15:57:59 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2009-10-15 13:03:16 +0100 |
commit | 375c2c2d6207763ff3ac8d7fb289b2b5ea1f8d54 (patch) | |
tree | e0ad7ddb2959da06a3de3501efed019d1c0e3a51 /src/sourcewidget.cc | |
parent | 400c69acf4b550d8ad2e7ad2f4e6232dfc19bb3d (diff) |
Add support for the device-manager module.
Currently this module only really allows for devices to be renamed, so we add a new
dialog that can be activated by right clicking on devices (i.e. sinks/sources).
This dialog allows you to enter a new name which will be set via the extension
provided by the device-manager module.
Future work will allow you to manage (i.e. rename, delete etc) offline devices too.
Diffstat (limited to 'src/sourcewidget.cc')
-rw-r--r-- | src/sourcewidget.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sourcewidget.cc b/src/sourcewidget.cc index 2779df4..29980cc 100644 --- a/src/sourcewidget.cc +++ b/src/sourcewidget.cc @@ -30,10 +30,11 @@ SourceWidget::SourceWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Gl DeviceWidget(cobject, x) { } -SourceWidget* SourceWidget::create() { +SourceWidget* SourceWidget::create(MainWindow* mainWindow) { SourceWidget* w; Glib::RefPtr<Gnome::Glade::Xml> x = Gnome::Glade::Xml::create(GLADE_FILE, "deviceWidget"); x->get_widget_derived("deviceWidget", w); + w->init(mainWindow, "source"); return w; } @@ -99,4 +100,4 @@ void SourceWidget::onPortChange() { pa_operation_unref(o); } } -}
\ No newline at end of file +} |