Re: [gedit-list] Determining successfully loaded files
- From: Sébastien Wilmet <swilmet gnome org>
- To: Dustin Oprea <myselfasunder gmail com>
- Cc: gedit-list <gedit-list gnome org>
- Subject: Re: [gedit-list] Determining successfully loaded files
- Date: Sun, 13 Apr 2014 16:35:40 +0200
Hi,
On Sun, Apr 13, 2014 at 10:24:41AM -0400, Dustin Oprea wrote:
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?
GeditDocument have signals for that: "load", "loading" and "loaded".
But it is currently not possible to know if the file is a binary file.
Note that this API will probably be deprecated or removed soon, to have
a better API in GtkSourceView.
The relevant bugs in GtkSourceView:
https://bugzilla.gnome.org/show_bug.cgi?id=721016
https://bugzilla.gnome.org/show_bug.cgi?id=724247
Best regards,
Sébastien
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]