aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-01-31 07:46:32 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-01-31 07:46:32 +0800
commit207303df9e2464c379d3b6e63f388d58332a428a (patch)
treed0f8ee7c35b07a598f4e42843ebe64974e76f0b0 /mail/mail-account-gui.c
parente456a9a26422dcc2dcaa7dbc1fd1e392b80bb95a (diff)
downloadgsoc2013-evolution-207303df9e2464c379d3b6e63f388d58332a428a.tar.gz
gsoc2013-evolution-207303df9e2464c379d3b6e63f388d58332a428a.tar.zst
gsoc2013-evolution-207303df9e2464c379d3b6e63f388d58332a428a.zip
Pass the parent window to mail_account_editor_new().
2002-01-30 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (mail_edit): Pass the parent window to mail_account_editor_new(). * mail-account-editor.c (mail_account_editor_new): Set the parent window here because construct() inadvertantly gtk_widget_show_all's the editor. * mail-account-gui.c (mail_account_gui_save): Use g_basename() rather than strrchr for '/' especially since the strrchr code wasn't doing any NULL checks. svn path=/trunk/; revision=15533
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r--mail/mail-account-gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c
index f28ee8eb7e..0eb381a708 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -1709,7 +1709,7 @@ mail_account_gui_save (MailAccountGui *gui)
} else {
/* assign defaults - the uri is unknown to us (probably pointed to an old source url) */
g_free (account->drafts_folder_name);
- account->drafts_folder_name = g_strdup (strrchr (default_drafts_folder_uri, '/') + 1);
+ account->drafts_folder_name = g_strdup (g_basename (default_drafts_folder_uri));
g_free (account->drafts_folder_uri);
account->drafts_folder_uri = g_strdup (default_drafts_folder_uri);
}
@@ -1728,7 +1728,7 @@ mail_account_gui_save (MailAccountGui *gui)
} else {
/* assign defaults - the uri is unknown to us (probably pointed to an old source url) */
g_free (account->sent_folder_name);
- account->sent_folder_name = g_strdup (strrchr (default_sent_folder_uri, '/') + 1);
+ account->sent_folder_name = g_strdup (g_basename (default_sent_folder_uri));
g_free (account->sent_folder_uri);
account->sent_folder_uri = g_strdup (default_sent_folder_uri);
}