diff options
author | Chyla Zbigniew <chyla@src.gnome.org> | 2001-11-10 05:21:12 +0800 |
---|---|---|
committer | Chyla Zbigniew <chyla@src.gnome.org> | 2001-11-10 05:21:12 +0800 |
commit | d437e7873dcc8c7a2f2eb4fd4597f419252ff26a (patch) | |
tree | e7d1fe7994a7612e3cd2fa225e4a1aae38b8635c /calendar/gui | |
parent | 37b841061a3e1337aac1d364d9822b8c1340ed1a (diff) | |
download | gsoc2013-evolution-d437e7873dcc8c7a2f2eb4fd4597f419252ff26a.tar gsoc2013-evolution-d437e7873dcc8c7a2f2eb4fd4597f419252ff26a.tar.gz gsoc2013-evolution-d437e7873dcc8c7a2f2eb4fd4597f419252ff26a.tar.bz2 gsoc2013-evolution-d437e7873dcc8c7a2f2eb4fd4597f419252ff26a.tar.lz gsoc2013-evolution-d437e7873dcc8c7a2f2eb4fd4597f419252ff26a.tar.xz gsoc2013-evolution-d437e7873dcc8c7a2f2eb4fd4597f419252ff26a.tar.zst gsoc2013-evolution-d437e7873dcc8c7a2f2eb4fd4597f419252ff26a.zip |
Convert strings to GTK+ encoding. (meeting_page_destroy): Free allocated
* gui/dialogs/meeting-page.c
(meeting_page_fill_widgets): Convert strings to GTK+ encoding.
(meeting_page_destroy): Free allocated strings before freeing the list
itself.
svn path=/trunk/; revision=14647
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/dialogs/meeting-page.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/meeting-page.c b/calendar/gui/dialogs/meeting-page.c index 8f5f5f6e68..51cfe045d9 100644 --- a/calendar/gui/dialogs/meeting-page.c +++ b/calendar/gui/dialogs/meeting-page.c @@ -254,6 +254,7 @@ meeting_page_destroy (GtkObject *object) g_ptr_array_free (priv->deleted_attendees, FALSE); itip_addresses_free (priv->addresses); + g_list_foreach (priv->address_strings, (GFunc) g_free, NULL); g_list_free (priv->address_strings); gtk_object_unref (GTK_OBJECT (priv->model)); @@ -352,10 +353,12 @@ meeting_page_fill_widgets (CompEditorPage *page, CalComponent *comp) priv->addresses = itip_addresses_get (); for (l = priv->addresses; l != NULL; l = l->next) { ItipAddress *a = l->data; + char *s; - priv->address_strings = g_list_append (priv->address_strings, a->full); + s = e_utf8_to_gtk_string (GTK_COMBO (priv->organizer)->entry, a->full); + priv->address_strings = g_list_append (priv->address_strings, s); if (a->default_address) - priv->default_address = a->full; + priv->default_address = s; } gtk_combo_set_popdown_strings (GTK_COMBO (priv->organizer), priv->address_strings); |