[krb5-auth-dialog] set application name in error dialog
- From: Guido Günther <guidog src gnome org>
- To: svn-commits-list gnome org
- Subject: [krb5-auth-dialog] set application name in error dialog
- Date: Tue, 2 Jun 2009 17:03:43 -0400 (EDT)
commit 141b1a264f5561ab4baa3ce25fb17fa0176e3a1c
Author: Guido Günther <agx sigxcpu org>
Date: Mon Jun 1 22:19:15 2009 +0200
set application name in error dialog
---
ChangeLog | 5 +++++
src/krb5-auth-dialog.c | 12 +++++++++---
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d0dc297..b36941f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jun 1 23:12:42 CEST 2009 Guido Günther <agx sigxcpu org>
+
+ * src/krb5-auth-dialog (ka_error_dialog): set application name
+ in error dialog
+
Mon Jun 1 20:05:17 CEST 2009 Guido Günther <agx sigxcpu org>
enable help in applet and prefs dialog
diff --git a/src/krb5-auth-dialog.c b/src/krb5-auth-dialog.c
index 56a3a8c..32f7276 100644
--- a/src/krb5-auth-dialog.c
+++ b/src/krb5-auth-dialog.c
@@ -40,6 +40,7 @@
#include "krb5-auth-applet.h"
#include "krb5-auth-pwdialog.h"
#include "krb5-auth-dbus.h"
+#include "krb5-auth-tools.h"
#ifdef ENABLE_NETWORK_MANAGER
#include <libnm_glib.h>
@@ -49,6 +50,8 @@
# include <hx509_err.h>
#endif
+#define KA_NAME _("Network Authentication")
+
static krb5_context kcontext;
static krb5_principal kprincipal;
static krb5_timestamp creds_expiry;
@@ -804,12 +807,15 @@ ka_destroy_cache (GtkMenuItem *menuitem G_GNUC_UNUSED,
static void
ka_error_dialog(int err)
{
- const char* msg = get_error_message(kcontext, err);
+ const char *msg = get_error_message(kcontext, err);
GtkWidget *dialog = gtk_message_dialog_new (NULL,
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
- _("Couldn't acquire kerberos ticket: '%s'"), _(msg));
+ "%s", KA_NAME);
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+ _("Couldn't acquire kerberos ticket: '%s'"),
+ _(msg));
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
@@ -976,7 +982,7 @@ main (int argc, char *argv[])
always_run = TRUE;
}
if (using_krb5 () || always_run) {
- g_set_application_name (_("Network Authentication"));
+ g_set_application_name (KA_NAME);
xml = gtk_builder_new();
g_assert(gtk_builder_add_from_file(xml, KA_DATA_DIR G_DIR_SEPARATOR_S
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]