Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-08 Thread Juha Manninen via Lazarus
On Thu, Dec 8, 2016 at 9:19 PM, Luca Olivetti via Lazarus wrote: > No, I just commented it out in order to test the patch in this old machine, > it surely affects the functionality of the procedure where it is if removed. It must be inside an IFDEF. I don't have enough knowledge (nor motivation)

Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-08 Thread Luca Olivetti via Lazarus
El 08/12/16 a les 19:20, Juha Manninen via Lazarus ha escrit: On Wed, Dec 7, 2016 at 9:35 PM, Luca Olivetti via Lazarus wrote: Apart from the fact that I had to comment out a call to gdk_window_restack in lcl/interfaces/gtk2/gtk2widgetset.inc (not available in this old gtk) Can you please cre

Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-08 Thread Juha Manninen via Lazarus
On Wed, Dec 7, 2016 at 9:35 PM, Luca Olivetti via Lazarus wrote: > Apart from the fact that I had to comment out a call to gdk_window_restack > in lcl/interfaces/gtk2/gtk2widgetset.inc (not available in this old gtk) Can you please create a patch for that one. You are the best person to test it.

Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-07 Thread Luca Olivetti via Lazarus
El 07/12/16 a les 18:57, Juha Manninen via Lazarus ha escrit: No need. I changed it in r53590. Please test. If somebody finds an old GTK version where it does NOT work then we will scratch our heads more, but I doubt it. Apart from the fact that I had to comment out a call to gdk_window_rest

Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-07 Thread Juha Manninen via Lazarus
On Wed, Dec 7, 2016 at 12:28 PM, Luca Olivetti via Lazarus wrote: > Maybe the function could be simplified to > > lisFocused: > begin > //gtk2 iter has no focus?? > Path := gtk_tree_path_new_from_string(PChar(IntToStr(AIndex))); > if GTK_IS_TREE_VIEW(M

Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-07 Thread Luca Olivetti via Lazarus
El 07/12/16 a les 11:28, Luca Olivetti via Lazarus ha escrit: El 05/12/16 a les 22:26, Luca Olivetti via Lazarus ha escrit: El 05/12/16 a les 17:39, zeljko ha escrit: I changed the call to look like the one for gtk >= 2.14 (i.e, Path instead of nil) and now I can open the options dialog. I re

Re: [Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-07 Thread Luca Olivetti via Lazarus
El 05/12/16 a les 22:26, Luca Olivetti via Lazarus ha escrit: El 05/12/16 a les 17:39, zeljko ha escrit: I changed the call to look like the one for gtk >= 2.14 (i.e, Path instead of nil) and now I can open the options dialog. I really don't know gtk2, but maybe the differentiation is needed f

[Lazarus] Tools->Options segfaults with ancient gtk (GtkTreeView problem)

2016-12-05 Thread Luca Olivetti via Lazarus
I just installed an old version of puppy linux (4.00) in a virtual machine to recreate a system I have to maintain (and, no, I cannot update it, the video card in the production system only works with puppy linux and this specific version). This version of puppy linux has gtk 2.12.1 I install