pidgin: 5f39c0c7: Check that the PidginWindow we get in ha...
deryni at pidgin.im
deryni at pidgin.im
Wed Jan 7 09:05:51 EST 2009
-----------------------------------------------------------------
Revision: 5f39c0c7a9b42095bfdc5a3a637fc280da38d729
Ancestor: 8b25c4f4ddcd70f0b21bc6bef1867d6df8b25075
Author: deryni at pidgin.im
Date: 2009-01-06T06:32:49
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5f39c0c7a9b42095bfdc5a3a637fc280da38d729
Modified files:
pidgin/plugins/notify.c
ChangeLog:
Check that the PidginWindow we get in handle_urgent actually exists and has
a window member before trying to use them.
References #5583
-------------- next part --------------
============================================================
--- pidgin/plugins/notify.c a4cec82a813d567065c08057f34ad06329d3fcd7
+++ pidgin/plugins/notify.c 52f45832a84a4e9ab89cb5a1efbf9239cab7650d
@@ -555,9 +555,12 @@ static void
}
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
More information about the Commits
mailing list