Hi! Everytime I close the control-center after clicking on one of the capplets I get a segfault. The attached patch fixes this. Is it ok to commit? Regards, Mikael Hallendal -- Mikael Hallendal micke codefactory se CodeFactory AB http://www.codefactory.se/ Office: +46 (0)8 587 583 05 Cell: +46 (0)709 718 918
--- control-center/capplet-manager.c.orig Thu Jan 24 21:57:56 2002 +++ control-center/capplet-manager.c Thu Jan 24 21:58:01 2002 @@ -323,7 +323,10 @@ close_capplet (TRUE, nd); nd->state = CAPPLET_INACTIVE; style = gtk_widget_get_style (GTK_WIDGET (nd->ctree)); - gtk_ctree_node_set_foreground (nd->ctree, nd->node, &style->fg[GTK_STATE_NORMAL]); + + if (style && &style) { + gtk_ctree_node_set_foreground (nd->ctree, nd->node, &style->fg[GTK_STATE_NORMAL]); + } } } static void
Attachment:
signature.asc
Description: PGP signature