[Github-comments] [geany] document: show informational doc message after first reload (#672)

elextr notifications at xxxxx
Fri Oct 2 23:25:02 UTC 2015


> @@ -1545,6 +1564,21 @@ gboolean document_reload_force(GeanyDocument *doc, const gchar *forced_enc)
>  	pos = sci_get_current_position(doc->editor->sci);
>  	new_doc = document_open_file_full(doc, NULL, pos, doc->readonly, doc->file_type, forced_enc);
>  
> +	if (file_prefs.keep_edit_history_on_reload && file_prefs.show_keep_edit_history_on_reload_msg)
> +	{
> +		bar = document_show_message(doc, GTK_MESSAGE_INFO,
> +						on_keep_edit_history_on_reload_response,
> +						GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
> +						"Discard history", GTK_RESPONSE_NO,
> +						NULL, 0, "You can revert the buffer to the previous state "

It is one or two characters longer, but *much* more explicit.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/672/files#r41078138
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151002/4f7fe8d6/attachment.html>


More information about the Github-comments mailing list