Mercurial > pidgin.yaz
changeset 24889:533d37757363
Check that the PidginWindow we get in handle_urgent actually exists and has
a window member before trying to use them.
References #5583
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 06 Jan 2009 06:32:49 +0000 |
parents | b9f7a8ca1369 |
children | b97d8001402d |
files | pidgin/plugins/notify.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/plugins/notify.c Tue Jan 06 06:29:44 2009 +0000 +++ b/pidgin/plugins/notify.c Tue Jan 06 06:32:49 2009 +0000 @@ -555,9 +555,12 @@ } static void -handle_urgent(PidginWindow *win, gboolean set) +handle_urgent(PidginWindow *purplewin, gboolean set) { - pidgin_set_urgent(GTK_WINDOW(win->window), set); + g_return_if_fail(purplewin != NULL); + g_return_if_fail(purplewin->window != NULL); + + pidgin_set_urgent(GTK_WINDOW(purplewin->window), set); } static void