aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-timezone-entry.c
diff options
context:
space:
mode:
authorHarry Lu <harry.lu@sun.com>2003-07-03 05:24:03 +0800
committerHans Petter <hansp@src.gnome.org>2003-07-03 05:24:03 +0800
commit7b887ab330e6e00b46d260ebdfe512cdf9e9494f (patch)
tree16b80488625aaa18724ebe670900907d68cff2f2 /calendar/gui/e-timezone-entry.c
parente712cc248aef07ba3828362552f9e56bdf833a06 (diff)
downloadgsoc2013-evolution-7b887ab330e6e00b46d260ebdfe512cdf9e9494f.tar.gz
gsoc2013-evolution-7b887ab330e6e00b46d260ebdfe512cdf9e9494f.tar.zst
gsoc2013-evolution-7b887ab330e6e00b46d260ebdfe512cdf9e9494f.zip
Fixes #44485
2003-07-02 Harry Lu <harry.lu@sun.com> Fixes #44485 * gui/e-timezone-entry.c (e_timezone_entry_set_entry): pass a new allocated string to gtk_entry_set_text instead of the one that might come from gettext. svn path=/trunk/; revision=21728
Diffstat (limited to 'calendar/gui/e-timezone-entry.c')
-rw-r--r--calendar/gui/e-timezone-entry.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/gui/e-timezone-entry.c b/calendar/gui/e-timezone-entry.c
index 6d514ccc93..c23cc3e03b 100644
--- a/calendar/gui/e-timezone-entry.c
+++ b/calendar/gui/e-timezone-entry.c
@@ -269,6 +269,7 @@ e_timezone_entry_set_entry (ETimezoneEntry *tentry)
{
ETimezoneEntryPrivate *priv;
const char *display_name;
+ char *name_buffer;
priv = tentry->priv;
@@ -284,11 +285,15 @@ e_timezone_entry_set_entry (ETimezoneEntry *tentry)
} else
display_name = "";
- gtk_entry_set_text (GTK_ENTRY (priv->entry), display_name);
+ name_buffer = g_strdup (display_name);
+
+ gtk_entry_set_text (GTK_ENTRY (priv->entry), name_buffer);
if (!priv->default_zone || (priv->zone != priv->default_zone))
gtk_widget_show (priv->entry);
else
gtk_widget_hide (priv->entry);
+
+ g_free (name_buffer);
}