[gedit-list] Determining successfully loaded files
- From: Dustin Oprea <myselfasunder gmail com>
- To: gedit-list <gedit-list gnome org>
- Subject: [gedit-list] Determining successfully loaded files
- Date: Sun, 13 Apr 2014 10:24:41 -0400
I'd like to be able to determine if a document is a text-file or a binary file. I'd also like to know if there's a way to know whether the file was successfully loaded, or it's waiting on some prompt from the user (as in the case of a binary file, accidentally loading a path, or having IO errors). Are either of these possible?
It looks like the get_editable() method on the view reflect whether the document is in a "ready" state, but I'm not sure if it'll be False for a read-only file, or for any other reason.
Dustin
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]