aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-03-27 22:18:51 +0200
committerGuido Günther <agx@sigxcpu.org>2011-03-27 22:18:51 +0200
commitdfccd34cadd786b0b14a578ddcfc1365b79e4804 (patch)
tree4ffce1a741fbc041dd168a2b84d021474d9843ac /src
parentNew upstream version 2.91.91 (diff)
downloadkrb5-auth-dialog-dfccd34cadd786b0b14a578ddcfc1365b79e4804.tar.gz
krb5-auth-dialog-dfccd34cadd786b0b14a578ddcfc1365b79e4804.tar.bz2
krb5-auth-dialog-dfccd34cadd786b0b14a578ddcfc1365b79e4804.zip
New upstream version 2.91.93
Diffstat (limited to 'src')
-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