From 8e1d5ef3729423889b73a121695fc83fb9cd338c Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 1 Jul 2007 18:38:42 +0000 Subject: A bunch of cleanups. --- hardinfo2/shell.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'hardinfo2/shell.c') 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); -- cgit v1.2.3