Add menu actions for accounts window
authorJose Dapena Paz <jdapena@igalia.com>
Wed, 17 Dec 2008 10:55:19 +0000 (10:55 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 17 Dec 2008 10:55:19 +0000 (10:55 +0000)
pmo-drop-split-view-r6907

src/hildon2/modest-accounts-window.c

index 7c7690a..1b61c57 100644 (file)
@@ -305,6 +305,13 @@ 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)
 {
        ModestAccountsWindowPrivate *priv = NULL;
@@ -317,12 +324,20 @@ static void setup_menu (ModestAccountsWindow *self)
        app_menu = hildon_app_menu_new ();
 
        /* Settings menu buttons */
+       add_to_menu (self, HILDON_APP_MENU (app_menu), _("TODO: new account"),
+                    G_CALLBACK (on_new_account));
+       add_to_menu (self, HILDON_APP_MENU (app_menu), _("TODO: edit accounts"),
+                    G_CALLBACK (modest_ui_actions_on_accounts));
        add_to_menu (self, HILDON_APP_MENU (app_menu), _("mcen_me_inbox_options"),
                     G_CALLBACK (modest_ui_actions_on_settings));
-       add_to_menu (self, HILDON_APP_MENU (app_menu), _("mcen_me_inbox_accounts"),
-                    G_CALLBACK (modest_ui_actions_on_accounts));
        add_to_menu (self, HILDON_APP_MENU (app_menu), _("mcen_me_inbox_globalsmtpservers"),
                     G_CALLBACK (modest_ui_actions_on_smtp_servers));
+       add_to_menu (self, HILDON_APP_MENU (app_menu), _("mcen_me_viewer_newemail"),
+                    G_CALLBACK (modest_ui_actions_on_new_msg));
+       add_to_menu (self, HILDON_APP_MENU (app_menu), _("mcen_me_inbox_sendandreceive"),
+                    G_CALLBACK (modest_ui_actions_on_send_receive));
+       add_to_menu (self, HILDON_APP_MENU (app_menu), _("mcen_me_outbox_cancelsend"),
+                    G_CALLBACK (modest_ui_actions_cancel_send));
        
        hildon_stackable_window_set_main_menu (HILDON_STACKABLE_WINDOW (self), 
                                               HILDON_APP_MENU (app_menu));