After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724460 - Read-only files are not recognized
Read-only files are not recognized
Status: RESOLVED OBSOLETE
Product: gnome-latex
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: unspecified
Assigned To: LaTeXila maintainer(s)
LaTeXila maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-02-16 06:15 UTC by Chunyang Xu
Modified: 2018-02-23 16:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
latex and gedit try to modify same read-only file (window title) (73.47 KB, image/png)
2014-02-16 06:15 UTC, Chunyang Xu
Details

Description Chunyang Xu 2014-02-16 06:15:57 UTC
Created attachment 269268 [details]
latex and gedit  try to modify same read-only file (window title)

It seems that window's title should update when open read-only file.

In src/main_window.vala line 842:
    active_document.readonly ? " [" + _("Read-Only") + "]" : ""
want to add "[Read-Only]" to window's title (like gedit), but it not work
Comment 1 Sébastien Wilmet 2014-02-16 10:50:23 UTC
What are the permissions of the file? Is it read-only for the user?

Maybe the read-only flag is enabled in latexila only when the file is already opened in another latexila window.
Comment 2 Chunyang Xu 2014-02-16 12:31:15 UTC
The file is created by root and read-only for others. 

Oh, you are right, the read-only flag is enabled when the file is already opened in another latexila window.

I'm reading latexila's source code and misunderstand document's readonly property.
Comment 3 Sébastien Wilmet 2014-02-16 13:14:46 UTC
Well, I think you have found a bug, if the file is read-only for the user opening the file and latexila doesn't recognize it as such.

But the text editor part of latexila is quite rudimentary. The plan is to make the gedit source code more reusable, and use it in latexila. And GtkSourceView is a good place in my opinion to put the reusable code. That's what I've done for the search and replace.
Comment 4 GNOME Infrastructure Team 2018-02-23 16:22:14 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-latex/issues/23.