[anjal] Activate contacts to mail them.



commit cbb755b53573e603f1d23b4e3a42647375125f87
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Wed Jul 15 22:24:19 2009 +0530

    Activate contacts to mail them.

 src/mail-people-view.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/mail-people-view.c b/src/mail-people-view.c
index adfd98a..7f3d923 100644
--- a/src/mail-people-view.c
+++ b/src/mail-people-view.c
@@ -34,6 +34,7 @@
 #include <anerley/anerley-ebook-feed.h>
 #include <anerley/anerley-item.h>
 #include <anerley/anerley-simple-grid-view.h>
+#include <anerley/anerley-tile-view.h>
 #include <anerley/anerley-tile.h>
 #include <anerley/anerley-feed-model.h>
 
@@ -107,6 +108,12 @@ mpv_size_alloc (GtkWidget *widget, GtkAllocation *allocation, MailPeopleView *mp
 	clutter_actor_set_size (mpv->priv->table, allocation->width-10, allocation->height-6);
 }
 
+static void
+mpv_item_activated (AnerleyTileView *view, AnerleyItem *item, MailPeopleView *mpv)
+{
+	anerley_econtact_item_activate (item);
+}
+
 void
 mail_people_view_construct (MailPeopleView *acview)
 {
@@ -145,7 +152,7 @@ mail_people_view_construct (MailPeopleView *acview)
         	            "text-changed",
                 	    _entry_text_changed_cb,
                     	    model);
-
+	g_signal_connect (icon_view, "item-activated", G_CALLBACK(mpv_item_activated), acview);
 	nbtk_table_add_actor_with_properties (NBTK_TABLE (table),
                                         	entry,
                                         	0,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]