From 4bd94fa2b86fb8464829c806ae517db113924bd2 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 16 Mar 2009 23:21:40 +0000 Subject: Wire up all the new UI code. This makes the default button work on sinks/sources, allows the drop down to actually change the sink/source and removes the old menu code. Some names and such are fixed in the glade file too. --- src/sourceoutputwidget.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/sourceoutputwidget.h') diff --git a/src/sourceoutputwidget.h b/src/sourceoutputwidget.h index 46df6e1..0d43cc9 100644 --- a/src/sourceoutputwidget.h +++ b/src/sourceoutputwidget.h @@ -31,7 +31,6 @@ class SourceOutputWidget : public StreamWidget { public: SourceOutputWidget(BaseObjectType* cobject, const Glib::RefPtr& x); static SourceOutputWidget* create(MainWindow* mainWindow); - virtual ~SourceOutputWidget(); void init(MainWindow* mainWindow); @@ -43,31 +42,6 @@ public: virtual void onDeviceChange(); virtual void onKill(); - Gtk::Menu submenu; - Gtk::MenuItem titleMenuItem; - - struct SourceMenuItem { - SourceMenuItem(SourceOutputWidget *w, const char *label, uint32_t i, bool active) : - widget(w), - menuItem(label), - index(i) { - menuItem.set_active(active); - menuItem.set_draw_as_radio(true); - menuItem.signal_toggled().connect(sigc::mem_fun(*this, &SourceMenuItem::onToggle)); - } - - SourceOutputWidget *widget; - Gtk::CheckMenuItem menuItem; - uint32_t index; - void onToggle(); - }; - - std::map sourceMenuItems; - - void clearMenu(); - void buildMenu(); - virtual void prepareMenu(); - private: MainWindow *mpMainWindow; uint32_t mSourceIndex; -- cgit