Mercurial > pidgin.yaz
comparison pidgin/gtkblist.c @ 27664:989f1bd200b7
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.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 19 Jul 2009 06:20:21 +0000 |
parents | 381acdb3cedc |
children | 5d75276a575f |
comparison
equal
deleted
inserted
replaced
27663:f7c5bb2f6623 | 27664:989f1bd200b7 |
---|---|
7214 | 7214 |
7215 | 7215 |
7216 static void | 7216 static void |
7217 set_urgent(void) | 7217 set_urgent(void) |
7218 { | 7218 { |
7219 if (!GTK_WIDGET_HAS_FOCUS(gtkblist->window)) | 7219 if (gtkblist->window && !GTK_WIDGET_HAS_FOCUS(gtkblist->window)) |
7220 pidgin_set_urgent(GTK_WINDOW(gtkblist->window), TRUE); | 7220 pidgin_set_urgent(GTK_WINDOW(gtkblist->window), TRUE); |
7221 } | 7221 } |
7222 | 7222 |
7223 static PurpleBlistUiOps blist_ui_ops = | 7223 static PurpleBlistUiOps blist_ui_ops = |
7224 { | 7224 { |