I thought Geany automatically showed "Read Only" in title bar, on
opening root owned or protected files, or it changed the tab background
or text. From the menu, you can manually mark a file read-only & it
changes the tab text to green - for me.
I want it to prominently auto-indicate RO files, when I open them.
In the manual,
https://www.geany.org/manual/current/index.html#customizing-geany-s-appeara…
-says,
"/To override GTK+ CSS styles, you can use traditional mechanisms or you
can create a file named //geany.css//in the user configuration directory
(usually //~/.config/geany//)/..."
"/Geany offers a number of CSS IDs ("properties"?) which can be used to
//taylor//[tailor] its //appearence//appearance. Among the more
interesting include:/
"/geany-document-status-/*/readyonly/**/`/*/- the style for document tab
labels when the document is read-only"/
[Note: the backward mark (grave) after "read*y*only" AND the extra 'y'
in line above are probably typos]?
"Style for... tab labels" - means changing text color, weight and style:
"color: #FFFF00;"
"font-style: italic;"
Tried common syntax changes for this - not working. Should it be
"readonly", or maybe "read-only?" Tried both - no change.
I assume the css property / selector should have a period or # mark in
front of "geany-document-status-read...?"
In my ~/.config/geany directory there's a "gtk-3.0" folder. I don't
remember if I created it. There is a geany.css file in it w/ some
-GtkScrollbar properties (that don't seem to affect Geany).
In Preferences/Various, the STATUSBAR template line has %w (to show mode
RO or INS or OVR). Doesn't recognize read-only (root) files, until I
manually set it to RO via the menu. Then status bar shows RO.
Thanks!
I have installed geany-1.36 and geany-plugins-1.36 in my Debian-Buster
system from the downloaded .tar.gz files. There were a few repeated
warning messages including text like:
modifier ignored, libtool: warning: relinking,
'g_type_class_add_private’ is deprecated.
I am happy to pass these on if you think they are relevant. The basic
Geany package seems to be working as expected, but the debugger plugin
does not appear in the Plugin Manager list. It was built and is listed
in /usr/local/geany.
The Geany->Help->Debug Messages command produced:
=========================================================================
18:07:00: Geany INFO: Geany 1.36, en_GB.UTF-8
18:07:00: Geany INFO: GTK 2.24.32, GLib 2.58.3
18:07:00: Geany INFO: System data dir: /usr/local/share/geany
18:07:00: Geany INFO: User config dir: /home/geoff/.config/geany
18:07:00: Geany INFO: System plugin path: /usr/local/lib/geany
...
18:07:00: Geany INFO : Loaded libvte from libvte.so
...
18:07:06: Geany INFO : Can't load plugin:ibgeanypluginutils.so.0:
cannot open shared object file:
No such file or directory
18:07:06: Geany INFO : Failed to load "/usr/local/lib/geany/debugger.so"
- ignoring plugin!
....
18:07:06: Geany INFO : Failed to load "/usr/local/lib/geany/scope.so"
- ignoring plugin!
...
=========================================================================
and many more similar. I did not enable GTK3 as I was not sure if I
needed it for debugger. Can you please advise me what to do next?
If I do need to build against GTK3, then what is the best procedure? I
think it may be along the following lines:
A. Uninstall Geany and Geany plugins.
How best to do this? It looks like there is a target uninstall: in
Makefiles. For Buster my command would be:
~$ sudo -s make uninstall
B. Enable GTK3 and build.
There is an option --enable-gtk3 in ./configure --help for geany-1.36,
but gtk3 is not mentioned in ./configure --help for geany-plugins-1.36
So presumably the plan is:
=========================================================================
~/geany-1.36$ ./configure --enable-gtk3
~/geany-1.36$ make
~/geany-1.36$ sudo -s make install
Then:
~/geany-plugins-1.36$ ./configure
~/geany-plugins-1.36$ make
~/geany-plugins-1.36$ sudo -s make install
=========================================================================
Please let me know if you want any further detail, and if you would do
something different to the above.
Many thanks for any help!
--
Geoff