[evolution-patches] Fix return value in EIconFactory
- From: Rodney Dawes <dobey novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] Fix return value in EIconFactory
- Date: Sat, 07 Aug 2004 14:23:59 -0400
The callback to free icon data when clearing the cache doesn't return
TRUE when it should be doing that, as it is a gboolean return, and to
actually remove the item from the hash table, we need to return TRUE,
as stated at http://developer.gnome.org/doc/API/2.0/glib/glib-Hash-
Tables.html#GHRFunc
-- dobey
Index: e-util/e-icon-factory.c
===================================================================
RCS file: /cvs/gnome/evolution/e-util/e-icon-factory.c,v
retrieving revision 1.11
diff -u -r1.11 e-icon-factory.c
--- e-util/e-icon-factory.c 5 Aug 2004 21:50:30 -0000 1.11
+++ e-util/e-icon-factory.c 7 Aug 2004 18:26:01 -0000
@@ -177,6 +177,8 @@
icon_foreach_remove (gpointer key, gpointer value, gpointer user_data)
{
icon_free (value);
+
+ return TRUE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]