Rename a variable to make it more generic

This commit is contained in:
Colin Guthrie 2009-06-27 22:37:46 +01:00
parent 159609135f
commit 61cae8cd40
4 changed files with 8 additions and 8 deletions

View File

@ -38,8 +38,8 @@ SinkInputWidget::SinkInputWidget(BaseObjectType* cobject, const Glib::RefPtr<Gno
terminate.set_label(_("Terminate Playback"));
terminate.signal_activate().connect(sigc::mem_fun(*this, &SinkInputWidget::onKill));
terminateMenu.append(terminate);
terminateMenu.show_all();
contextMenu.append(terminate);
contextMenu.show_all();
}
void SinkInputWidget::init(MainWindow* mainWindow) {
@ -101,7 +101,7 @@ void SinkInputWidget::onMuteToggleButton() {
bool SinkInputWidget::onWidgetButtonEvent(GdkEventButton* event) {
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
terminateMenu.popup(event->button, event->time);
contextMenu.popup(event->button, event->time);
return true;
}

View File

@ -50,7 +50,7 @@ private:
MainWindow *mpMainWindow;
uint32_t mSinkIndex;
Gtk::Menu terminateMenu;
Gtk::Menu contextMenu;
Gtk::MenuItem terminate;
void clearMenu();

View File

@ -38,8 +38,8 @@ SourceOutputWidget::SourceOutputWidget(BaseObjectType* cobject, const Glib::RefP
terminate.set_label(_("Terminate Recording"));
terminate.signal_activate().connect(sigc::mem_fun(*this, &SourceOutputWidget::onKill));
terminateMenu.append(terminate);
terminateMenu.show_all();
contextMenu.append(terminate);
contextMenu.show_all();
}
void SourceOutputWidget::init(MainWindow* mainWindow) {
@ -75,7 +75,7 @@ uint32_t SourceOutputWidget::sourceIndex() {
bool SourceOutputWidget::onWidgetButtonEvent(GdkEventButton* event) {
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
terminateMenu.popup(event->button, event->time);
contextMenu.popup(event->button, event->time);
return true;
}

View File

@ -48,7 +48,7 @@ private:
MainWindow *mpMainWindow;
uint32_t mSourceIndex;
Gtk::Menu terminateMenu;
Gtk::Menu contextMenu;
Gtk::MenuItem terminate;
void clearMenu();