Re: [Github-comments] [geany/geany] Gtk-Warning at startup when opened file contains a long line (#2700)

2020-12-23 Thread elextr
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

Re: [Github-comments] [geany/geany] Gtk-Warning at startup when opened file contains a long line (#2700)

2020-12-23 Thread nomadbyte
> 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.

Re: [Github-comments] [geany/geany] Gtk-Warning at startup when opened file contains a long line (#2700)

2020-12-22 Thread elextr
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

Re: [Github-comments] [geany/geany] Gtk-Warning at startup when opened file contains a long line (#2700)

2020-12-22 Thread nomadbyte
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

Re: [Github-comments] [geany/geany] Gtk-Warning at startup when opened file contains a long line (#2700)

2020-12-22 Thread elextr
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

Re: [Github-comments] [geany/geany] Gtk-Warning at startup when opened file contains a long line (#2700)

2020-12-22 Thread nomadbyte
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:

Re: [Github-comments] [geany/geany] Gtk-Warning at startup when opened file contains a long line (#2700)

2020-12-22 Thread elextr
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

[Github-comments] [geany/geany] Gtk-Warning at startup when opened file contains a long line (#2700)

2020-12-22 Thread nomadbyte
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