Weird, doesn't happen here, 1.37 release or git version. Maybe its something
to do with the specific version of GTK you have. Not sure what I can tell you
to help you track it down.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it
> Do you get a message when you do `Menu->Document->Line Wrapping which calls
> editor_set_line_wrapping()`?
Same Gtk-Warning only when **unsetting** the "Line Wrapping". That is the
wrapping activation works Ok and shows no warning, clearing the active wrapping
produces the warning.
AFAICT `document_open_full()` does not set the _per file_ line wrapping, it
uses the default wrapping setting because it is generally used to open new
files, and they get the default setting as I explained above.
Then `open_session_file()` sets the wrapping to the value saved in the session
In general, this issue results in incorrect intialisation of the editor's
horizontal scrollbar (at least on my platform, see the Geany-INFO in OP)
Further debugging yields more pointers at the cause of this issue.
The warning seems to result from `Scintilla::ScintillaGTK::Resize()` call
Still WFM, please provide the lines from your `help->debug messages` that I
posted, and what desktop you are using.
Note that the line not being wrapped is correct, changing the preference does
not wrap/unwrap already open files, and a file that is open has its state saved
when Geany is closed
Below is a test file (test-long-line.txt) that produces the warning.
The steps to trigger the warning:
1. Start from a clean configuration, disable plugins
```
G_MESSAGES_DEBUG=all geany -v -p -c test-config
```
2. Open the test-long-line.txt
3. Turn *Preferences>Editor[Features]:Line wrapping:
WFM
09:41:21: Geany INFO: Geany 1.37 (git >= 915cf6e8), en_AU.UTF-8
09:41:21: Geany INFO: GTK 3.24.20, GLib 2.64.3
09:41:21: Geany INFO: OS: Linux Mint 20 (ulyana)
PS please post the debug messages, they show the runtime versions being used,
not the version
Geany 1.38 shows a Gtk-Warning at startup
```
(geany:29297): Gtk-WARNING **: 00:58:33.911: Negative content height -6
(allocation 1, extents 7x0) while allocating gadget (node scrollbar, owner
GtkScrollbar)
```
This seems to be triggered when:
1. the file being opened at startup contains a long