diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2012-09-23 01:03:19 +0300 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2012-09-23 01:18:25 +0300 |
commit | 4d9abf6e8ee465728d1ff1308e18265557dbca42 (patch) | |
tree | bfa699979cc974212977a2cc943d5e8a7318be16 /Makefile | |
parent | 6458057599e6b80a8a04a29d2aa975347f69ff8c (diff) | |
download | subsurface-4d9abf6e8ee465728d1ff1308e18265557dbca42.tar.gz |
Added the functionality to delete selected (multiple) dives
Moved portion of the code from delete_dive_cb() to a function called
delete_single_dive(), that directly accepts a GtkTreeIter pointer.
Added the function delete_selected_dives_cb(), which is called
when calling "Delete dives" from the combo box for the selected dives.
The above function iterates trought the selection calling
delete_selected_foreach(), which on its own calls delete_single_dive().
The "for-each" API in this case looks much prettier C code wise,
however we do potentially create an extra jump and also
do not have anything but the redirection:
delete_selected_foreach() -> delete_single_dive()
Probably slighly slower than using gtk_tree_selection_get_selected_rows(),
performance wise, but less C code.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions