From 5c78971c19a9f941c896b2c818d45319b64651b3 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 5 Jan 2007 02:59:47 +0000 Subject: LoadGraph optimizations, enhancements and cleanups. --- hardinfo2/callbacks.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'hardinfo2/callbacks.c') diff --git a/hardinfo2/callbacks.c b/hardinfo2/callbacks.c index 69201d82..51035e63 100644 --- a/hardinfo2/callbacks.c +++ b/hardinfo2/callbacks.c @@ -127,7 +127,7 @@ void cb_about_module(GtkAction *action) GSList *modules = shell->tree->modules; ModuleAbout *ma; gchar *name; - + g_object_get(G_OBJECT(action), "tooltip", &name, NULL); for (; modules; modules = modules->next) { @@ -140,7 +140,8 @@ void cb_about_module(GtkAction *action) GtkWidget *about; about = gtk_about_dialog_new(); - gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), sm->name); + gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), + 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))); @@ -152,7 +153,7 @@ void cb_about_module(GtkAction *action) gtk_dialog_run(GTK_DIALOG(about)); gtk_widget_destroy(about); } else { - g_warning("No about information is associated with this module."); + g_warning("No about information is associated with the %s module.", name); } break; -- cgit v1.2.3