aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/minicard
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-20 07:36:35 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-20 07:36:35 +0800
commitd56dbcd9247a965250888c0486464f976e668057 (patch)
tree9ad294f7fafd65cb7c531d11586a910806b39ef5 /addressbook/gui/minicard
parent862d1f25dea4fde774aca9b8e849f22b2e0b9d93 (diff)
downloadgsoc2013-evolution-d56dbcd9247a965250888c0486464f976e668057.tar
gsoc2013-evolution-d56dbcd9247a965250888c0486464f976e668057.tar.gz
gsoc2013-evolution-d56dbcd9247a965250888c0486464f976e668057.tar.bz2
gsoc2013-evolution-d56dbcd9247a965250888c0486464f976e668057.tar.lz
gsoc2013-evolution-d56dbcd9247a965250888c0486464f976e668057.tar.xz
gsoc2013-evolution-d56dbcd9247a965250888c0486464f976e668057.tar.zst
gsoc2013-evolution-d56dbcd9247a965250888c0486464f976e668057.zip
Changed this to use ECardSimple.
2000-08-19 Christopher James Lahey <clahey@helixcode.com> * conduit/address-conduit.c, conduit/address-conduit.h: Changed this to use ECardSimple. * contact-editor/e-contact-editor.c: Fixed a memory leak. * gui/component/addressbook.c: Added stuff to the right click menu. Activated the new search dialog that doesn't quite work yet. * gui/minicard/e-minicard-view.c: Fixed some run time warnings. svn path=/trunk/; revision=4882
Diffstat (limited to 'addressbook/gui/minicard')
-rw-r--r--addressbook/gui/minicard/e-minicard-view.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/addressbook/gui/minicard/e-minicard-view.c b/addressbook/gui/minicard/e-minicard-view.c
index 8e275bdb2b..011ff9158f 100644
--- a/addressbook/gui/minicard/e-minicard-view.c
+++ b/addressbook/gui/minicard/e-minicard-view.c
@@ -211,12 +211,14 @@ e_minicard_view_set_arg (GtkObject *o, GtkArg *arg, guint arg_id)
case ARG_BOOK:
if (view->book)
gtk_object_unref(GTK_OBJECT(view->book));
- view->book = E_BOOK(GTK_VALUE_OBJECT (*arg));
- if (view->book) {
+ if (GTK_VALUE_OBJECT (*arg)) {
+ view->book = E_BOOK(GTK_VALUE_OBJECT (*arg));
gtk_object_ref(GTK_OBJECT(view->book));
if (view->get_view_idle == 0)
view->get_view_idle = g_idle_add((GSourceFunc)get_view, view);
}
+ else
+ view->book = NULL;
break;
case ARG_QUERY:
g_free(view->query);
@@ -360,6 +362,10 @@ disconnect_signals(EMinicardView *view)
if (view->book_view && view->modify_card_id)
gtk_signal_disconnect(GTK_OBJECT (view->book_view),
view->modify_card_id);
+
+ view->create_card_id = 0;
+ view->remove_card_id = 0;
+ view->modify_card_id = 0;
}
static void