From dfccd34cadd786b0b14a578ddcfc1365b79e4804 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sun, 27 Mar 2011 22:18:51 +0200 Subject: New upstream version 2.91.93 --- src/ka-dialog.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src') diff --git a/src/ka-dialog.c b/src/ka-dialog.c index 5b11621..5bc8678 100644 --- a/src/ka-dialog.c +++ b/src/ka-dialog.c @@ -44,6 +44,10 @@ #ifdef ENABLE_NETWORK_MANAGER #include + +#if !defined(NM_CHECK_VERSION) +#define NM_CHECK_VERSION(x,y,z) 0 +#endif #endif #ifdef HAVE_HX509_ERR_H @@ -308,6 +312,14 @@ ka_get_service_tickets (GtkListStore * tickets) /* if the file doesn't exist, it's not an error if we can't * parse it */ if (!g_file_test (ka_ccache_filename (), G_FILE_TEST_EXISTS)) + gtk_list_store_append (tickets, &iter); + gtk_list_store_set (tickets, &iter, + PRINCIPAL_COLUMN, _("Your ticket cache is currently empty"), + START_TIME_COLUMN, 0, + END_TIME_COLUMN, 0, + FORWARDABLE_COLUMN, FALSE, + RENEWABLE_COLUMN, FALSE, + PROXIABLE_COLUMN, FALSE, -1); retval = TRUE; goto out; } @@ -471,11 +483,20 @@ ka_nm_client_state_changed_cb (NMClient * client, KA_DEBUG ("Network state: %d", state); /* do nothing */ break; +#if NM_CHECK_VERSION(0,8,992) + case NM_STATE_DISCONNECTING: +#endif case NM_STATE_DISCONNECTED: KA_DEBUG ("Network disconnected"); *online = FALSE; break; +#if NM_CHECK_VERSION(0,8,992) + case NM_STATE_CONNECTED_LOCAL: + case NM_STATE_CONNECTED_SITE: + case NM_STATE_CONNECTED_GLOBAL: +#else case NM_STATE_CONNECTED: +#endif KA_DEBUG ("Network connected"); *online = TRUE; break; -- cgit