Rename a variable to make it more generic
This commit is contained in:
parent
159609135f
commit
61cae8cd40
|
@ -38,8 +38,8 @@ SinkInputWidget::SinkInputWidget(BaseObjectType* cobject, const Glib::RefPtr<Gno
|
||||||
|
|
||||||
terminate.set_label(_("Terminate Playback"));
|
terminate.set_label(_("Terminate Playback"));
|
||||||
terminate.signal_activate().connect(sigc::mem_fun(*this, &SinkInputWidget::onKill));
|
terminate.signal_activate().connect(sigc::mem_fun(*this, &SinkInputWidget::onKill));
|
||||||
terminateMenu.append(terminate);
|
contextMenu.append(terminate);
|
||||||
terminateMenu.show_all();
|
contextMenu.show_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SinkInputWidget::init(MainWindow* mainWindow) {
|
void SinkInputWidget::init(MainWindow* mainWindow) {
|
||||||
|
@ -101,7 +101,7 @@ void SinkInputWidget::onMuteToggleButton() {
|
||||||
|
|
||||||
bool SinkInputWidget::onWidgetButtonEvent(GdkEventButton* event) {
|
bool SinkInputWidget::onWidgetButtonEvent(GdkEventButton* event) {
|
||||||
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
|
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
|
||||||
terminateMenu.popup(event->button, event->time);
|
contextMenu.popup(event->button, event->time);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ private:
|
||||||
MainWindow *mpMainWindow;
|
MainWindow *mpMainWindow;
|
||||||
uint32_t mSinkIndex;
|
uint32_t mSinkIndex;
|
||||||
|
|
||||||
Gtk::Menu terminateMenu;
|
Gtk::Menu contextMenu;
|
||||||
Gtk::MenuItem terminate;
|
Gtk::MenuItem terminate;
|
||||||
|
|
||||||
void clearMenu();
|
void clearMenu();
|
||||||
|
|
|
@ -38,8 +38,8 @@ SourceOutputWidget::SourceOutputWidget(BaseObjectType* cobject, const Glib::RefP
|
||||||
|
|
||||||
terminate.set_label(_("Terminate Recording"));
|
terminate.set_label(_("Terminate Recording"));
|
||||||
terminate.signal_activate().connect(sigc::mem_fun(*this, &SourceOutputWidget::onKill));
|
terminate.signal_activate().connect(sigc::mem_fun(*this, &SourceOutputWidget::onKill));
|
||||||
terminateMenu.append(terminate);
|
contextMenu.append(terminate);
|
||||||
terminateMenu.show_all();
|
contextMenu.show_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SourceOutputWidget::init(MainWindow* mainWindow) {
|
void SourceOutputWidget::init(MainWindow* mainWindow) {
|
||||||
|
@ -75,7 +75,7 @@ uint32_t SourceOutputWidget::sourceIndex() {
|
||||||
|
|
||||||
bool SourceOutputWidget::onWidgetButtonEvent(GdkEventButton* event) {
|
bool SourceOutputWidget::onWidgetButtonEvent(GdkEventButton* event) {
|
||||||
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
|
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
|
||||||
terminateMenu.popup(event->button, event->time);
|
contextMenu.popup(event->button, event->time);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ private:
|
||||||
MainWindow *mpMainWindow;
|
MainWindow *mpMainWindow;
|
||||||
uint32_t mSourceIndex;
|
uint32_t mSourceIndex;
|
||||||
|
|
||||||
Gtk::Menu terminateMenu;
|
Gtk::Menu contextMenu;
|
||||||
Gtk::MenuItem terminate;
|
Gtk::MenuItem terminate;
|
||||||
|
|
||||||
void clearMenu();
|
void clearMenu();
|
||||||
|
|
Loading…
Reference in New Issue