aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/callbacks.c')
-rw-r--r--hardinfo2/callbacks.c12
1 files changed, 8 insertions, 4 deletions
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));