[krb5-auth-dialog] Indicate empty ticket cache



commit 585d63c4c7cbe0276c7d343d1c57df9518fb3867
Author: Guido Günther <agx sigxcpu org>
Date:   Sat Mar 26 08:31:51 2011 +0100

    Indicate empty ticket cache

 src/ka-dialog.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/ka-dialog.c b/src/ka-dialog.c
index a681a88..5bc8678 100644
--- a/src/ka-dialog.c
+++ b/src/ka-dialog.c
@@ -312,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;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]