* check_folder-transfer.c:
[modest] / src / modest-main.c
index df5de2c..69e6424 100644 (file)
@@ -181,15 +181,13 @@ start_ui (const gchar* mailto, const gchar *cc, const gchar *bcc,
 /*                                             subject,    /\* subject *\/ */
 /*                                             body,    /\* body *\/ */
 /*                                             NULL);   /\* attachments *\/ */
-       } else
-#ifndef OLD_UI_STUFF
-       win = modest_ui_main_window (modest_ui);
-       gtk_widget_show (win);
-#else
-       modest_ui_show_main_window (modest_ui);
-#endif
-       gtk_main();
+       } else 
+               win = modest_ui_main_window (modest_ui);
        
+       if (win) {
+               gtk_widget_show (win);
+               gtk_main();
+       }       
 cleanup:
        if (modest_ui)
                g_object_unref (modest_ui);
@@ -208,10 +206,8 @@ hildon_init ()
                osso_initialize(PACKAGE, PACKAGE_VERSION,
                                TRUE, NULL);    
        if (!osso_context) {
-               g_printerr ("modest: failed to aquire osso context, exiting\n");
-
+               g_printerr ("modest: failed to acquire osso context\n");
                return FALSE;
-               
        }
        
 #endif /* MODEST_PLATFORM_ID==2 */