GNOME Bugzilla – Bug 724074
documents-panel: handle unsaved documents
Last modified: 2014-03-16 10:50:07 UTC
Handle of unsaved documents when clicking on close buttons ( DocumentRow corresponding to tab and GroupRow corresponding to notebook ) in documents-panel
Created attachment 268740 [details] [review] documents-panel: handle unsaved documents
Review of attachment 268740 [details] [review]: ::: gedit/gedit-notebook.h @@ -118,2 +118,5 @@ (GeditNotebook *nb); +GList * gedit_notebook_get_unsaved_documents (GeditNotebook *notebook); + +GList * gedit_notebook_get_documents (GeditNotebook *notebook); In the current abstraction GeditNotebook is just a widget and is not aware of documents and the fact that they are modified or unsaved etc. So I'd prefer to move this logic to the caller side
Created attachment 268841 [details] [review] documents-panel: handle unsaved documents
Created attachment 269078 [details] [review] patch My version of the patch: the most significative change is that I keep the logic of the loop that walks a tabs list and just pass in the notebook to decide if the tabs list is the one of the notebook or of the whole window. This removes the need for all the list handling etc
Review of attachment 269078 [details] [review]: pushed as 3217dba