summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-08-24 14:43:36 +0000
committerLennart Poettering <lennart@poettering.net>2007-08-24 14:43:36 +0000
commit4de2617bcd4e6cbc53e77fe8ba0415f4841032a6 (patch)
treeae0296c05478bced5caf64f376ecf3a0a414c2a6
parent1ce58dcf98561b571ba797f791265e6876728080 (diff)
Don't pass the button index to popup() for the GtkMenu to avoid strange GTK behaviour in newer versions. Identified by coling
git-svn-id: file:///home/lennart/svn/public/pavucontrol/trunk@58 c17c95f2-f111-0410-90bf-f30a9569010c
-rw-r--r--src/pavucontrol.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pavucontrol.cc b/src/pavucontrol.cc
index fdeda1c..754cb40 100644
--- a/src/pavucontrol.cc
+++ b/src/pavucontrol.cc
@@ -478,7 +478,7 @@ bool SinkInputWidget::on_button_press_event(GdkEventButton* event) {
if (event->type == GDK_BUTTON_PRESS && event->button == 3) {
clearMenu();
buildMenu();
- menu.popup(event->button, event->time);
+ menu.popup(0, event->time);
return TRUE;
}