Check for ditem::icon != NULL before calling gnome_pixmap_file.

2002-01-03  Richard Hestilow  <hestilow@ximian.com>

	* capplet-dir.c (capplet_new): Check for ditem::icon != NULL
	before calling gnome_pixmap_file.

	* gnomecc.glade: Remove toolbar & menu stuff (this was causing
	runtime glade warnings).
This commit is contained in:
Richard Hestilow 2002-01-03 21:25:24 +00:00 committed by Rachel Hestilow
parent ff7a43359d
commit 4d346978f5
4 changed files with 17 additions and 8 deletions

View file

@ -163,7 +163,7 @@ sidebar_dummy_foreach (GtkTreeModel *model, GtkTreePath *path,
g_return_if_fail (dir != NULL);
g_value_init (&val, G_TYPE_POINTER);
//g_value_init (&val, G_TYPE_POINTER);
gtk_tree_model_get_value (model, iter, SIDEBAR_DATA, &val);
*dir = g_value_get_pointer (&val);
}