Package: audacious-plugins
Version: 1.4.0~beta4-1
Severity: wishlist
Tags: patch
--- Please enter the report below this line. ---
Hi,
I made this patch to enable playback toggle
using mouse middle click. Hope it might be
found useful.
Thanks,
Igor
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.22-3-k7
Debian Release: lenny/sid
700 unstable debian.mirrors.lug.ro
650 testing www.debian-multimedia.org
650 testing debian.mirrors.lug.ro
500 stable security.debian.org
--- Package information. ---
Depends (Version) | Installed
=================================-+-=============
libasound2 (>> 1.0.14) | 1.0.15-1
libatk1.0-0 (>= 1.20.0) | 1.20.0-1
libaudid3tag1 | 1.4.0~beta4-1
libc6 (>= 2.6.1-1) | 2.6.1-6
libcairo2 (>= 1.4.0) | 1.4.10-1
libcddb2 | 1.2.1-1
libcdio-cdda0 | 0.78.2+dfsg1-1
libcdio7 | 0.78.2+dfsg1-1
libflac8 | 1.2.1-1
libfontconfig1 (>= 2.4.0) | 2.4.91-1
libglib2.0-0 (>= 2.14.0) | 2.14.3-1
libgtk2.0-0 (>= 2.12.0) | 2.12.1-1
libmad0 (>= 0.15.1b) | 0.15.1b-2.1
libmms0 (>= 0.3-4) | 0.3-6
libmowgli1 | 0.5.0-3
libneon27-gnutls (>= 0.27.2) | 0.27.2-1
libogg0 (>= 1.1.3) | 1.1.3-2
libpango1.0-0 (>= 1.18.3) | 1.18.3-1
libsndfile1 | 1.0.17-4
libvorbis0a (>= 1.2.0) | 1.2.0.dfsg-2
libvorbisenc2 (>= 1.1.2) | 1.2.0.dfsg-2
libvorbisfile3 (>= 1.2.0) | 1.2.0.dfsg-2
libx11-6 | 2:1.0.3-7
libxcomposite1 (>= 1:0.3-1) | 1:0.3.2-1+b1
libxcursor1 (>> 1.1.2) | 1:1.1.9-1
libxdamage1 (>= 1:1.1) | 1:1.1.1-3
libxext6 | 1:1.0.3-2
libxfixes3 (>= 1:4.0.1) | 1:4.0.3-2
libxi6 | 2:1.1.3-1
libxinerama1 | 1:1.0.2-1
libxml2 (>= 2.6.29) | 2.6.30.dfsg-2
libxrandr2 (>= 2:1.2.0) | 2:1.2.2-1
libxrender1 | 1:0.9.4-1
audacious (>= 1.4~) | 1.4.0~beta4-1
audacious (<< 1.5~) | 1.4.0~beta4-1
diff -urp audacious-plugins-1.4.0~beta4-orig/src/statusicon/si_audacious.h audacious-plugins-1.4.0~beta4/src/statusicon/si_audacious.h
--- audacious-plugins-1.4.0~beta4-orig/src/statusicon/si_audacious.h 2007-11-13 23:41:28.000000000 +0200
+++ audacious-plugins-1.4.0~beta4/src/statusicon/si_audacious.h 2007-11-13 23:55:46.000000000 +0200
@@ -37,6 +37,7 @@ void si_audacious_volume_change ( gint )
void si_audacious_playback_skip ( gint );
void si_audacious_playback_ctrl ( gpointer );
void si_audacious_quit ( void );
+void si_audacious_toggle_playback ( void );
#endif /* !_I_SI_AUDACIOUS_H */
diff -urp audacious-plugins-1.4.0~beta4-orig/src/statusicon/si.c audacious-plugins-1.4.0~beta4/src/statusicon/si.c
--- audacious-plugins-1.4.0~beta4-orig/src/statusicon/si.c 2007-11-13 23:41:28.000000000 +0200
+++ audacious-plugins-1.4.0~beta4/src/statusicon/si.c 2007-11-13 23:55:21.000000000 +0200
@@ -180,3 +180,12 @@ si_audacious_playback_ctrl ( gpointer ct
break;
}
}
+
+void
+si_audacious_toggle_playback ( void )
+{
+ if ( audacious_drct_get_playing() )
+ audacious_drct_pause();
+ else
+ audacious_drct_play();
+}
diff -urp audacious-plugins-1.4.0~beta4-orig/src/statusicon/si_ui.c audacious-plugins-1.4.0~beta4/src/statusicon/si_ui.c
--- audacious-plugins-1.4.0~beta4-orig/src/statusicon/si_ui.c 2007-11-13 23:41:28.000000000 +0200
+++ audacious-plugins-1.4.0~beta4/src/statusicon/si_ui.c 2007-11-13 23:55:12.000000000 +0200
@@ -78,6 +78,12 @@ si_ui_statusicon_cb_btpress ( GtkWidget
break;
}
+ case 2:
+ {
+ si_audacious_toggle_playback();
+ break;
+ }
+
case 3:
{
switch ( si_cfg.rclick_menu )