aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/callbacks.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-07 17:54:10 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-07 17:54:10 +0000
commitf11c77e39f595fda18aaa7035ee6e1f032cc6039 (patch)
tree34e32cea6d25f52279777ed7813cdc9726957e46 /hardinfo2/callbacks.c
parentdef14b5309427469d4c5fadc720a308ee0ec4b6a (diff)
Optimizations, add module description to ModuleAbout
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));