aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2004-01-12 15:46:38 +0800
committerHans Petter <hansp@src.gnome.org>2004-01-12 15:46:38 +0800
commitea521f792ec66dcfa8c9272c60eb84f2b375a46d (patch)
tree366595cde6936bcc714966257c1a7094eec69727 /calendar/gui
parentd296c8c3470d334ebd5cdb52e10b4c70af9621ef (diff)
downloadgsoc2013-evolution-ea521f792ec66dcfa8c9272c60eb84f2b375a46d.tar.gz
gsoc2013-evolution-ea521f792ec66dcfa8c9272c60eb84f2b375a46d.tar.zst
gsoc2013-evolution-ea521f792ec66dcfa8c9272c60eb84f2b375a46d.zip
Only update dialog widgets if they exist.
2004-01-12 Hans Petter Jansson <hpj@ximian.com> * gui/dialogs/calendar-setup.c (source_to_dialog): Only update dialog widgets if they exist. svn path=/trunk/; revision=24169
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/calendar-setup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c
index b310bada53..da2f2f0b40 100644
--- a/calendar/gui/dialogs/calendar-setup.c
+++ b/calendar/gui/dialogs/calendar-setup.c
@@ -299,8 +299,10 @@ source_to_dialog (SourceDialog *source_dialog)
gtk_spin_button_set_value (GTK_SPIN_BUTTON (source_dialog->refresh_spin),
refresh_str ? atoi (refresh_str) : 30);
} else {
- gtk_entry_set_text (GTK_ENTRY (source_dialog->uri_entry), "");
- gtk_spin_button_set_value (GTK_SPIN_BUTTON (source_dialog->refresh_spin), 30);
+ if (source_dialog->uri_entry)
+ gtk_entry_set_text (GTK_ENTRY (source_dialog->uri_entry), "");
+ if (source_dialog->refresh_spin)
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (source_dialog->refresh_spin), 30);
}
g_signal_handlers_unblock_matched (source_dialog->name_entry, G_SIGNAL_MATCH_DATA,