diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2002-08-27 00:14:35 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2002-08-27 00:14:35 +0800 |
commit | c0a5e7b7890928a52aa42b131f584ef3acbd5bde (patch) | |
tree | d2def417c4c48a9e2153806917bfe219a6359d15 | |
parent | 4e8966108728859537ec045decb368251bf078dc (diff) | |
download | gsoc2013-evolution-c0a5e7b7890928a52aa42b131f584ef3acbd5bde.tar gsoc2013-evolution-c0a5e7b7890928a52aa42b131f584ef3acbd5bde.tar.gz gsoc2013-evolution-c0a5e7b7890928a52aa42b131f584ef3acbd5bde.tar.bz2 gsoc2013-evolution-c0a5e7b7890928a52aa42b131f584ef3acbd5bde.tar.lz gsoc2013-evolution-c0a5e7b7890928a52aa42b131f584ef3acbd5bde.tar.xz gsoc2013-evolution-c0a5e7b7890928a52aa42b131f584ef3acbd5bde.tar.zst gsoc2013-evolution-c0a5e7b7890928a52aa42b131f584ef3acbd5bde.zip |
call g_strdup in the correct place, or we'll return the internal copy.
2002-08-26 Rodrigo Moya <rodrigo@ximian.com>
* e-config-listener.c (e_config_listener_get_string_with_default):
call g_strdup in the correct place, or we'll return the internal copy.
svn path=/trunk/; revision=17860
-rw-r--r-- | e-util/ChangeLog | 5 | ||||
-rw-r--r-- | e-util/e-config-listener.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index d70eb132f9..9b2788118a 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,5 +1,10 @@ 2002-08-26 Rodrigo Moya <rodrigo@ximian.com> + * e-config-listener.c (e_config_listener_get_string_with_default): + call g_strdup in the correct place, or we'll return the internal copy. + +2002-08-26 Rodrigo Moya <rodrigo@ximian.com> + * e-config-listener.c (e_config_listener_set_long): only set the key if the value is different from what we've already read from the database, to avoid extra change notifications. diff --git a/e-util/e-config-listener.c b/e-util/e-config-listener.c index 88debbd8b0..028f5ecc8e 100644 --- a/e-util/e-config-listener.c +++ b/e-util/e-config-listener.c @@ -364,14 +364,14 @@ e_config_listener_get_string_with_default (EConfigListener *cl, g_assert (kd != NULL); if (kd->type == GTK_TYPE_STRING) { - str = g_strdup (kd->value.v_str); + str = kd->value.v_str; if (used_default != NULL) *used_default = kd->used_default; } else return NULL; } - return str; + return g_strdup (str); } void |