From db968c5b9ef629aebea74b290d71b99ee8a1c58b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 13 Apr 2000 08:45:37 +0000 Subject: Give correct warnings. 2000-04-13 Christopher James Lahey * addressbook/backend/pas/pas-book-view.c: Give correct warnings. * addressbook/backend/ebook/e-card.c (e_card_set_arg): g_strdup url and title. svn path=/trunk/; revision=2421 --- ChangeLog | 7 +++++++ addressbook/backend/ebook/e-card.c | 6 +++--- addressbook/backend/pas/pas-book-view.c | 6 +++--- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 80471991ed..8aef8ed4f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-04-13 Christopher James Lahey + + * addressbook/backend/pas/pas-book-view.c: Give correct warnings. + + * addressbook/backend/ebook/e-card.c (e_card_set_arg): g_strdup + url and title. + 2000-04-13 Chris Toshok * addressbook/contact-editor/e-contact-editor.c diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c index 2bd0e4e7c8..2f4e1d23b8 100644 --- a/addressbook/backend/ebook/e-card.c +++ b/addressbook/backend/ebook/e-card.c @@ -671,17 +671,17 @@ e_card_set_arg (GtkObject *object, GtkArg *arg, guint arg_id) case ARG_URL: if ( card->url ) g_free(card->url); - card->url = GTK_VALUE_STRING(*arg); + card->url = g_strdup(GTK_VALUE_STRING(*arg)); break; case ARG_TITLE: if ( card->title ) g_free(card->title); - card->title = GTK_VALUE_STRING(*arg); + card->title = g_strdup(GTK_VALUE_STRING(*arg)); break; case ARG_ID: if (card->id) g_free(card->id); - card->id = GTK_VALUE_STRING(*arg); + card->id = g_strdup(GTK_VALUE_STRING(*arg)); break; default: return; diff --git a/addressbook/backend/pas/pas-book-view.c b/addressbook/backend/pas/pas-book-view.c index e59028f88a..9754fb5692 100644 --- a/addressbook/backend/pas/pas-book-view.c +++ b/addressbook/backend/pas/pas-book-view.c @@ -42,7 +42,7 @@ pas_book_view_notify_change (PASBookView *book_view, book_view->priv->listener, &card_sequence, &ev); if (ev._major != CORBA_NO_EXCEPTION) { - g_warning ("pas_book_view_notify_change: Exception signaling BookListener!\n"); + g_warning ("pas_book_view_notify_change: Exception signaling BookViewListener!\n"); } CORBA_exception_free (&ev); @@ -74,7 +74,7 @@ pas_book_view_notify_remove (PASBookView *book_view, book_view->priv->listener, (Evolution_CardId) id, &ev); if (ev._major != CORBA_NO_EXCEPTION) { - g_warning ("pas_book_view_notify_remove: Exception signaling BookListener!\n"); + g_warning ("pas_book_view_notify_remove: Exception signaling BookViewListener!\n"); } CORBA_exception_free (&ev); @@ -107,7 +107,7 @@ pas_book_view_notify_add (PASBookView *book_view, book_view->priv->listener, &card_sequence, &ev); if (ev._major != CORBA_NO_EXCEPTION) { - g_warning ("pas_book_view_notify_add: Exception signaling BookListener!\n"); + g_warning ("pas_book_view_notify_add: Exception signaling BookViewListener!\n"); } CORBA_exception_free (&ev); -- cgit v1.2.3