aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-accounts.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-12-11 04:09:37 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-12-11 04:09:37 +0800
commit63ce54907cd9f30f046e90be07ead0346ffe7154 (patch)
treeb7f6499cab389ca0e9eeed9b1d47a7046b77bfad /mail/mail-accounts.c
parent4996c3207568837e3d56fab16fb29719d3542d85 (diff)
downloadgsoc2013-evolution-63ce54907cd9f30f046e90be07ead0346ffe7154.tar.gz
gsoc2013-evolution-63ce54907cd9f30f046e90be07ead0346ffe7154.tar.zst
gsoc2013-evolution-63ce54907cd9f30f046e90be07ead0346ffe7154.zip
Make sure that the message subject is non-NULL beforetrying to base a
2001-12-04 Jeffrey Stedfast <fejj@ximian.com> * mail-autofilter.c (rule_from_message): Make sure that the message subject is non-NULL beforetrying to base a vfolder rule off it. Fixes bug #16284. 2001-12-07 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (construct): Connect to the dialog's "destroy" event and close any druids/editors that may be open when that signal is caught. Fixes bug #16501. * mail-vfolder.c (vfolder_edit): Set the window title to "Virtual Folders". Fixes bug #16695. svn path=/trunk/; revision=14966
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r--mail/mail-accounts.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c
index 5d7945c614..2b386e1b11 100644
--- a/mail/mail-accounts.c
+++ b/mail/mail-accounts.c
@@ -764,6 +764,21 @@ charset_menu_deactivate (GtkWidget *menu, gpointer data)
}
static void
+dialog_destroy (GtkWidget *dialog, gpointer user_data)
+{
+ if (druid)
+ gtk_widget_destroy (GTK_WIDGET (druid));
+
+ if (editor)
+ gtk_widget_destroy (GTK_WIDGET (editor));
+
+#ifdef ENABLE_NNTP
+ if (news_editor)
+ gtk_widget_destroy (GTK_WIDGET (news_editor));
+#endif
+}
+
+static void
construct (MailAccountsDialog *dialog)
{
GladeXML *gui;
@@ -783,7 +798,10 @@ construct (MailAccountsDialog *dialog)
gtk_window_set_title (GTK_WINDOW (dialog), _("Mail Settings"));
gtk_window_set_policy (GTK_WINDOW (dialog), FALSE, TRUE, TRUE);
gtk_window_set_default_size (GTK_WINDOW (dialog), 400, 300);
- gnome_dialog_append_button (GNOME_DIALOG (dialog), GNOME_STOCK_BUTTON_CLOSE);
+ gnome_dialog_append_button (GNOME_DIALOG (dialog), GNOME_STOCK_BUTTON_OK);
+
+ gtk_signal_connect (GTK_OBJECT (dialog), "destroy",
+ GTK_SIGNAL_FUNC (dialog_destroy), dialog);
dialog->mail_accounts = GTK_CLIST (glade_xml_get_widget (gui, "clistAccounts"));
gtk_signal_connect (GTK_OBJECT (dialog->mail_accounts), "select-row",
/openldap24-*:tijl2014-07-251-1/+1 * Bump more ports that depend on libsqlite3.so:tijl2014-07-051-1/+1 * mail/gmime2 mail/gmime2-sharp:tijl2014-05-302-28/+12 * - Convert to new LIB_DEPENDS format [1]pawel2014-02-262-49/+19 * - Support STAGEDIRsunpoet2013-11-152-17/+22 * Fix pkg name collisionsbapt2013-11-071-0/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Convert to USES=pkgconfigbdrewery2013-05-091-1/+2 * - use multiple choice feature of options framework for database backendrm2012-10-121-7/+5 * - convert to optionsngrm2012-10-112-24/+17 * Move the rc.d scripts of the form *.sh.in to *.indougb2012-08-065-1/+1 * - Fix build with clangmiwi2012-05-251-0/+11 * - update to 2.2.18rm2012-03-203-9/+11 * Pass maintainership to new volunteer.rm2012-03-191-1/+1 * Add LATEST_LINK and disconnect mail/dbmail22 from the build until I finish withrm2012-03-171-0/+1 * In the rc.d scripts, change assignments to rcvar to use thedougb2012-01-144-4/+4 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-1/+1 * Update to 2.2.17wxs2011-04-062-5/+3 * Bump PORTREVISION for ports linking to default libmysqlclient.ale2011-03-191-0/+1 * Sync to new bsd.autotools.mkade2010-12-041-1/+1 * - Update to 2.2.16sahil2010-08-082-5/+4