summaryrefslogtreecommitdiffstats
path: root/download-dialog.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-02-19 13:46:37 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-19 14:00:21 -0800
commit0fd6907965b94c03e476b3f6333423cfdac00996 (patch)
tree6be3fe4596eff60cccbfd4ac2900142beb0b80e1 /download-dialog.c
parentf175c1a9d7627e3a0658e8a7d29ea03df6a905c9 (diff)
downloadsubsurface-0fd6907965b94c03e476b3f6333423cfdac00996.tar.gz
Obviate the need for explicit 'remember_tree_state/restore_tree_state' calls
Instead, just keep track of the expanded state of trips as we get the gtk callbacks for the state changes (which we need to track anyway for the selection logic), and automatically restore the state whenever we re-create the divelist. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'download-dialog.c')
-rw-r--r--download-dialog.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/download-dialog.c b/download-dialog.c
index 6237004d9..5d5c1de04 100644
--- a/download-dialog.c
+++ b/download-dialog.c
@@ -362,7 +362,6 @@ void download_dialog(GtkWidget *w, gpointer data)
.devname = NULL,
};
- remember_tree_state();
dialog = gtk_dialog_new_with_buttons(_("Download From Dive Computer"),
GTK_WINDOW(main_window),
GTK_DIALOG_DESTROY_WITH_PARENT,
@@ -459,7 +458,6 @@ repeat:
break;
}
gtk_widget_destroy(dialog);
- restore_tree_state();
}
void update_progressbar(progressbar_t *progress, double value)