Rename event method to be more indicative of what it does.

This commit is contained in:
Colin Guthrie 2009-06-28 16:00:35 +01:00
parent 61cae8cd40
commit ac052e1a30
6 changed files with 7 additions and 7 deletions

View File

@ -99,7 +99,7 @@ void SinkInputWidget::onMuteToggleButton() {
pa_operation_unref(o);
}
bool SinkInputWidget::onWidgetButtonEvent(GdkEventButton* event) {
bool SinkInputWidget::onContextTriggerEvent(GdkEventButton* event) {
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
contextMenu.popup(event->button, event->time);
return true;

View File

@ -42,7 +42,7 @@ public:
uint32_t sinkIndex();
virtual void executeVolumeUpdate();
virtual void onDeviceChangePopup();
virtual bool onWidgetButtonEvent(GdkEventButton*);
virtual bool onContextTriggerEvent(GdkEventButton*);
virtual void onMuteToggleButton();
virtual void onKill();

View File

@ -73,7 +73,7 @@ uint32_t SourceOutputWidget::sourceIndex() {
return mSourceIndex;
}
bool SourceOutputWidget::onWidgetButtonEvent(GdkEventButton* event) {
bool SourceOutputWidget::onContextTriggerEvent(GdkEventButton* event) {
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
contextMenu.popup(event->button, event->time);
return true;

View File

@ -41,7 +41,7 @@ public:
void setSourceIndex(uint32_t idx);
uint32_t sourceIndex();
virtual void onDeviceChangePopup();
virtual bool onWidgetButtonEvent(GdkEventButton*);
virtual bool onContextTriggerEvent(GdkEventButton*);
virtual void onKill();
private:

View File

@ -34,7 +34,7 @@ StreamWidget::StreamWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Gl
x->get_widget("directionLabel", directionLabel);
x->get_widget("deviceButton", deviceButton);
this->signal_button_press_event().connect(sigc::mem_fun(*this, &StreamWidget::onWidgetButtonEvent));
this->signal_button_press_event().connect(sigc::mem_fun(*this, &StreamWidget::onContextTriggerEvent));
muteToggleButton->signal_clicked().connect(sigc::mem_fun(*this, &StreamWidget::onMuteToggleButton));
deviceButton->signal_clicked().connect(sigc::mem_fun(*this, &StreamWidget::onDeviceChangePopup));
@ -43,7 +43,7 @@ StreamWidget::StreamWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Gl
}
bool StreamWidget::onWidgetButtonEvent(GdkEventButton*) {
bool StreamWidget::onContextTriggerEvent(GdkEventButton*) {
return false;
}

View File

@ -46,7 +46,7 @@ public:
virtual void onMuteToggleButton();
virtual void onDeviceChangePopup();
virtual bool onWidgetButtonEvent(GdkEventButton*);
virtual bool onContextTriggerEvent(GdkEventButton*);
sigc::connection timeoutConnection;