diff options
author | JP Rosevear <jpr@ximian.com> | 2001-10-10 22:37:14 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-10-10 22:37:14 +0800 |
commit | 1359335208dd9260b6b0541b692e534fa70bed7b (patch) | |
tree | 8d707e092305448cb3194b5b0a853c706b661da9 /calendar/gui/calendar-offline-handler.c | |
parent | a46bcc8084af31a5cb86b0b5305298e94250c5f9 (diff) | |
download | gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.gz gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.bz2 gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.lz gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.xz gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.tar.zst gsoc2013-evolution-1359335208dd9260b6b0541b692e534fa70bed7b.zip |
fix logic checks
2001-10-10 JP Rosevear <jpr@ximian.com>
* pcs/cal-factory.c (add_uri): fix logic checks
* gui/dialogs/event-editor.c (event_editor_init): init the
exisiting_org boolean
(set_menu_sens): base sensitivity on existing_org boolean
(event_editor_edit_comp): set exisiting_org boolean
* gui/dialogs/task-editor.c: same as above
* gui/calendar-offline-handler.c (add_connection): handle the
protocol or host being unknown
* cal-util/cal-component.c (cal_component_has_organizer):
implement
svn path=/trunk/; revision=13552
Diffstat (limited to 'calendar/gui/calendar-offline-handler.c')
-rw-r--r-- | calendar/gui/calendar-offline-handler.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/calendar/gui/calendar-offline-handler.c b/calendar/gui/calendar-offline-handler.c index 53db8f46e5..d1140e9123 100644 --- a/calendar/gui/calendar-offline-handler.c +++ b/calendar/gui/calendar-offline-handler.c @@ -54,8 +54,14 @@ add_connection (gpointer data, gpointer user_data) g_return_if_fail (uri != NULL); - list->_buffer[list->_length].hostName = CORBA_string_dup (uri->host); - list->_buffer[list->_length].type = CORBA_string_dup (uri->protocol); + if (uri->host != NULL) + list->_buffer[list->_length].hostName = CORBA_string_dup (uri->host); + else + list->_buffer[list->_length].hostName = CORBA_string_dup ("Unknown"); + if (uri->protocol != NULL) + list->_buffer[list->_length].type = CORBA_string_dup (uri->protocol); + else + list->_buffer[list->_length].type = CORBA_string_dup ("Unknown"); list->_length++; e_uri_free (uri); @@ -70,7 +76,7 @@ create_connection_list (CalendarOfflineHandler *offline_handler) priv = offline_handler->priv; - uris = cal_client_uri_list (priv->client, CAL_MODE_REMOTE); + uris = cal_client_uri_list (priv->client, CAL_MODE_REMOTE); list = GNOME_Evolution_ConnectionList__alloc (); list->_length = 0; |