From f11c77e39f595fda18aaa7035ee6e1f032cc6039 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 7 Jan 2007 17:54:10 +0000 Subject: Optimizations, add module description to ModuleAbout --- hardinfo2/callbacks.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'hardinfo2/callbacks.c') diff --git a/hardinfo2/callbacks.c b/hardinfo2/callbacks.c index 51035e63..8141a426 100644 --- a/hardinfo2/callbacks.c +++ b/hardinfo2/callbacks.c @@ -144,10 +144,14 @@ void cb_about_module(GtkAction *action) idle_free(g_strdup_printf("%s Module", sm->name))); gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about), ma->version); gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about), - idle_free(g_strdup_printf("Written by %s", ma->author))); - - gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about), - idle_free(g_strdup_printf("Licensed under %s", ma->license))); + idle_free(g_strdup_printf("Written by %s\n" + "Licensed under %s", + ma->author, + ma->license))); + + if (ma->description) + gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about), + ma->description); gtk_about_dialog_set_logo(GTK_ABOUT_DIALOG(about), sm->icon); gtk_dialog_run(GTK_DIALOG(about)); -- cgit v1.2.3