diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-01 18:38:42 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-01 18:38:42 +0000 |
commit | 8e1d5ef3729423889b73a121695fc83fb9cd338c (patch) | |
tree | b5c9637751cc6e186b3b83cd797717f4b2e13faf /hardinfo2/callbacks.c | |
parent | c54d47775818f19297e03e2f1b1b0031d77878fb (diff) |
A bunch of cleanups.
Diffstat (limited to 'hardinfo2/callbacks.c')
-rw-r--r-- | hardinfo2/callbacks.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/hardinfo2/callbacks.c b/hardinfo2/callbacks.c index ac47d089..d026d66f 100644 --- a/hardinfo2/callbacks.c +++ b/hardinfo2/callbacks.c @@ -149,16 +149,20 @@ void cb_about_module(GtkAction *action) if ((ma = module_get_about(sm))) { GtkWidget *about; + gchar *text; about = gtk_about_dialog_new(); - gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), - idle_free(g_strdup_printf("%s Module", sm->name))); + + text = g_strdup_printf("%s Module", sm->name); + gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), text); + g_free(text); + 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\n" - "Licensed under %s", - ma->author, - ma->license))); + + text = g_strdup_printf("Written by %s\nLicensed under %s", + ma->author, ma->license); + gtk_about_dialog_set_copyright(GTK_ABOUT_DIALOG(about), text); + g_free(text); if (ma->description) gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(about), |