[anjal] BUGFIX: Moblin Bugzilla #4712 - Passwords can't be saved.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] BUGFIX: Moblin Bugzilla #4712 - Passwords can't be saved.
- Date: Fri, 24 Jul 2009 09:00:02 +0000 (UTC)
commit 8dabe6d5a100fc8c993866b4c85b52d7f2f6e476
Author: Srinivasa Ragavan <sragavan novell com>
Date: Fri Jul 24 14:28:59 2009 +0530
BUGFIX: Moblin Bugzilla #4712 - Passwords can't be saved.
src/mail-shell.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/mail-shell.c b/src/mail-shell.c
index 901acc0..6bd7cfd 100644
--- a/src/mail-shell.c
+++ b/src/mail-shell.c
@@ -24,6 +24,7 @@
# include <config.h>
#endif
#include <glib/gi18n.h>
+#include <glib/gstdio.h>
#include <gconf/gconf-client.h>
#include "mail-shell.h"
#include "mail-view.h"
@@ -529,11 +530,16 @@ mail_shell_construct (MailShell *shell)
gtk_box_pack_end ((GtkBox *)priv->box, shell->mail_component->status_bar, FALSE, FALSE, 2);
if (ms_check_new()) {
MailViewChild *mc;
+ char *pdir = g_build_filename (g_get_home_dir(), ".gnome2_private", NULL);
gtk_widget_hide (((MailView *) shell->mail_component->mail_view)->folder_tree);
mc = mail_view_add_page ((MailView *)shell->mail_component->mail_view, MAIL_VIEW_ACCOUNT, NULL);
g_signal_connect (mc, "view-close", G_CALLBACK(ms_show_post_druid), shell);
setup_abooks ();
+ if (!g_file_test(pdir, G_FILE_TEST_EXISTS)) {
+ g_mkdir (pdir, 0700);
+ }
+ g_free (pdir);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]