aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2001-01-18 06:49:31 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-18 06:49:31 +0800
commitb8eb8fa0e6adfae1655d5738d264b63455e560ea (patch)
treedadc5135c1c6ecbb894b907129233326e4a8a1a6
parent1a2b409d707b19f29d896e44116b6bd31903c809 (diff)
downloadgsoc2013-evolution-b8eb8fa0e6adfae1655d5738d264b63455e560ea.tar
gsoc2013-evolution-b8eb8fa0e6adfae1655d5738d264b63455e560ea.tar.gz
gsoc2013-evolution-b8eb8fa0e6adfae1655d5738d264b63455e560ea.tar.bz2
gsoc2013-evolution-b8eb8fa0e6adfae1655d5738d264b63455e560ea.tar.lz
gsoc2013-evolution-b8eb8fa0e6adfae1655d5738d264b63455e560ea.tar.xz
gsoc2013-evolution-b8eb8fa0e6adfae1655d5738d264b63455e560ea.tar.zst
gsoc2013-evolution-b8eb8fa0e6adfae1655d5738d264b63455e560ea.zip
get rid of some gtk warnings.
ugh svn path=/trunk/; revision=7602
-rw-r--r--mail/mail-account-editor.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/mail/mail-account-editor.c b/mail/mail-account-editor.c
index f3320e2592..dc5201dc74 100644
--- a/mail/mail-account-editor.c
+++ b/mail/mail-account-editor.c
@@ -221,7 +221,7 @@ apply_changes (MailAccountEditor *editor)
/* check to make sure the source works */
if (source_url) {
- if (!mail_config_check_service (source_url, CAMEL_PROVIDER_STORE, NULL)) {
+ if (mail_config_check_service (source_url, CAMEL_PROVIDER_STORE, NULL)) {
/* set the new source url */
g_free (account->source->url);
account->source->url = camel_url_to_string (source_url, FALSE);
@@ -238,7 +238,7 @@ apply_changes (MailAccountEditor *editor)
}
/* check to make sure the transport works */
- if (!mail_config_check_service (transport_url, CAMEL_PROVIDER_TRANSPORT, NULL)) {
+ if (mail_config_check_service (transport_url, CAMEL_PROVIDER_TRANSPORT, NULL)) {
/* set the new transport url */
g_free (account->transport->url);
account->transport->url = camel_url_to_string (transport_url, FALSE);
@@ -661,12 +661,16 @@ construct (MailAccountEditor *editor, const MailConfigAccount *account)
gtk_entry_set_text (editor->email, account->id->address);
gtk_signal_connect (GTK_OBJECT (editor->email), "changed", entry_changed, editor);
editor->reply_to = GTK_ENTRY (glade_xml_get_widget (gui, "txtReplyTo"));
- gtk_entry_set_text (editor->reply_to, account->id->reply_to ? account->id->reply_to : "");
+ if (editor->reply_to)
+ gtk_entry_set_text (editor->reply_to, account->id->reply_to ? account->id->reply_to : "");
editor->organization = GTK_ENTRY (glade_xml_get_widget (gui, "txtOrganization"));
- gtk_entry_set_text (editor->organization, account->id->organization);
+ if (editor->organization)
+ gtk_entry_set_text (editor->organization, account->id->organization);
editor->signature = GNOME_FILE_ENTRY (glade_xml_get_widget (gui, "fileSignature"));
- entry = gnome_file_entry_gtk_entry (editor->signature);
- gtk_entry_set_text (GTK_ENTRY (entry), account->id->signature);
+ if (editor->signature) {
+ entry = gnome_file_entry_gtk_entry (editor->signature);
+ gtk_entry_set_text (GTK_ENTRY (entry), account->id->signature);
+ }
/* Servers */
if (account->source->url)