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
This commit is contained in:
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user