This responds to 1.1.8's TODO file's Future Section, Item 11 - “make clip list editable”
Deleted main_popup. Replaced with menu_popup_edit_clips.
Added dialog_edit_a_clip that shows and changes the start and end GOP of a single clip.
Extracted gtk_widget_set_sensitive (...) for the main menu -> edit and popup menu edit menu items from file_is_loaded () and file_is_unloaded (). Put them in set_main_menu_and_edit_clips_menu_sensitivity () and call that from
on_main_menu_edit_activate (...),
on_tree_view_main_clip_list_button_release_event (...), and
on_tree_view_main_clip_list_popup_menu (...)
so their sensitivity gets set just before they are displayed.
Since, neither GtkTreeView nor GtkListStore provide a count of the number of rows they contain. Completed what had been begun as gboolean count_list_rows (...) and called it gint gi_get_clip_count (...). This obsoleted Main.cpp's gint main_clist_count and the code that maintained it. So deleted it. This freed sections of code that dealt with the clip list to just directly call gtk_list_store_append (...) and its friends. Replaced Main.cpp's update_GOP_slice_count (...) with update_main_label_clips () in widgets.cpp.
Renamed some of the menu items to help keep them straight.
Changed main_clist to treeview_main_clip_list because it's more descriptive.
diff 1.1.8 to Make Clips Editable