aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-offline-handler.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-05-05 01:59:35 +0800
committerDan Winship <danw@src.gnome.org>2001-05-05 01:59:35 +0800
commit5eb2d61037720ee2c39fab697f28d02339498c47 (patch)
treea207dfb64d61db5a3e1ff3a5ae2eee421c4f543b /shell/e-shell-offline-handler.c
parent7e617f37b8bd3ebd626e1161f77651b6e81fd88d (diff)
downloadgsoc2013-evolution-5eb2d61037720ee2c39fab697f28d02339498c47.tar
gsoc2013-evolution-5eb2d61037720ee2c39fab697f28d02339498c47.tar.gz
gsoc2013-evolution-5eb2d61037720ee2c39fab697f28d02339498c47.tar.bz2
gsoc2013-evolution-5eb2d61037720ee2c39fab697f28d02339498c47.tar.lz
gsoc2013-evolution-5eb2d61037720ee2c39fab697f28d02339498c47.tar.xz
gsoc2013-evolution-5eb2d61037720ee2c39fab697f28d02339498c47.tar.zst
gsoc2013-evolution-5eb2d61037720ee2c39fab697f28d02339498c47.zip
Use type instead of portNumber.
* e-shell-offline-handler.c (update_dialog_clist_hash_foreach, (duplicate_connection_list): Use type instead of portNumber. (e_shell_offline_handler_put_components_offline): Fix the logic of when to show the connection dialog here. (Show it when there *are* connections, not when there aren't.) * Evolution-Offline.idl: Have a "string type" instead of "short portNumber" in Connection. svn path=/trunk/; revision=9676
Diffstat (limited to 'shell/e-shell-offline-handler.c')
-rw-r--r--shell/e-shell-offline-handler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/e-shell-offline-handler.c b/shell/e-shell-offline-handler.c
index 929880e0e2..17fd6a6285 100644
--- a/shell/e-shell-offline-handler.c
+++ b/shell/e-shell-offline-handler.c
@@ -152,8 +152,8 @@ duplicate_connection_list (const GNOME_Evolution_ConnectionList *source)
copy->_buffer = CORBA_sequence_GNOME_Evolution_Connection_allocbuf (copy->_maximum);
for (i = 0; i < source->_length; i++) {
- copy->_buffer[i].hostName = CORBA_string_dup (source->_buffer[i].hostName);
- copy->_buffer[i].portNumber = source->_buffer[i].portNumber;
+ copy->_buffer[i].hostName = CORBA_string_dup (source->_buffer[i].hostName);
+ copy->_buffer[i].type = CORBA_string_dup (source->_buffer[i].type);
}
return copy;
@@ -508,7 +508,7 @@ update_dialog_clist_hash_foreach (void *key,
char *columns[3];
columns[0] = p->hostName;
- columns[1] = g_strdup_printf ("%d", p->portNumber);
+ columns[1] = p->type;
columns[2] = NULL;
gtk_clist_prepend (GTK_CLIST (clist), columns);
@@ -801,7 +801,7 @@ e_shell_offline_handler_put_components_offline (EShellOfflineHandler *offline_ha
return;
}
- if (priv->num_total_connections == 0 && priv->parent_shell_view != NULL)
+ if (priv->num_total_connections > 0 && priv->parent_shell_view != NULL)
pop_up_confirmation_dialog (offline_handler);
else
finalize_offline (offline_handler);