aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-07-01 18:38:42 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-07-01 18:38:42 +0000
commit8e1d5ef3729423889b73a121695fc83fb9cd338c (patch)
treeb5c9637751cc6e186b3b83cd797717f4b2e13faf /hardinfo2/shell.c
parentc54d47775818f19297e03e2f1b1b0031d77878fb (diff)
A bunch of cleanups.
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index db9f15a1..11c42839 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -1131,6 +1131,8 @@ static void module_selected(gpointer data)
/* Get the current selection and shows its related info */
gtk_tree_model_get(model, &parent, TREE_COL_DATA, &entry, -1);
if (entry && !entry->selected) {
+ gchar *title;
+
shell_status_set_enabled(TRUE);
shell_status_update("Updating...");
@@ -1158,8 +1160,9 @@ static void module_selected(gpointer data)
shell_status_update("Done.");
shell_status_set_enabled(FALSE);
- gtk_window_set_title(GTK_WINDOW(shell->window),
- idle_free(g_strdup_printf("%s - System Information", entry->name)));
+ title = g_strdup_printf("%s - System Information", entry->name);
+ gtk_window_set_title(GTK_WINDOW(shell->window), title);
+ g_free(title);
shell_action_set_enabled("RefreshAction", TRUE);
shell_action_set_enabled("CopyAction", TRUE);