Rename event method to be more indicative of what it does.
This commit is contained in:
parent
61cae8cd40
commit
ac052e1a30
|
@ -99,7 +99,7 @@ void SinkInputWidget::onMuteToggleButton() {
|
||||||
pa_operation_unref(o);
|
pa_operation_unref(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SinkInputWidget::onWidgetButtonEvent(GdkEventButton* event) {
|
bool SinkInputWidget::onContextTriggerEvent(GdkEventButton* event) {
|
||||||
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
|
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
|
||||||
contextMenu.popup(event->button, event->time);
|
contextMenu.popup(event->button, event->time);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -42,7 +42,7 @@ public:
|
||||||
uint32_t sinkIndex();
|
uint32_t sinkIndex();
|
||||||
virtual void executeVolumeUpdate();
|
virtual void executeVolumeUpdate();
|
||||||
virtual void onDeviceChangePopup();
|
virtual void onDeviceChangePopup();
|
||||||
virtual bool onWidgetButtonEvent(GdkEventButton*);
|
virtual bool onContextTriggerEvent(GdkEventButton*);
|
||||||
virtual void onMuteToggleButton();
|
virtual void onMuteToggleButton();
|
||||||
virtual void onKill();
|
virtual void onKill();
|
||||||
|
|
||||||
|
|
|
@ -73,7 +73,7 @@ uint32_t SourceOutputWidget::sourceIndex() {
|
||||||
return mSourceIndex;
|
return mSourceIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SourceOutputWidget::onWidgetButtonEvent(GdkEventButton* event) {
|
bool SourceOutputWidget::onContextTriggerEvent(GdkEventButton* event) {
|
||||||
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
|
if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
|
||||||
contextMenu.popup(event->button, event->time);
|
contextMenu.popup(event->button, event->time);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -41,7 +41,7 @@ public:
|
||||||
void setSourceIndex(uint32_t idx);
|
void setSourceIndex(uint32_t idx);
|
||||||
uint32_t sourceIndex();
|
uint32_t sourceIndex();
|
||||||
virtual void onDeviceChangePopup();
|
virtual void onDeviceChangePopup();
|
||||||
virtual bool onWidgetButtonEvent(GdkEventButton*);
|
virtual bool onContextTriggerEvent(GdkEventButton*);
|
||||||
virtual void onKill();
|
virtual void onKill();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -34,7 +34,7 @@ StreamWidget::StreamWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Gl
|
||||||
x->get_widget("directionLabel", directionLabel);
|
x->get_widget("directionLabel", directionLabel);
|
||||||
x->get_widget("deviceButton", deviceButton);
|
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));
|
muteToggleButton->signal_clicked().connect(sigc::mem_fun(*this, &StreamWidget::onMuteToggleButton));
|
||||||
deviceButton->signal_clicked().connect(sigc::mem_fun(*this, &StreamWidget::onDeviceChangePopup));
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ public:
|
||||||
|
|
||||||
virtual void onMuteToggleButton();
|
virtual void onMuteToggleButton();
|
||||||
virtual void onDeviceChangePopup();
|
virtual void onDeviceChangePopup();
|
||||||
virtual bool onWidgetButtonEvent(GdkEventButton*);
|
virtual bool onContextTriggerEvent(GdkEventButton*);
|
||||||
|
|
||||||
sigc::connection timeoutConnection;
|
sigc::connection timeoutConnection;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue