From 350fde81677a44e5203a38c833e5175c3b649de2 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 28 May 2000 04:26:30 +0000 Subject: Added double click to open contact editor. 2000-05-25 Christopher James Lahey * gui/component/addressbook.c, gui/component/e-addressbook-model.c, gui/component/e-addressbook-model.h: Added double click to open contact editor. svn path=/trunk/; revision=3239 --- addressbook/gui/component/e-addressbook-model.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'addressbook/gui/component/e-addressbook-model.c') diff --git a/addressbook/gui/component/e-addressbook-model.c b/addressbook/gui/component/e-addressbook-model.c index 598f6786cf..5d71757b60 100644 --- a/addressbook/gui/component/e-addressbook-model.c +++ b/addressbook/gui/component/e-addressbook-model.c @@ -284,6 +284,21 @@ get_view(EAddressbookModel *model) return FALSE; } +ECard * +e_addressbook_model_get_card(EAddressbookModel *model, + int row) +{ + if (model->data && row < model->data_count) { + ECard *card; + gtk_object_get(GTK_OBJECT(model->data[row]), + "card", &card, + NULL); + gtk_object_ref(GTK_OBJECT(card)); + return card; + } + return NULL; +} + static void e_addressbook_model_set_arg (GtkObject *o, GtkArg *arg, guint arg_id) { -- cgit v1.2.3