summaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-03 01:19:25 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-03 01:19:25 +0000
commit5adc8bdbb1471821f912becbba86e4631a4a001a (patch)
treefb0dabc347ab5050c13a9da4a1519eef752110ad /hardinfo2/shell.c
parentbe4b5ba0d143edd1001f33d226e10ef2c58f42ff (diff)
Cleanups. Implement DEBUG() macro.
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index b05366be..d1faf8f5 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -1058,10 +1058,8 @@ static void module_selected(GtkTreeSelection * ts, gpointer data)
shell_status_update("Done.");
shell_status_set_enabled(FALSE);
- gchar *tmp =
- g_strdup_printf("%s - System Information", entry->name);
- gtk_window_set_title(GTK_WINDOW(shell->window), tmp);
- g_free(tmp);
+ gtk_window_set_title(GTK_WINDOW(shell->window),
+ idle_free(g_strdup_printf("%s - System Information", entry->name)));
shell_action_set_enabled("RefreshAction", TRUE);
shell_action_set_enabled("CopyAction", TRUE);