Mercurial > audlegacy
changeset 1510:c9ac8b6679c9 trunk
[svn] - a couple of fixes for notify plugin (removed some deprecated gtk+1 functions and ensure that the timeout is removed only if it actually exists)
author | giacomo |
---|---|
date | Sun, 06 Aug 2006 05:45:48 -0700 |
parents | ae369659010a |
children | 543e37d18997 |
files | ChangeLog Plugins/General/notify/notify.c |
diffstat | 2 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Aug 06 02:52:27 2006 -0700 +++ b/ChangeLog Sun Aug 06 05:45:48 2006 -0700 @@ -1,3 +1,12 @@ +2006-08-06 09:52:27 +0000 Stephen Sokolow <deitarion@gmail.com> + revision [1932] + Added awareness of the difference between stopped and playing. + + + Changes: Modified: + +25 -3 trunk/Plugins/General/notify/notify.c + + 2006-08-06 08:54:32 +0000 William Pitcock <nenolod@nenolod.net> revision [1930] - prepare to add an optional libxml2 dependency
--- a/Plugins/General/notify/notify.c Sun Aug 06 02:52:27 2006 -0700 +++ b/Plugins/General/notify/notify.c Sun Aug 06 05:45:48 2006 -0700 @@ -50,12 +50,13 @@ TODO: I assume 100 means 100ms checking interval? Why not 200? It would be twice as efficient and the user shouldn't notice any difference. */ - timeout_tag = gtk_timeout_add(100, watchdog_func, NULL); + timeout_tag = g_timeout_add(100, watchdog_func, NULL); } static void cleanup(void) { - gtk_timeout_remove(timeout_tag); + if ( timeout_tag > 0 ) + g_source_remove(timeout_tag); if (previous_title != NULL) {