From 27053b1befc8380404f76c2c03c08eb3a7b0692d Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 15 Jun 2009 18:18:33 +0200 Subject: Imported Upstream version 0.11 --- preferences/Makefile.am | 2 + preferences/Makefile.in | 25 ++++++++- preferences/krb5-auth-dialog-preferences.c | 32 ++---------- .../krb5-auth-dialog-preferences.desktop.in | 4 +- preferences/krb5-auth-dialog-preferences.xml | 61 +++++++++++++--------- 5 files changed, 66 insertions(+), 58 deletions(-) (limited to 'preferences') diff --git a/preferences/Makefile.am b/preferences/Makefile.am index 56d93cb..48c9be0 100644 --- a/preferences/Makefile.am +++ b/preferences/Makefile.am @@ -6,6 +6,8 @@ krb5_auth_dialog_preferences_SOURCES = \ krb5-auth-dialog-preferences.c \ $(top_srcdir)/src/krb5-auth-gconf-tools.c \ $(top_srcdir)/src/krb5-auth-gconf-tools.h \ + $(top_srcdir)/src/krb5-auth-tools.c \ + $(top_srcdir)/src/krb5-auth-tools.h \ $(NULL) krb5_auth_dialog_preferences_CPPFLAGS = \ diff --git a/preferences/Makefile.in b/preferences/Makefile.in index decfae8..4445e9e 100644 --- a/preferences/Makefile.in +++ b/preferences/Makefile.in @@ -37,7 +37,8 @@ subdir = preferences DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4/compiler-flags.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/compiler-flags.m4 \ + $(top_srcdir)/m4/gnome-doc-utils.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs @@ -50,6 +51,7 @@ PROGRAMS = $(bin_PROGRAMS) am__objects_1 = am_krb5_auth_dialog_preferences_OBJECTS = krb5_auth_dialog_preferences-krb5-auth-dialog-preferences.$(OBJEXT) \ krb5_auth_dialog_preferences-krb5-auth-gconf-tools.$(OBJEXT) \ + krb5_auth_dialog_preferences-krb5-auth-tools.$(OBJEXT) \ $(am__objects_1) krb5_auth_dialog_preferences_OBJECTS = \ $(am_krb5_auth_dialog_preferences_OBJECTS) @@ -109,6 +111,8 @@ DBUS_CFLAGS = @DBUS_CFLAGS@ DBUS_LIBS = @DBUS_LIBS@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ +DISTCHECK_CONFIGURE_FLAGS = @DISTCHECK_CONFIGURE_FLAGS@ +DOC_USER_FORMATS = @DOC_USER_FORMATS@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -132,6 +136,7 @@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ +HELP_DIR = @HELP_DIR@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -173,6 +178,7 @@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ +OMF_DIR = @OMF_DIR@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ @@ -259,6 +265,8 @@ krb5_auth_dialog_preferences_SOURCES = \ krb5-auth-dialog-preferences.c \ $(top_srcdir)/src/krb5-auth-gconf-tools.c \ $(top_srcdir)/src/krb5-auth-gconf-tools.h \ + $(top_srcdir)/src/krb5-auth-tools.c \ + $(top_srcdir)/src/krb5-auth-tools.h \ $(NULL) krb5_auth_dialog_preferences_CPPFLAGS = \ @@ -368,6 +376,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krb5_auth_dialog_preferences-krb5-auth-dialog-preferences.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krb5_auth_dialog_preferences-krb5-auth-gconf-tools.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krb5_auth_dialog_preferences-krb5-auth-tools.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @@ -418,6 +427,20 @@ krb5_auth_dialog_preferences-krb5-auth-gconf-tools.obj: $(top_srcdir)/src/krb5-a @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(krb5_auth_dialog_preferences_CPPFLAGS) $(CPPFLAGS) $(krb5_auth_dialog_preferences_CFLAGS) $(CFLAGS) -c -o krb5_auth_dialog_preferences-krb5-auth-gconf-tools.obj `if test -f '$(top_srcdir)/src/krb5-auth-gconf-tools.c'; then $(CYGPATH_W) '$(top_srcdir)/src/krb5-auth-gconf-tools.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/krb5-auth-gconf-tools.c'; fi` +krb5_auth_dialog_preferences-krb5-auth-tools.o: $(top_srcdir)/src/krb5-auth-tools.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(krb5_auth_dialog_preferences_CPPFLAGS) $(CPPFLAGS) $(krb5_auth_dialog_preferences_CFLAGS) $(CFLAGS) -MT krb5_auth_dialog_preferences-krb5-auth-tools.o -MD -MP -MF $(DEPDIR)/krb5_auth_dialog_preferences-krb5-auth-tools.Tpo -c -o krb5_auth_dialog_preferences-krb5-auth-tools.o `test -f '$(top_srcdir)/src/krb5-auth-tools.c' || echo '$(srcdir)/'`$(top_srcdir)/src/krb5-auth-tools.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/krb5_auth_dialog_preferences-krb5-auth-tools.Tpo $(DEPDIR)/krb5_auth_dialog_preferences-krb5-auth-tools.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/src/krb5-auth-tools.c' object='krb5_auth_dialog_preferences-krb5-auth-tools.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(krb5_auth_dialog_preferences_CPPFLAGS) $(CPPFLAGS) $(krb5_auth_dialog_preferences_CFLAGS) $(CFLAGS) -c -o krb5_auth_dialog_preferences-krb5-auth-tools.o `test -f '$(top_srcdir)/src/krb5-auth-tools.c' || echo '$(srcdir)/'`$(top_srcdir)/src/krb5-auth-tools.c + +krb5_auth_dialog_preferences-krb5-auth-tools.obj: $(top_srcdir)/src/krb5-auth-tools.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(krb5_auth_dialog_preferences_CPPFLAGS) $(CPPFLAGS) $(krb5_auth_dialog_preferences_CFLAGS) $(CFLAGS) -MT krb5_auth_dialog_preferences-krb5-auth-tools.obj -MD -MP -MF $(DEPDIR)/krb5_auth_dialog_preferences-krb5-auth-tools.Tpo -c -o krb5_auth_dialog_preferences-krb5-auth-tools.obj `if test -f '$(top_srcdir)/src/krb5-auth-tools.c'; then $(CYGPATH_W) '$(top_srcdir)/src/krb5-auth-tools.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/krb5-auth-tools.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/krb5_auth_dialog_preferences-krb5-auth-tools.Tpo $(DEPDIR)/krb5_auth_dialog_preferences-krb5-auth-tools.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/src/krb5-auth-tools.c' object='krb5_auth_dialog_preferences-krb5-auth-tools.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(krb5_auth_dialog_preferences_CPPFLAGS) $(CPPFLAGS) $(krb5_auth_dialog_preferences_CFLAGS) $(CFLAGS) -c -o krb5_auth_dialog_preferences-krb5-auth-tools.obj `if test -f '$(top_srcdir)/src/krb5-auth-tools.c'; then $(CYGPATH_W) '$(top_srcdir)/src/krb5-auth-tools.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/src/krb5-auth-tools.c'; fi` + mostlyclean-libtool: -rm -f *.lo diff --git a/preferences/krb5-auth-dialog-preferences.c b/preferences/krb5-auth-dialog-preferences.c index c0d75c6..4edd565 100644 --- a/preferences/krb5-auth-dialog-preferences.c +++ b/preferences/krb5-auth-dialog-preferences.c @@ -34,6 +34,7 @@ #include #include "krb5-auth-gconf-tools.h" +#include "krb5-auth-tools.h" #define N_LISTENERS 8 @@ -560,40 +561,13 @@ ka_preferences_dialog_response (GtkWidget *widget, int response, KaPreferencesDialog *dialog) { - GError *error = NULL; - if (response != GTK_RESPONSE_HELP) { gtk_widget_destroy (widget); return; } -#if GTK_CHECK_VERSION(2, 14, 0) - gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (dialog->dialog)), - "ghelp:krb5-auth-dialog#preferences", - gtk_get_current_event_time (), &error); -#else - g_warning("gtk_show_uri unavailable"); -#endif - - if (error) { - GtkWidget *message_dialog; - - - message_dialog = gtk_message_dialog_new (GTK_WINDOW (dialog->dialog), - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR, - GTK_BUTTONS_CLOSE, - _("There was an error displaying help:\n%s"), - error->message); - gtk_window_set_resizable (GTK_WINDOW (message_dialog), FALSE); - - g_signal_connect (message_dialog, "response", - G_CALLBACK (gtk_widget_destroy), - NULL); - - gtk_widget_show (message_dialog); - g_error_free (error); - } + ka_show_help (gtk_window_get_screen (GTK_WINDOW (dialog->dialog)), + "#preferences", GTK_WINDOW(dialog->dialog)); } diff --git a/preferences/krb5-auth-dialog-preferences.desktop.in b/preferences/krb5-auth-dialog-preferences.desktop.in index d87e1e7..954a69e 100644 --- a/preferences/krb5-auth-dialog-preferences.desktop.in +++ b/preferences/krb5-auth-dialog-preferences.desktop.in @@ -1,8 +1,8 @@ [Desktop Entry] _Name=Network Authentication -_Comment=Set your Kerberos network authenticaion preferences +_Comment=Set your Kerberos network authentication preferences Exec=krb5-auth-dialog-preferences -Icon=gtk-dialog-authentication +Icon=krb-valid-ticket Terminal=false Type=Application StartupNotify=true diff --git a/preferences/krb5-auth-dialog-preferences.xml b/preferences/krb5-auth-dialog-preferences.xml index 5bb48bd..6ac12bc 100644 --- a/preferences/krb5-auth-dialog-preferences.xml +++ b/preferences/krb5-auth-dialog-preferences.xml @@ -6,7 +6,7 @@ 5 Kerberos Authentication Configuration center-on-parent - gtk-dialog-authentication + krb-valid-ticket dialog False @@ -30,8 +30,10 @@ True 0 - <b>Kerberos User</b> - True + Kerberos User + + + False @@ -47,7 +49,7 @@ True 0 - gtk-dialog-authentication + krb-valid-ticket 6 @@ -79,7 +81,7 @@ True - + False @@ -106,7 +108,7 @@ True 0 - PKINIT userid: + PKINIT userid: False @@ -121,7 +123,7 @@ True - + False @@ -149,7 +151,7 @@ True 0 - PKINT anchors: + PKINIT anchors: False @@ -164,7 +166,7 @@ True - + False @@ -212,8 +214,10 @@ True 0 - <b>Ticket Options</b> - True + Ticket Options + + + False @@ -258,7 +262,7 @@ True - + False @@ -292,7 +296,7 @@ True - + False @@ -326,7 +330,7 @@ True - + False @@ -394,8 +398,10 @@ True 0 - <b>Notifications</b> - True + Notifications + + + False @@ -427,7 +433,7 @@ True - + False @@ -438,7 +444,7 @@ True - Warn + Warn False @@ -450,7 +456,7 @@ True True - Send notification about ticket expiry that many minutes before it finally expires. + Send notification about ticket expiry that many minutes before it finally expires True adjustment1 @@ -463,7 +469,7 @@ True - minutes before expiry + minutes before expiry False @@ -497,8 +503,10 @@ True 0 - <b>Appearance</b> - True + Appearance + + + False @@ -534,7 +542,7 @@ True - + False @@ -548,7 +556,7 @@ True True False - If checked, display the tray icon in the status bar. + If checked, display the tray icon in the status bar True @@ -607,7 +615,8 @@ end - gtk-help + gtk-help + True True True True @@ -620,7 +629,7 @@ - gtk-close + gtk-close True True True -- cgit