pidgin: 709e6a37: Prevent a crash if a plugin set a mini-d...

qulogic at pidgin.im qulogic at pidgin.im
Sun Jul 19 04:20:45 EDT 2009


-----------------------------------------------------------------
Revision: 709e6a377c6f28283c73e7debfbd9611c5f6d415
Ancestor: 082fad0844ad2951cd94bfff9e512576fc7b9279
Author: qulogic at pidgin.im
Date: 2009-07-19T06:20:21
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/709e6a377c6f28283c73e7debfbd9611c5f6d415

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

Prevent a crash if a plugin set a mini-dialog during load. If that plugin
were auto-loaded on startup, that would be before we actually created the
gtkblist. Of course, without a gtkblist, the mini-dialog doesn't go
anywhere. I think the plugins should connect to "gtkblist-created" anyway.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	2600689bab2d70d60e01994e988c6ecb45575745
+++ pidgin/gtkblist.c	32ed68cb4db78bcf3189d4d88417fbd11be36fce
@@ -7216,7 +7216,7 @@ set_urgent(void)
 static void
 set_urgent(void)
 {
-	if (!GTK_WIDGET_HAS_FOCUS(gtkblist->window))
+	if (gtkblist->window && !GTK_WIDGET_HAS_FOCUS(gtkblist->window))
 		pidgin_set_urgent(GTK_WINDOW(gtkblist->window), TRUE);
 }
 


More information about the Commits mailing list