{ "ToolsSendReceive", NULL, N_("mcen_me_inbox_sendandreceive") }, /* submenu */
{ "ToolsSendReceiveAll", NULL, N_("mcen_me_inbox_sendandreceive_all"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_send_receive) },
{ "ToolsSendReceiveCancelSending", NULL, N_("mcen_me_outbox_cancelsend"), NULL, NULL, NULL },
- { "ToolsContacts", NULL, N_("mcen_me_inbox_open_addressbook"), NULL, NULL, NULL },
+ { "ToolsContacts", NULL, N_("mcen_me_inbox_open_addressbook"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_open_addressbook) },
{ "ToolsAddToContacts", NULL, N_("mcen_me_viewer_addtocontacts"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_add_to_contacts) },
{ "ToolsSearchMessages", NULL, N_("mcen_me_inbox_search"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_search_messages) },
{ "ToolsHelp", NULL, N_("mcen_me_inbox_help"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_help) },
/* TODO: warning about error showing dialog */
}
}
+
+void
+modest_platform_show_addressbook (GtkWindow *parent_window)
+{
+ osso_return_t result = OSSO_ERROR;
+
+ result = osso_rpc_run_with_defaults (osso_context, "osso_addressbook", "top_application", NULL, DBUS_TYPE_INVALID);
+
+ if (result != OSSO_OK) {
+ /* TODO: warning about error showing dialog */
+ }
+}
**/
void modest_platform_show_search_messages (GtkWindow *parent_window);
+/**
+ * modest_platform_show_addressbook:
+ * @parent_window: window the dialog will be child of
+ *
+ * shows the addressbook
+ **/
+void modest_platform_show_addressbook (GtkWindow *parent_window);
+
G_END_DECLS
#endif /* __MODEST_PLATFORM_UTILS_H__ */
modest_platform_show_search_messages (GTK_WINDOW (window));
}
+void
+modest_ui_actions_on_open_addressbook (GtkAction *action, ModestWindow *win)
+{
+ g_return_if_fail (MODEST_IS_WINDOW (win));
+ modest_platform_show_addressbook (GTK_WINDOW (win));
+}
+
+
void
modest_ui_actions_on_toggle_find_in_page (GtkToggleAction *action,
ModestWindow *window)
void modest_ui_actions_on_select_contacts (GtkAction *action, ModestMsgEditWindow *win);
+void modest_ui_actions_on_open_addressbook (GtkAction *action, ModestWindow *win);
+
void modest_ui_actions_on_check_names (GtkAction *action, ModestMsgEditWindow *win);
void modest_ui_actions_on_new_msg (GtkAction *action, ModestWindow *win);