summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Alex Dedul <rotmer@gmail.com>2009-11-26 07:29:47 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-28 19:12:13 +0100
commit7ed73c5081dcd80e09e908f483c1a983e26db9d7 (patch)
tree97151279445eb602fb3776bca14d5b6fc961ad1b /main.c
parentdab3e492061b5923fecebae63e6531fd95b4cd01 (diff)
Added trayicon handler for middle mouse click to pause/unpause track.
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 986d9cd7..b7bce36c 100644
--- a/main.c
+++ b/main.c
@@ -546,6 +546,9 @@ on_trayicon_button_press_event (GtkWidget *widget,
gtk_window_present (GTK_WINDOW (mainwin));
}
}
+ else if (event->button == 2) {
+ messagepump_push (M_PAUSESONG, 0, 0, 0);
+ }
return FALSE;
}