aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-04-13 16:45:37 +0800
committerChris Lahey <clahey@src.gnome.org>2000-04-13 16:45:37 +0800
commitdb968c5b9ef629aebea74b290d71b99ee8a1c58b (patch)
treee9cde53da89f7beec7cacfd42460b93b9fa03048 /addressbook/backend
parentbc162e949ed126225cc371ddded34451a93a6bfd (diff)
downloadgsoc2013-evolution-db968c5b9ef629aebea74b290d71b99ee8a1c58b.tar.gz
gsoc2013-evolution-db968c5b9ef629aebea74b290d71b99ee8a1c58b.tar.zst
gsoc2013-evolution-db968c5b9ef629aebea74b290d71b99ee8a1c58b.zip
Give correct warnings.
2000-04-13 Christopher James Lahey <clahey@helixcode.com> * 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
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-card.c6
-rw-r--r--addressbook/backend/pas/pas-book-view.c6
2 files changed, 6 insertions, 6 deletions
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);