Remove the kill menu item now we have a dedicated button
This commit is contained in:
parent
ee855937cc
commit
255defb371
|
@ -31,7 +31,6 @@
|
|||
SinkInputWidget::SinkInputWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x) :
|
||||
StreamWidget(cobject, x),
|
||||
titleMenuItem(_("_Move Stream..."), true),
|
||||
killMenuItem(_("_Terminate Stream"), true),
|
||||
mpMainWindow(NULL) {
|
||||
|
||||
directionLabel->set_label(_("<i>Playing on </i> "));
|
||||
|
@ -40,9 +39,6 @@ SinkInputWidget::SinkInputWidget(BaseObjectType* cobject, const Glib::RefPtr<Gno
|
|||
|
||||
menu.append(titleMenuItem);
|
||||
titleMenuItem.set_submenu(submenu);
|
||||
|
||||
menu.append(killMenuItem);
|
||||
killMenuItem.signal_activate().connect(sigc::mem_fun(*this, &SinkInputWidget::onKill));
|
||||
}
|
||||
|
||||
void SinkInputWidget::init(MainWindow* mainWindow) {
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
virtual void prepareMenu();
|
||||
|
||||
Gtk::Menu submenu;
|
||||
Gtk::MenuItem titleMenuItem, killMenuItem;
|
||||
Gtk::MenuItem titleMenuItem;
|
||||
|
||||
struct SinkMenuItem {
|
||||
SinkMenuItem(SinkInputWidget *w, const char *label, uint32_t i, bool active) :
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
SourceOutputWidget::SourceOutputWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x) :
|
||||
StreamWidget(cobject, x),
|
||||
titleMenuItem(_("_Move Stream..."), true),
|
||||
killMenuItem(_("_Terminate Stream"), true),
|
||||
mpMainWindow(NULL) {
|
||||
|
||||
directionLabel->set_label(_("<i>Recording from </i> "));
|
||||
|
@ -40,9 +39,6 @@ SourceOutputWidget::SourceOutputWidget(BaseObjectType* cobject, const Glib::RefP
|
|||
|
||||
menu.append(titleMenuItem);
|
||||
titleMenuItem.set_submenu(submenu);
|
||||
|
||||
menu.append(killMenuItem);
|
||||
killMenuItem.signal_activate().connect(sigc::mem_fun(*this, &SourceOutputWidget::onKill));
|
||||
}
|
||||
|
||||
void SourceOutputWidget::init(MainWindow* mainWindow) {
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
virtual void onKill();
|
||||
|
||||
Gtk::Menu submenu;
|
||||
Gtk::MenuItem titleMenuItem, killMenuItem;
|
||||
Gtk::MenuItem titleMenuItem;
|
||||
|
||||
struct SourceMenuItem {
|
||||
SourceMenuItem(SourceOutputWidget *w, const char *label, uint32_t i, bool active) :
|
||||
|
|
Loading…
Reference in New Issue