Mercurial > pidgin.yaz
diff pidgin/plugins/notify.c @ 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 | 315a2a4f1f52 |
| children | 37b668b8d6c1 |
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
