[ekiga/ds-gtk-application] Evolution: Ported Book to the Actor framework.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] Evolution: Ported Book to the Actor framework.
- Date: Sun, 30 Nov 2014 10:28:32 +0000 (UTC)
commit 89d7b8c3c9279cae0f4590dd2f0c952e0bd59166
Author: Damien Sandras <dsandras seconix com>
Date: Sat Nov 29 12:14:19 2014 +0100
Evolution: Ported Book to the Actor framework.
plugins/evolution/evolution-book.cpp | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/plugins/evolution/evolution-book.cpp b/plugins/evolution/evolution-book.cpp
index 35031c4..708fd72 100644
--- a/plugins/evolution/evolution-book.cpp
+++ b/plugins/evolution/evolution-book.cpp
@@ -56,7 +56,6 @@ Evolution::Book::on_view_contacts_added (GList *econtacts)
{
EContact *econtact = NULL;
int nbr = 0;
- gchar* c_status = NULL;
for (; econtacts != NULL; econtacts = g_list_next (econtacts)) {
@@ -72,11 +71,6 @@ Evolution::Book::on_view_contacts_added (GList *econtacts)
}
}
- c_status = g_strdup_printf (ngettext ("%d user found", "%d users found", nbr),
- nbr);
- status = c_status;
- g_free (c_status);
-
updated ();
}
@@ -264,6 +258,10 @@ Evolution::Book::Book (Ekiga::ServiceCore &_services,
g_object_ref (book);
refresh ();
+
+ /* Actor stuff */
+ add_action (Ekiga::ActionPtr (new Ekiga::Action ("add-contact", _("A_dd Contact"),
+ boost::bind (&Evolution::Book::new_contact_action,
this))));
}
Evolution::Book::~Book ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]