[Lazarus] GTK2 app starts faster

2020-08-08 Thread AlexeyT via lazarus
With last changes (may-june-july 2020) in Laz, CudaText gtk2 starts faster- before with small window: 220ms, with big window: 330ms (BoundsRect change was SLOW) now with small window: 220ms, with big window: 260ms -- Regards, Alexey -- ___ lazarus

[Lazarus] Gtk2 list of pressed keys

2020-07-17 Thread Alexey Tor. via lazarus
    FKeyStateList_: TFPList; // Keeps track of which keys are pressed I suggest to change this to array[0..N] of integer (N can be only 2? 5? 10? 20?). this way we won't do mem allocs on each keypresss/depress. Alexey Torgashin -- ___ lazarus

Re: [Lazarus] Gtk2 ExtTextOut internal helper is slow

2020-06-11 Thread Martin Frb via lazarus
On 11/06/2020 16:20, Alexey Tor. via lazarus wrote: to call ExtTextOut() 20 times with the same x/y/s ? so I suggest to del checks - just call pango_layout_set_text and that's it. I do not know if this is related. But test your changes with Synedit extra-char-width. You can set the extra

[Lazarus] Gtk2 ExtTextOut internal helper is slow

2020-06-11 Thread Alexey Tor. via lazarus
gtk2devicecontext.inc procedure SetLayoutText(ALayout: PPangoLayout; AText: PChar; ALength: PtrInt); var   OldStr: PChar; begin   OldStr := pango_layout_get_text(ALayout);   if (strlen(OldStr)<>ALength) or (strlcomp(AText, OldStr, ALength) <> 0) then     pango_layout_set_text(ALayout, AText,

[Lazarus] Gtk2 under X11 new feature - accurate frame size - need users feedback

2020-04-16 Thread zeljko via lazarus
Hi all, Finally I've fixed gtk2 under x11 too (qt/qt5 are fixed 2 days ago), now GetWindowRect() returns correct form size (with frame around) , so now eg poScreenCenter/poWorkAreaCenter (poWorkAreaCenter is also fixed - Screen.WorkAreaRect was same as Screen.DesktopRect because of wrong

Re: [Lazarus] Gtk2 Linux detect user logoff?

2020-03-23 Thread Michael Van Canneyt via lazarus
On Mon, 23 Mar 2020, Anthony Walter via lazarus wrote: Does anyone here know how to detect user log off and gracefully terminate under Gtk2 Linux? I have an app which uses some temporary files (in /tmp) and I want to ensure those files are deleted when the user logs off. The application

[Lazarus] Gtk2 Linux detect user logoff?

2020-03-23 Thread Anthony Walter via lazarus
Does anyone here know how to detect user log off and gracefully terminate under Gtk2 Linux? I have an app which uses some temporary files (in /tmp) and I want to ensure those files are deleted when the user logs off. The application query/end session events don't seem to be connected when using

[Lazarus] Gtk2 runtime error on terminal

2020-03-14 Thread AlexeyT via lazarus
Ubuntu 19.10 x64, Lazarus trunk If I run "./cudatext dd.erb" with not installed lexer ERB, CudaText runs Python plugin to detect lexer for dd.erb, and shows menu-like dialog with such a lexer. It runs ok. and it prints to terminal such line (cudatext:12080) Gtk-CRITICAL **: x.x.x.x:

[Lazarus] Gtk2 compilation error on SPARC

2020-01-03 Thread AlexeyT via lazarus
When I compile CudaText for Solaris SPARC (32bit CPU as IDE GoTo shows me blocks with "ifdef cpu32") I get compile error, gtk2widgetset.inc   // clipboard   ClipboardTypeAtoms[ctPrimarySelection]:=GDK_SELECTION_PRIMARY; ClipboardTypeAtoms[ctSecondarySelection]:=GDK_SELECTION_SECONDARY;

[Lazarus] gtk2 issue with clicking on ATTabs

2019-12-22 Thread AlexeyT via lazarus
User of ATTabs wrote, I don't know what to do here? Hi, Having a issue with ATTabs on Linux GTk2 (Laz 2.06) When I add a tab from a popup menu from a tvirtualstringtree the close button on the tab does nothing on the first click and on the second click it closes and in the terminal this error

[Lazarus] gtk2 font sizes

2019-11-02 Thread C Western via lazarus
I have just upgraded to Fedora 31, and noticed some odd effects with font sizes. With some investigation the cause seems to be that the underlying font sizes can be a non-integer number of pixels; with a 'MonoSpace' example looking at gtk2widgetset.inc:5919: TextMetric.tmAscent :=

Re: [Lazarus] gtk2: GetOrCreateWidgetInfo: MainWidget info was created causing a memory leak

2019-09-13 Thread Martin Frb via lazarus
On 13/09/2019 17:45, Martin Frb via lazarus wrote: On 13/09/2019 16:17, AlexeyT via lazarus wrote: It is fixed; thanks. New build of Lazarus (trunk) gives errors with CudaText gtk2 build. How to fix that? If you mean it now longer *prints* now => no Now I have No idea where the w came

Re: [Lazarus] gtk2: GetOrCreateWidgetInfo: MainWidget info was created causing a memory leak

2019-09-13 Thread Martin Frb via lazarus
On 13/09/2019 16:17, AlexeyT via lazarus wrote: It is fixed; thanks. New build of Lazarus (trunk) gives errors with CudaText gtk2 build. How to fix that? If you mean it now longer *prints* the message then yes. (This has been converted to a compile time warning, if you compile the

Re: [Lazarus] gtk2: GetOrCreateWidgetInfo: MainWidget info was created causing a memory leak

2019-09-13 Thread AlexeyT via lazarus
It is fixed; thanks. New build of Lazarus (trunk) gives errors with CudaText gtk2 build. How to fix that? -- Regards, Alexey -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] gtk2: GetOrCreateWidgetInfo: MainWidget info was created causing a memory leak

2019-09-07 Thread AlexeyT via lazarus
New build of Lazarus (trunk) gives errors with CudaText gtk2 build. How to fix that? user@PC:~/cuda/cuda/app$ ./cudatext Gtk-Message: 14:01:37.977: Failed to load module "overlay-scrollbar" Gtk-Message: 14:01:37.987: Failed to load module "canberra-gtk-module" GetOrCreateWidgetInfo: MainWidget

[Lazarus] Gtk2 CheckListbox: items checked on simple click

2018-05-22 Thread AlexeyT via Lazarus
If i click items on text area (much rigther than checkbox), checkbox toggles. It's not good for UI, Win32 works not so. I see it as valid issue, pls fix? -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Gtk2

2018-02-24 Thread Schindler Karl-Michael via Lazarus
Hi > Date: Fri, 23 Feb 2018 18:06:59 +0100 > From: Adriaan van Os <f...@microbizz.nl> > To: Lazarus mailing list <lazarus@lists.lazarus-ide.org> > Subject: Re: [Lazarus] Gtk2 > Message-ID: <5a904a33.6010...@microbizz.nl> > Content-Type: text/plain

Re: [Lazarus] Gtk2

2018-02-23 Thread Adriaan van Os via Lazarus
Schindler Karl-Michael via Lazarus wrote: How about fink? If sources and prerequisites are available, I could have a go at a package description. I did so successfully for lazarus-gkt2. Not quite sure what you mean. There are some fink gtk packages, they seem to be based on gtk2.18 rather

Re: [Lazarus] Gtk2

2018-02-23 Thread Schindler Karl-Michael via Lazarus
Am 23.02.2018 um 10:56 schrieb lazarus-requ...@lists.lazarus-ide.org: > > Message: 6 > Date: Fri, 23 Feb 2018 10:50:50 +0100 > From: Adriaan van Os <f...@microbizz.nl> > To: Lazarus mailing list <lazarus@lists.lazarus-ide.org> > Subject: Re: [Lazarus] Gtk

Re: [Lazarus] Gtk2

2018-02-23 Thread Adriaan van Os via Lazarus
Anthony Walter via Lazarus wrote: Maybe homebrew as well. I've heard from most people that brew is better than ports. Thanks for the hint. I looked at but they don't even have a list of packages without having to install their software, which requires OS X 10.10. Not for

Re: [Lazarus] Gtk2

2018-02-19 Thread Anthony Walter via Lazarus
Maybe homebrew as well. I've heard from most people that brew is better than ports. -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Gtk2

2018-02-19 Thread Adriaan van Os via Lazarus
Adriaan van Os via Lazarus wrote: Any suggestions on where to download gtk2 binaries for OS X (e.g. version 2.24) ? To answer my own question, maybe MacPorts is the best source ? Regards, Adriaan van Os -- ___ Lazarus mailing list

[Lazarus] Gtk2

2018-02-19 Thread Adriaan van Os via Lazarus
Any suggestions on where to download gtk2 binaries for OS X (e.g. version 2.24) ? Thanks, Adriaan van Os -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] GTK2/X Appcrash when TPen.Pattern has invalid value

2018-01-07 Thread Alexander Hofmann via Lazarus
Hi, Am 07.01.2018 um 11:39 schrieb Marc Weustink via Lazarus: > Imo the QT implementation should be adapted to behave the same. > Wat does Delphi in this case? Thank's for your reply. I only have an old Delphi 7 version here - they all don't have the Pattern option for TPen. When done manually,

Re: [Lazarus] GTK2/X Appcrash when TPen.Pattern has invalid value

2018-01-07 Thread Marc Weustink via Lazarus
On January 6, 2018 8:14:30 PM GMT+01:00, Alexander Hofmann via Lazarus wrote: >Dear all, > >I spend some time debugging a programming error (read: >misinterpretation >of available documentation) and though I should share my findings... > >I wanted to have a

[Lazarus] GTK2/X Appcrash when TPen.Pattern has invalid value

2018-01-06 Thread Alexander Hofmann via Lazarus
Dear all, I spend some time debugging a programming error (read: misinterpretation of available documentation) and though I should share my findings... I wanted to have a TChart series drawn with a dashed line, the pen-style "psDashed" had two short dashes for my eyes, so I used "psPattern" and

[Lazarus] Gtk2 error after update to Ubuntu 17.10

2017-10-22 Thread Alexey via Lazarus
LCL Gtk2 app [was ok] now shows in console msg about str-constant: user@PC:~$ cudatext -v /usr/share/themes/Radiance/gtk-2.0/apps/mate-panel.rc:30: error: invalid string constant "murrine-scrollbar", expected valid string constant CudaText version 1.22.0.0 user@PC:~$ -- Regards, Alexey --

Re: [Lazarus] Gtk2 missed try-finally

2017-07-25 Thread Marc Weustink via Lazarus
How do you get an exception there ? Marc On July 25, 2017 4:35:50 PM GMT+02:00, Alexey via Lazarus wrote: > >>How did you manage to create a mem leak there? > >If not using try-finally, and exception, Bitmap will not be freed. > >-- >Regards, >Alexey > >--

Re: [Lazarus] Gtk2 missed try-finally

2017-07-25 Thread Alexey via Lazarus
How did you manage to create a mem leak there? If not using try-finally, and exception, Bitmap will not be freed. -- Regards, Alexey -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus

Re: [Lazarus] Gtk2 missed try-finally

2017-07-25 Thread Mattias Gaertner via Lazarus
On Tue, 25 Jul 2017 13:16:50 +0300 Alexey via Lazarus wrote: > gtk2proc.inc, procedure DrawImageListIconOnWidget: it allocates Bitmap + > DC. Pls add try-finally for Bitmap; and (not sure) try-finally for DC: How did you manage to create a mem leak there? >

[Lazarus] Gtk2 missed try-finally

2017-07-25 Thread Alexey via Lazarus
gtk2proc.inc, procedure DrawImageListIconOnWidget: it allocates Bitmap + DC. Pls add try-finally for Bitmap; and (not sure) try-finally for DC: finally ReleaseDC(HDC({%H-}PtrUInt(DestWidget)),DestDC); end; finally Bitmap.Free; end; -- Regards, Alexey --

Re: [Lazarus] Gtk2 log "Refused invalidating during paint msg": how to check

2017-05-01 Thread Mattias Gaertner via Lazarus
On Sun, 30 Apr 2017 18:59:17 +0300 Alexey via Lazarus wrote: > How can I check that im inside Paint code? > > Maybe come control flag, or something, exists. if csCustomPaint in ControlState then Mattias -- ___ Lazarus

[Lazarus] Gtk2 ShowWindow(..SW_RESTORE)

2017-05-01 Thread Alexey via Lazarus
Hi. Maybe someone can implement it? Gtk2 misses it- case nCmdShow of SW_SHOWNORMAL: begin if B then gtk_widget_show(PGtkWidget(GtkWindow)) else begin if not GTK_WIDGET_VISIBLE(PGtkWidget(GtkWindow)) then gtk_widget_show(PGtkWidget(GtkWindow));

Re: [Lazarus] GTK2 version and backspace key in Edit fields

2016-10-11 Thread David Copeland via Lazarus
The bug is still present here. FPC 3.0, Lazarus r53093. OpenSuse 42.1 glib2 2.44.1 gtk2 2.24.31 Dave Copeland. > > On 2016-10-10 23:08, Juha Manninen via Lazarus wrote: >> Regarding issue: >> http://bugs.freepascal.org/view.php?id=30596 >> >> GTK2 users please test if there is any version

Re: [Lazarus] GTK2 version and backspace key in Edit fields

2016-10-11 Thread Torsten Bonde Christiansen via Lazarus
I have no idea about the versioning with the glib2/gtk2 lib, but I can confirm that the patch works here: Free Pascal Compiler version 3.0.0 Compiler date : 2015/11/26 Compiler CPU target: x86_64 Lazarus trunk: r53093 glib2: 2.48.2 gtk2: 2.24.31 Torsten. On 2016-10-10 23:08, Juha

[Lazarus] GTK2 version and backspace key in Edit fields

2016-10-10 Thread Juha Manninen via Lazarus
Regarding issue: http://bugs.freepascal.org/view.php?id=30596 GTK2 users please test if there is any version that needs special treatment. If not, then I will remove the GTK2 version checks. See the last 2 notes in the bug report for details please. Juha --

Re: [Lazarus] Linux lazarus gtk2 look

2016-08-30 Thread Kostas Michalopoulos
This doesn't have to do with Lazarus, it is GTK's theme. The second screenshot shows the Raleigh theme which is the default GTK+ 2 theme. I don't know about KaOS to suggest packages and such, but the first screenshot uses a popular theme which AFAIK is installed by default on Debian when you

[Lazarus] Linux lazarus gtk2 look

2016-08-30 Thread John Landmesser
Is it possible to adjust the look of Lazarus _IDE (gtk2): Same PC, Lazarus trunk but two different KDE linux Desktops. This one is ok: Debian (Sid) KDE https://drive.google.com/file/d/0BwR9__ABsiOFaXlLU0VOc2N2dzg/view?usp=sharing That's bad: same PC but KDE on KaOS.

[Lazarus] Linux lazarus gtk2 look

2016-08-30 Thread John Landmesser
Is it possible to adjust the look of Lazarus _IDE (gtk2): Same PC, Lazarus trunk but two different KDE linux Desktops. This one is ok: Debian (Sid) KDE That's bad: same PC but KDE on KaOS. Where are these grey colors defined? -- ___ Lazarus