* Added support to reload a msg when the device gets online
[modest] / src / gtk / modest-account-assistant.c
index ddd89c9..0f26e72 100644 (file)
@@ -27,6 +27,7 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include <glib/gi18n.h>
 #include "modest-account-assistant.h"
 #include "modest-store-widget.h"
 #include "modest-transport-widget.h"
@@ -86,6 +87,7 @@ modest_account_assistant_get_type (void)
                        sizeof(ModestAccountAssistant),
                        1,              /* n_preallocs */
                        (GInstanceInitFunc) modest_account_assistant_init,
+                       NULL
                };
                my_type = g_type_register_static (GTK_TYPE_ASSISTANT,
                                                  "ModestAccountAssistant",
@@ -552,6 +554,9 @@ on_apply (ModestAccountAssistant *self, gpointer user_data)
                                       get_email(self), FALSE, NULL);
        
        g_free (store_name);
+
+       /* Close the assistant */
+       gtk_widget_destroy (GTK_WIDGET(self));
 }