diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2007-08-08 16:16:03 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2007-08-08 16:16:03 +0000 |
commit | 2f864eeeccd669ec94500d1b0cd8bec5f935effe (patch) | |
tree | afc81d98a3fcbd50ff868dad8eca1d750bddc1c5 /gtk/gtk_schedule.c | |
parent | f552452b9fc294c6ede2eb44f70d016b8bf7d415 (diff) | |
download | netsurf-2f864eeeccd669ec94500d1b0cd8bec5f935effe.tar.gz netsurf-2f864eeeccd669ec94500d1b0cd8bec5f935effe.tar.bz2 |
Update all source code file headers to reflect GPL version 2 only and contain appropriate licence text
svn path=/trunk/netsurf/; revision=3486
Diffstat (limited to 'gtk/gtk_schedule.c')
-rw-r--r-- | gtk/gtk_schedule.c | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/gtk/gtk_schedule.c b/gtk/gtk_schedule.c index 2bee6b6c5..4fffd1691 100644 --- a/gtk/gtk_schedule.c +++ b/gtk/gtk_schedule.c @@ -1,8 +1,19 @@ /* - * This file is part of NetSurf, http://netsurf-browser.org/ - * Licensed under the GNU General Public License, - * http://www.opensource.org/licenses/gpl-license * Copyright 2006-2007 Daniel Silverstone <dsilvers@digital-scurf.org> + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <glib.h> @@ -72,7 +83,7 @@ schedule_remove(void (*callback)(void *p), void *p) .callback = callback, .context = p, }; - + g_list_foreach(queued_callbacks, nsgtk_schedule_kill_callback, &cb_match); g_list_foreach(pending_callbacks, @@ -101,15 +112,15 @@ schedule_run(void) { /* Capture this run of pending callbacks into the list. */ this_run = pending_callbacks; - + if (this_run == NULL) return; /* Nothing to do */ - + /* Clear the pending list. */ pending_callbacks = NULL; - + LOG(("Captured a run of %d callbacks to fire.", g_list_length(this_run))); - + /* Run all the callbacks which made it this far. */ while (this_run != NULL) { _nsgtk_callback_t *cb = (_nsgtk_callback_t *)(this_run->data); |