aboutsummaryrefslogtreecommitdiff
path: root/src/ka-dialog.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-03-27 22:19:00 +0200
committerGuido Günther <agx@sigxcpu.org>2011-03-27 22:19:00 +0200
commitc9a35c48cf304fc5e8b6998ec4cfb04cb7c7a209 (patch)
treed8645a44c61ee0199745aeb642ddfb44634432d8 /src/ka-dialog.c
parentDocument changes and release 2.91.91-1 (diff)
parentNew upstream version 2.91.93 (diff)
downloadkrb5-auth-dialog-c9a35c48cf304fc5e8b6998ec4cfb04cb7c7a209.tar.gz
krb5-auth-dialog-c9a35c48cf304fc5e8b6998ec4cfb04cb7c7a209.tar.bz2
krb5-auth-dialog-c9a35c48cf304fc5e8b6998ec4cfb04cb7c7a209.zip
Merge commit 'upstream/2.91.93'
Diffstat (limited to 'src/ka-dialog.c')
-rw-r--r--src/ka-dialog.c21
1 files changed, 21 insertions, 0 deletions
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 <nm-client.h>
+
+#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;
bgstack15