[krb5-auth-dialog] Wire up about dialog



commit 030d15751d0ab74b0624680f696248747fd1d562
Author: Guido GÃnther <agx sigxcpu org>
Date:   Sun Sep 4 20:08:28 2011 +0200

    Wire up about dialog

 src/ka-applet.c      |   23 +----------------------
 src/ka-main-window.c |    2 +-
 src/ka-tools.c       |   28 ++++++++++++++++++++++++++++
 src/ka-tools.h       |    1 +
 4 files changed, 31 insertions(+), 23 deletions(-)
---
diff --git a/src/ka-applet.c b/src/ka-applet.c
index 874fbad..c42f971 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -728,28 +728,7 @@ static void
 ka_applet_about_dialog_cb (GtkMenuItem *menuitem G_GNUC_UNUSED,
                            gpointer user_data G_GNUC_UNUSED)
 {
-    const gchar *authors[] = {
-        "Christopher Aillon <caillon redhat com>",
-        "Jonathan Blandford <jrb redhat com>",
-        "Colin Walters <walters verbum org>",
-        "Guido GÃnther <agx sigxcpu org>",
-        NULL
-    };
-
-    gtk_show_about_dialog (NULL,
-                           "authors", authors,
-                           "version", VERSION,
-                           "logo-icon-name", "krb-valid-ticket",
-                           "copyright",
-                           "Copyright (C) 2004,2005,2006 Red Hat, Inc.,\n"
-                           "2008-2011 Guido GÃnther",
-                           "website-label", PACKAGE " website",
-                           "website",
-                           "https://honk.sigxcpu.org/piki/projects/krb5-auth-dialog/";,
-                           "license", "GNU General Public License Version 2",
-                           /* Translators: add the translators of your language here */
-                           "translator-credits", _("translator-credits"),
-                           NULL);
+    ka_show_about();
 }
 
 
diff --git a/src/ka-main-window.c b/src/ka-main-window.c
index 84ecae3..f953013 100644
--- a/src/ka-main-window.c
+++ b/src/ka-main-window.c
@@ -58,7 +58,7 @@ static void
 menuitem_about_cb (GtkMenuItem *menuitem G_GNUC_UNUSED,
                    gpointer user_data G_GNUC_UNUSED)
 {
-    KA_DEBUG("");
+    ka_show_about ();
 }
 
 static void
diff --git a/src/ka-tools.c b/src/ka-tools.c
index 260d101..227324a 100644
--- a/src/ka-tools.c
+++ b/src/ka-tools.c
@@ -55,3 +55,31 @@ ka_show_help (GdkScreen* screen, const char* chapter, GtkWindow* window)
   }
   g_free (url);
 }
+
+
+void 
+ka_show_about ()
+{
+    const gchar *authors[] = {
+        "Christopher Aillon <caillon redhat com>",
+        "Jonathan Blandford <jrb redhat com>",
+        "Colin Walters <walters verbum org>",
+        "Guido GÃnther <agx sigxcpu org>",
+        NULL
+    };
+
+    gtk_show_about_dialog (NULL,
+                           "authors", authors,
+                           "version", VERSION,
+                           "logo-icon-name", "krb-valid-ticket",
+                           "copyright",
+                           "Copyright (C) 2004,2005,2006 Red Hat, Inc.,\n"
+                           "2008-2011 Guido GÃnther",
+                           "website-label", PACKAGE " website",
+                           "website",
+                           "https://honk.sigxcpu.org/piki/projects/krb5-auth-dialog/";,
+                           "license", "GNU General Public License Version 2",
+                           /* Translators: add the translators of your language here */
+                           "translator-credits", _("translator-credits"),
+                           NULL);
+}
diff --git a/src/ka-tools.h b/src/ka-tools.h
index f97791b..4fef541 100644
--- a/src/ka-tools.h
+++ b/src/ka-tools.h
@@ -26,6 +26,7 @@
 G_BEGIN_DECLS
 
 void ka_show_help (GdkScreen* screen, const char* section, GtkWindow* window);
+void ka_show_about (void);
 
 G_END_DECLS
 



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