Re: [Geany-Devel] document_open_file

2017-10-25 Thread Matthew Brush

On 2017-10-25 12:47 PM, Lars Paulsen wrote:

Hi,

if I open a document via document_open_file() will it also be opened if 
it is already opened?
So, do I need to check myself if a file is already open to prevent it 
from being opened again?




No you don't need to check, it's done internally in 
`document_open_file_full` (which is called by `document_open_file`).


https://github.com/geany/geany/blob/master/src/document.c#L1323

Regards,
Matthew Brush
___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel


[Geany-Devel] document_open_file

2017-10-25 Thread Lars Paulsen

Hi,

if I open a document via document_open_file() will it also be opened if 
it is already opened?
So, do I need to check myself if a file is already open to prevent it 
from being opened again?


Thanks for all help in advance.

Cheers,
Lars

___
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel