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/sinkinputwidget.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/sinkinputwidget.h') diff --git a/src/sinkinputwidget.h b/src/sinkinputwidget.h index bf65108..503c67c 100644 --- a/src/sinkinputwidget.h +++ b/src/sinkinputwidget.h @@ -31,7 +31,6 @@ class SinkInputWidget : public StreamWidget { public: SinkInputWidget(BaseObjectType* cobject, const Glib::RefPtr& x); static SinkInputWidget* create(MainWindow* mainWindow); - virtual ~SinkInputWidget(); void init(MainWindow* mainWindow); @@ -44,31 +43,6 @@ public: virtual void onDeviceChange(); virtual void onMuteToggleButton(); virtual void onKill(); - virtual void prepareMenu(); - - Gtk::Menu submenu; - Gtk::MenuItem titleMenuItem; - - struct SinkMenuItem { - SinkMenuItem(SinkInputWidget *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, &SinkMenuItem::onToggle)); - } - - SinkInputWidget *widget; - Gtk::CheckMenuItem menuItem; - uint32_t index; - void onToggle(); - }; - - std::map sinkMenuItems; - - void clearMenu(); - void buildMenu(); private: MainWindow *mpMainWindow; -- cgit