/****************************************************************** Opens the addressbook with a new person taken from the mail To is 1 if address should be taken from the To: field *******************************************************************/ void addressbook_open_with_new_address_from_mail(struct mail *m, int to) { #if 0 struct addressbook_entry *entry = addressbook_get_entry_from_mail(m,to); if (entry) { addressbook_open(); person_window_open(entry); addressbook_free_entry(entry); } #endif }
static void trayicon_addressbook_cb(GtkAction *action, gpointer data) { #ifndef USE_NEW_ADDRBOOK addressbook_open(NULL); #else GError* error = NULL; addressbook_dbus_open(FALSE, &error); if (error) { g_warning("%s", error->message); g_error_free(error); } #endif }