# HG changeset patch # User giacomo # Date 1154868348 25200 # Node ID c9ac8b6679c90bdbee0e5fd780ee717eb9881e35 # Parent ae369659010a3a63ebe9ea3ec9e85a89ed704b20 [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) diff -r ae369659010a -r c9ac8b6679c9 ChangeLog --- 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 + 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 revision [1930] - prepare to add an optional libxml2 dependency diff -r ae369659010a -r c9ac8b6679c9 Plugins/General/notify/notify.c --- 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) {