diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-06-15 18:18:33 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-06-15 18:18:33 +0200 |
commit | 27053b1befc8380404f76c2c03c08eb3a7b0692d (patch) | |
tree | 10a748b4785cce56ed4b272844003611a489cc38 /preferences/krb5-auth-dialog-preferences.c | |
parent | Imported Upstream version 0.10 (diff) | |
download | krb5-auth-dialog-27053b1befc8380404f76c2c03c08eb3a7b0692d.tar.gz krb5-auth-dialog-27053b1befc8380404f76c2c03c08eb3a7b0692d.tar.bz2 krb5-auth-dialog-27053b1befc8380404f76c2c03c08eb3a7b0692d.zip |
Imported Upstream version 0.11
Diffstat (limited to 'preferences/krb5-auth-dialog-preferences.c')
-rw-r--r-- | preferences/krb5-auth-dialog-preferences.c | 32 |
1 files changed, 3 insertions, 29 deletions
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 <glib/gi18n.h> #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)); } |