An embedded and charset-unspecified text was scrubbed... Name: not available
Url: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081007/c061d90b/attachment.pl
Mailing lists / lazarus / 2008-10
GTK2 is now the default widgetset
20 messages · 9 people · –
- GGraeme Geldenhuys 6
- MMattias Gärtner 4
- HHenry Vermaak 3
- CCoppola Ing. Salvatore 2
- AAleš Katona 1
- FFelipe Monteiro de Carvalho 1
- +3 more
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Mattias G?rtner wroteThe default widgetset was changed from gtk1 to gtk2 on Linux, BSD, Sparc.
Well, that will be an exciting update from SVN...
Frames. GTK2 (still use GTK 1)...
Does this mean that GTK 1 will not be maintained anymore ?
Probably in practice: yes ?
Michael.
An embedded and charset-unspecified text was scrubbed... Name: not available Url:…
Mattias G?rtner wroteThe default widgetset was changed from gtk1 to gtk2 on Linux, BSD, Sparc.
Does that mean the Editor speed issues has been resolved? Last time I tried Lazarus+GTK2 the editor did not feel nearly as fast as in GTK1. This was about a month or two ago.
If all is sorted, congrats to all that helped to finally get the GTK2 widgetset up to scratch!
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
Well, that will be an exciting update from SVN... Frames. GTK2 (still use GTK 1)... Does…
Michael Van Canneyt wrote 9 lines
Don't know. I think i'll keep using it for a while.
Marc
An embedded and charset-unspecified text was scrubbed... Name: not available Url:…
Mattias G?rtner wrote 11 lines
Thanks to all you.
Failed to compile under Ubuntu:
Free Pascal Compiler version 2.2.0 [2008/04/01] for x86_64 Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling jitform.pas
jitform.pas(100,38) Error: identifier idents no member "SetDesignInstance" jitform.pas(100,55) Error: Illegal expression
jitform.pas(100,55) Fatal: Syntax error, ";" expected but "(" found Fatal: Compilation aborted
make[2]: *** [jitform.ppu] Error 1
make[2]: Leaving directory
`/home/salvatore/Programs/lazarus/designer/jitform' make[1]: *** [jitform_all] Error 2
make[1]: Leaving directory `/home/salvatore/Programs/lazarus/designer' make: *** [designer] Error 2
salvatore at salvatore-desktop:~/Programs/lazarus$
On Tue, Oct 7, 2008 at 2:23 PM, Mattias G?rtner Does that mean the Editor speed issues…
Zitat von Graeme Geldenhuys :
Show quoted text 8 lines
The speed of gtk1 and 2 differ widely. On some platforms the gtk2 is even faster than gtk1. It depends on your window manager, video driver and the gtk2 version. AFAIR gtk 2.12 fixed some issues.
If all is sorted, congrats to all that helped to finally get the GTK2 widgetset up to scratch!
Not all is sorted. That's why 0.9.26 is using gtk1.
Mattias
Well, that will be an exciting update from SVN... Frames. GTK2 (still use GTK 1)... Does…
Zitat von Michael Van Canneyt :
Show quoted text 10 lines
0.9.28 will still support gtk1, but gtk2 will be the default.
Probably in practice: yes ?
In practice it depends on the community.
Mattias
Thanks to all you. Failed to compile under Ubuntu: Free Pascal Compiler version 2.2.0…
Zitat von "Coppola Ing. Salvatore" :
Show quoted text 21 lines
SetDesignInstance was introduced with fpc 2.2.1 and is needed for designtime Frames (the mail thread subject is misleading).
Can you use fpc 2.2.2?
Mattias
Mattias G?rtner wrote 33 lines
It's OK, :-)
thanks a lot!
Salvatore
Show quoted text 9 lines
Zitat von Graeme Geldenhuys : The speed of gtk1 and 2 differ widely. On some platforms…
Mattias G?rtner wroteThe speed of gtk1 and 2 differ widely. On some platforms the gtk2 is even faster than gtk1. It depends on your window manager, video driver and the gtk2 version. AFAIR gtk 2.12 fixed some issues.
Luckily my Ubuntu 7.10 has 2.12.xx. So I'll get an update now (at home) and give it a spin in GTK2. Oh no! That means I have to recreate the Raize font again. :-) I've been postponing this for ages, because to a lot of effort. Before I manually drew all Raize characters in FontForge so I could generate bitmap fonts for linux GTK1. Now I'll have to try and make truetype fonts for GTK2.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
Graeme Geldenhuys wrotethe Raize font again. :-) I've been postponing this for ages, because to a lot of effort. Before I manually drew all Raize characters in FontForge so I could generate bitmap fonts for linux GTK1. Now I'll have to try and make truetype fonts for GTK2.
try the "terminus" font, i use it for everything source related (and terminal) since it's very clean and easy on the eyes. you'll have to `apt-get install console-terminus xfonts-terminus`.
henry
Henry Vermaak wrotetry the "terminus" font, i use it for everything source related (and terminal) since it's very clean and easy on the eyes. you'll have to `apt-get install console-terminus xfonts-terminus`.
I'll give it a try, but I really like Raize. :-) Old habbits die hard.
BTW:
Did you see the example custom theme an screenshot I posted in fpGUI newsgroup. A quick and dirty theme (without using images), that kinda gives the look you were going for. I was bored in my lunch break. :-)
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
Graeme Geldenhuys wroteBTW: Did you see the example custom theme an screenshot I posted in fpGUI newsgroup. A quick and dirty theme (without using images), that kinda gives the look you were going for. I was bored in my lunch break. :-)
looks good. heh, when i'm bored in my lunch break i head to the pub :)
henry
An embedded and charset-unspecified text was scrubbed... Name: not available Url:…
Mattias G?rtner wroteThe default widgetset was changed from gtk1 to gtk2 on Linux, BSD, Sparc.
I just got a svn update and couldn't compile Lazarus with FPC 2.2.0. I got an error which indicates i need a newer FPC version.
class procedure TSetDesigningComponent.SetDesignInstanceOfComponent(
AComponent: TComponent; Value: Boolean);
begin
// requires fpc >= 2.2.1
TSetDesigningComponent(AComponent).SetDesignInstance(Value);
end;So what is the minimum required FPC version? 2.2.1 (is that still around) or 2.2.2 (I believe the latest stable release) or 2.2.3? I'm get an update to FPC_trunk, so hopefully that would suffice.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
looks good. heh, when i'm bored in my lunch break i head to the pub :) henry
Henry Vermaak wrotelooks good. heh, when i'm bored in my lunch break i head to the pub :)
You're from Stellenbosch right? ;-) Anyway, I have no pubs near our office. :-(
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
On Tue, Oct 7, 2008 at 2:23 PM, Mattias G?rtner I just got a svn update and couldn't…
Graeme Geldenhuys wroteSo what is the minimum required FPC version? 2.2.1 (is that still around) or 2.2.2 (I believe the latest stable release) or 2.2.3? I'm get an update to FPC_trunk, so hopefully that would suffice.
2.2.2+
Felipe Monteiro de Carvalho wrote 7 lines
Thanks... I thought it would help others as well. I just compiled Lazarus (svn) with FPC (svn 2.3.1) and it's worked perfectly. :-)
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
On Tue, Oct 7, 2008 at 2:23 PM, Mattias G?rtner Does that mean the Editor speed issues…
To everyone who might experience Gtk2 speed issues:
Here are the possible reasons for slowdowns and some personal observations...
1. Video card drivers make a big difference. Proprietary ATI and Nvidia drivers are very bad at some 2d operations, while the OSS reverse-engineered counterparts usually are "consistently" slower on each operation, but faster globally. E.g: my total time for OSS gtkperf (see below) test with OSS reverse engineered ati driver was less than the proprietary one, even if all but one tests were slower. This one test took ~0.5s with the OSS driver, but 50s with the proprietary one (canvas ellipse drawing)
2. Gtk+ version can cause differences in performance, newer are better
3. UTF-8 bugs can cause slowdowns in editor (see if you don't get gtk criticals with utf-8 errors)
4. Some themes are much slower in Gtk2, some are outright bugged. There was a page with tests for this but I lost it :(
To test what causes your slowness get GtkPerf from http://gtkperf.sourceforge.net/ and install it (compile AND install). We can post our results somewhere on the forums or such to identify culprits. Try out different themes too and see the impact.
I'm using a customized Crux theme with special border theme (kind of Next/Apple-ish) and the proprietary ATI driver. Text draw and custom canvas draw speed suffers because of the driver, but otherwise I get very nice performance, even with Gtk2 lazarus editor (less than 100% cpu while scrolling by the line).
I hope this helps you fix some issues, and shows you that Gtk2 or LCL/gtk2 speed issues can be caused by things beyond our control.
Ales
You're from Stellenbosch right? ;-) Anyway, I have no pubs near our office. :-( -…
Graeme Geldenhuys wrote 7 lines
i work in the english countryside, plenty of pubs here (there's 2 in the village). i sadly don't get to visit them that often (and the beer isn't that well kept in one of them :( )
henry
On Tue, Oct 7, 2008 at 4:46 PM, Mattias G?rtner Luckily my Ubuntu 7.10 has 2.12.xx. So…
Graeme Geldenhuys ha scritto:
Show quoted text 13 lines
Have you tried the misc-fixed font coming with most Linux distros? It's very similar to Raize, and it works just fine both with GTK1 and GTK2.
