aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Creasey <sammy@oh.verio.com>2001-07-04 08:36:47 +0800
committerSam Creasy <sammy@src.gnome.org>2001-07-04 08:36:47 +0800
commit7a2f3f2fbce5eca8bd2553db2b02de5a5edc5ff6 (patch)
tree3506263987da5b62142dade10b5ca04a8c603cf0
parente77e11490f325665ad1160e73b20de65adb9daa3 (diff)
downloadgsoc2013-evolution-7a2f3f2fbce5eca8bd2553db2b02de5a5edc5ff6.tar.gz
gsoc2013-evolution-7a2f3f2fbce5eca8bd2553db2b02de5a5edc5ff6.tar.zst
gsoc2013-evolution-7a2f3f2fbce5eca8bd2553db2b02de5a5edc5ff6.zip
Replace value in config->preview_hash when it already exists. Old code
2001-07-03 Sam Creasey <sammy@oh.verio.com> * mail-config.c (mail_config_set_show_preview): Replace value in config->preview_hash when it already exists. Old code never re-inserted into the hash, just assigned to val -- it's an int here, not a real pointer. svn path=/trunk/; revision=10776
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-config.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 0683ff01b4..495728fdd7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-03 Sam Creasey <sammy@oh.verio.com>
+ * mail-config.c (mail_config_set_show_preview): Replace value in
+ config->preview_hash when it already exists. Old code never
+ re-inserted into the hash, just assigned to val -- it's an int
+ here, not a real pointer.
+
2001-07-03 Joe Shaw <joe@ximian.com>
* mail-callbacks.c (expunge_folder): Unset the message being displayed
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 6a60a4855e..28cbca3f17 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -923,7 +923,8 @@ mail_config_set_show_preview (const char *uri, gboolean value)
config->preview_hash = g_hash_table_new (g_str_hash, g_str_equal);
if (g_hash_table_lookup_extended (config->preview_hash, dbkey, &key, &val)) {
- val = GINT_TO_POINTER (value);
+ g_hash_table_insert (config->preview_hash, dbkey,
+ GINT_TO_POINTER (value));
g_free (dbkey);
} else {
g_hash_table_insert (config->preview_hash, dbkey,