[Xfce4-commits] <xfce4-diskperf-plugin:master> Rewrite About() to use gtk_show_about_dialog()
Landry Breuil
noreply at xfce.org
Tue Apr 3 16:36:12 CEST 2012
Updating branch refs/heads/master
to b3b925bb3ce43f0effed69aed0cc771f3c965a72 (commit)
from 408bb6471c6e45cc5a16dff69554843c3e327d6a (commit)
commit b3b925bb3ce43f0effed69aed0cc771f3c965a72
Author: Landry Breuil <landry at xfce.org>
Date: Tue Apr 3 16:28:07 2012 +0200
Rewrite About() to use gtk_show_about_dialog()
panel-plugin/main.c | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index f80be9d..0822ed8 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -898,15 +898,17 @@ static int CheckStatsAvailability ()
static void About (Widget_t w, void *unused)
/* Called back when the About button in clicked */
{
- xfce_dialog_show_info (NULL, NULL,
- _("%s %s - Disk Performance Monitor\n"
- "Display instantaneous disk I/O transfer rates and busy times \n\n"
- "(c) 2003, 2004 Roger Seguin <roger_seguin at msn.com>\n"
- "NetBSD statistics collection: (c) 2003 Benedikt Meurer\n"
- "\t<benedikt.meurer at unix-ag.uni-siegen.de>\n"
- "Solaris statistics collection: (c) 2011 Peter Tribble\n"
- "\t<peter.tribble at gmail.com>"),
- PACKAGE, VERSION);
+ const gchar *auth[] = { "Roger Seguin <roger_seguin at msn.com>",
+ "NetBSD statistics collection: (c) 2003 Benedikt Meurer <benedikt.meurer at unix-ag.uni-siegen.de>",
+ "Solaris statistics collection: (c) 2011 Peter Tribble <peter.tribble at gmail.com>", NULL };
+ gtk_show_about_dialog(NULL,
+ "license", xfce_get_license_text (XFCE_LICENSE_TEXT_BSD),
+ "version", PACKAGE_VERSION,
+ "program-name", PACKAGE_NAME,
+ "comments", _("Diskperf monitor displays instantaneous disk I/O transfer rates and busy times"),
+ "website", "http://goodies.xfce.org/projects/panel-plugins/xfce4-diskperf-plugin",
+ "copyright", _("Copyright (c) 2003, 2004 Roger Seguin"),
+ "authors", auth, NULL);
} /* About() */
/**************************************************************/
More information about the Xfce4-commits
mailing list