aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-editor.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-editor.c
parente456a9a26422dcc2dcaa7dbc1fd1e392b80bb95a (diff)
downloadgsoc2013-evolution-207303df9e2464c379d3b6e63f388d58332a428a.tar
gsoc2013-evolution-207303df9e2464c379d3b6e63f388d58332a428a.tar.gz
gsoc2013-evolution-207303df9e2464c379d3b6e63f388d58332a428a.tar.bz2
gsoc2013-evolution-207303df9e2464c379d3b6e63f388d58332a428a.tar.lz
gsoc2013-evolution-207303df9e2464c379d3b6e63f388d58332a428a.tar.xz
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-editor.c')
-rw-r--r--mail/mail-account-editor.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/mail-account-editor.c b/mail/mail-account-editor.c
index 893cdd7426..166c3f1df9 100644
--- a/mail/mail-account-editor.c
+++ b/mail/mail-account-editor.c
@@ -48,7 +48,7 @@ GtkType
mail_account_editor_get_type ()
{
static GtkType type = 0;
-
+
if (!type) {
GtkTypeInfo type_info = {
"MailAccountEditor",
@@ -59,10 +59,10 @@ mail_account_editor_get_type ()
(GtkArgSetFunc) NULL,
(GtkArgGetFunc) NULL
};
-
+
type = gtk_type_unique (gnome_dialog_get_type (), &type_info);
}
-
+
return type;
}
@@ -132,7 +132,7 @@ static void
ok_clicked (GtkWidget *widget, gpointer data)
{
MailAccountEditor *editor = data;
-
+
if (apply_changes (editor))
gtk_widget_destroy (GTK_WIDGET (editor));
}
@@ -141,7 +141,7 @@ static void
cancel_clicked (GtkWidget *widget, gpointer data)
{
MailAccountEditor *editor = data;
-
+
gtk_widget_destroy (GTK_WIDGET (editor));
}
@@ -182,11 +182,12 @@ construct (MailAccountEditor *editor, MailConfigAccount *account)
}
MailAccountEditor *
-mail_account_editor_new (MailConfigAccount *account)
+mail_account_editor_new (MailConfigAccount *account, GtkWindow *parent)
{
MailAccountEditor *new;
new = (MailAccountEditor *) gtk_type_new (mail_account_editor_get_type ());
+ gnome_dialog_set_parent (GNOME_DIALOG (new), parent);
construct (new, account);
return new;