From 417ddaf0d4d6e5f5ee2ce1f9be55f64a6b204a83 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Mon, 22 Dec 2008 11:33:05 +0000 Subject: [PATCH] Refactor on new account to ui actions pmo-trunk-r6962 --- src/hildon2/modest-accounts-window.c | 9 +-------- src/modest-ui-actions.c | 7 +++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/hildon2/modest-accounts-window.c b/src/hildon2/modest-accounts-window.c index 65c9eb7..fddce68 100644 --- a/src/hildon2/modest-accounts-window.c +++ b/src/hildon2/modest-accounts-window.c @@ -335,13 +335,6 @@ static void add_to_menu (ModestAccountsWindow *self, hildon_app_menu_append (menu, GTK_BUTTON (button)); } -static void -on_new_account (GtkAction *action, - ModestWindow *window) -{ - modest_ui_actions_run_account_setup_wizard (window); -} - static void setup_menu (ModestAccountsWindow *self, ModestDimmingRulesGroup *group) { ModestAccountsWindowPrivate *priv = NULL; @@ -354,7 +347,7 @@ static void setup_menu (ModestAccountsWindow *self, ModestDimmingRulesGroup *gro /* Settings menu buttons */ add_to_menu (self, HILDON_APP_MENU (priv->app_menu), _("TODO: new account"), - G_CALLBACK (on_new_account), + G_CALLBACK (modest_ui_actions_on_new_account), group, NULL); add_to_menu (self, HILDON_APP_MENU (priv->app_menu), _("TODO: edit accounts"), G_CALLBACK (modest_ui_actions_on_accounts), diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 518816e..1f4b5c5 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -684,6 +684,13 @@ modest_ui_actions_on_add_to_contacts (GtkAction *action, ModestWindow *win) } void +modest_ui_actions_on_new_account (GtkAction *action, + ModestWindow *window) +{ + modest_ui_actions_run_account_setup_wizard (window); +} + +void modest_ui_actions_on_accounts (GtkAction *action, ModestWindow *win) { -- 1.7.9.5