summaryrefslogtreecommitdiff
path: root/hardinfo2/callbacks.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-05 02:59:47 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-05 02:59:47 +0000
commit5c78971c19a9f941c896b2c818d45319b64651b3 (patch)
treee5d69148d5d38427f3152ae486f4ce5685adea65 /hardinfo2/callbacks.c
parenta1054182ecd202db45cde1883991d70dbb954763 (diff)
LoadGraph optimizations, enhancements and cleanups.
Diffstat (limited to 'hardinfo2/callbacks.c')
-rw-r--r--hardinfo2/callbacks.c7
1 files changed, 4 insertions, 3 deletions
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;