ekiga r6519 - in trunk: . lib/engine/addressbook/evolution
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6519 - in trunk: . lib/engine/addressbook/evolution
- Date: Sat, 26 Jul 2008 00:53:42 +0000 (UTC)
Author: jpuydt
Date: Sat Jul 26 00:53:42 2008
New Revision: 6519
URL: http://svn.gnome.org/viewvc/ekiga?rev=6519&view=rev
Log:
Made Evolution::Contact::populate_menu use TemporaryMenuBuilder
Modified:
trunk/ChangeLog
trunk/lib/engine/addressbook/evolution/evolution-contact.cpp
Modified: trunk/lib/engine/addressbook/evolution/evolution-contact.cpp
==============================================================================
--- trunk/lib/engine/addressbook/evolution/evolution-contact.cpp (original)
+++ trunk/lib/engine/addressbook/evolution/evolution-contact.cpp Sat Jul 26 00:53:42 2008
@@ -41,6 +41,7 @@
#include "evolution-contact.h"
#include "form-request-simple.h"
+#include "menu-builder-tools.h"
Evolution::Contact::Contact (Ekiga::ServiceCore &_services,
EBook *ebook,
@@ -210,28 +211,31 @@
if (core != NULL) {
+ Ekiga::TemporaryMenuBuilder tmp_builder;
+
for (unsigned int attr_type = 0; attr_type < ATTR_NUMBER; attr_type++) {
std::string attr_value = get_attribute_value (attr_type);
if ( !attr_value.empty ()) {
- populated = true;
- builder.add_ghost ("", get_attribute_name_from_type (attr_type));
- core->populate_contact_menu (*this,
- attr_value,
- builder);
+ if (core->populate_contact_menu (*this, attr_value, tmp_builder)) {
+
+ builder.add_ghost ("", get_attribute_name_from_type (attr_type));
+ tmp_builder.populate_menu (builder);
+ populated = true;
+ }
}
}
+ }
- if (populated)
- builder.add_separator ();
+ if (populated)
+ builder.add_separator ();
- builder.add_action ("remove", _("_Remove"),
- sigc::mem_fun (this, &Evolution::Contact::remove));
- builder.add_action ("edit", _("_Edit"),
- sigc::mem_fun (this, &Evolution::Contact::edit_action));
- populated = true;
- }
+ builder.add_action ("remove", _("_Remove"),
+ sigc::mem_fun (this, &Evolution::Contact::remove));
+ builder.add_action ("edit", _("_Edit"),
+ sigc::mem_fun (this, &Evolution::Contact::edit_action));
+ populated = true;
return populated;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]