Update of /cvsroot/gaim/gaim/src
In directory sc8-pr-cvs1:/tmp/cvs-serv3009/src
Modified Files:
gtkblist.c
Log Message:
(11:59:54) Robot101: found & fixed a crash at signoff...
(12:17:48) faceprint|laptop: "if you can't figure out what this is, you shouldn't be using CVS"
Index: gtkblist.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/gtkblist.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- gtkblist.c 27 Apr 2003 17:33:10 -0000 1.4
+++ gtkblist.c 28 Apr 2003 16:21:03 -0000 1.5
@@ -1552,9 +1552,11 @@
static gboolean do_selection_changed(GaimBlistNode *new_selection)
{
- GaimBlistNode *old_selection = gtkblist->selected_node;
+ GaimBlistNode *old_selection = NULL;
- if(new_selection != gtkblist->selected_node) {
+ /* test for gtkblist because crazy timeout means we can be called after the blist is gone */
+ if (gtkblist && new_selection != gtkblist->selected_node) {
+ old_selection = gtkblist->selected_node;
gtkblist->selected_node = new_selection;
if(new_selection)
gaim_gtk_blist_update(NULL, new_selection);
@@ -1574,6 +1576,7 @@
gtk_tree_model_get(GTK_TREE_MODEL(gtkblist->treemodel), &iter,
NODE_COLUMN, &new_selection, -1);
}
+
/* we set this up as a timeout, otherwise the blist flickers */
g_timeout_add(0, (GSourceFunc)do_selection_changed, new_selection);
}
|