aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-model.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-28 12:26:30 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-28 12:26:30 +0800
commit350fde81677a44e5203a38c833e5175c3b649de2 (patch)
treefcf8a53c086d9a34fc0492b98a51128d54ba3753 /addressbook/gui/widgets/e-addressbook-model.c
parentf91435fc0c0186d48079dc44d8626135eba92462 (diff)
downloadgsoc2013-evolution-350fde81677a44e5203a38c833e5175c3b649de2.tar
gsoc2013-evolution-350fde81677a44e5203a38c833e5175c3b649de2.tar.gz
gsoc2013-evolution-350fde81677a44e5203a38c833e5175c3b649de2.tar.bz2
gsoc2013-evolution-350fde81677a44e5203a38c833e5175c3b649de2.tar.lz
gsoc2013-evolution-350fde81677a44e5203a38c833e5175c3b649de2.tar.xz
gsoc2013-evolution-350fde81677a44e5203a38c833e5175c3b649de2.tar.zst
gsoc2013-evolution-350fde81677a44e5203a38c833e5175c3b649de2.zip
Added double click to open contact editor.
2000-05-25 Christopher James Lahey <clahey@helixcode.com> * 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
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-model.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c
index 598f6786cf..5d71757b60 100644
--- a/addressbook/gui/widgets/e-addressbook-model.c
+++ b/addressbook/gui/widgets/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)
{