Mercurial > audlegacy
changeset 2406:6f4094cc3859 trunk
[svn] - allow for hooks to be automatically registered if they are needed
author | nenolod |
---|---|
date | Thu, 25 Jan 2007 21:19:44 -0800 |
parents | 15fc0d852633 |
children | 1dc1d36d0347 |
files | ChangeLog src/audacious/hook.c |
diffstat | 2 files changed, 21 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Jan 25 20:50:15 2007 -0800 +++ b/ChangeLog Thu Jan 25 21:19:44 2007 -0800 @@ -1,3 +1,17 @@ +2007-01-26 04:50:15 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> + revision [3820] + enhancement to popup information settings + - progress bar in filepopup can be toggled + - delay for filepopup is now configurable + + trunk/src/audacious/glade/prefswin.glade | 252 ++++++++++++++++++++++++++++++- + trunk/src/audacious/main.c | 2 + trunk/src/audacious/main.h | 1 + trunk/src/audacious/ui_fileinfopopup.c | 3 + trunk/src/audacious/ui_preferences.c | 12 + + 5 files changed, 266 insertions(+), 4 deletions(-) + + 2007-01-26 04:23:16 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [3818] - hooking implementation.
--- a/src/audacious/hook.c Thu Jan 25 20:50:15 2007 -0800 +++ b/src/audacious/hook.c Thu Jan 25 21:19:44 2007 -0800 @@ -63,7 +63,13 @@ hook = hook_find(name); if (hook == NULL) - return; + { + hook_register(name); + hook = hook_find(name); + } + + /* this *cant* happen */ + g_return_if_fail(hook != NULL); hook->funcs = g_slist_append(hook->funcs, func); }