[Lazarus] Request for review patch #27921

2015-10-12 Thread LacaK

Hi,
I am not sure if this is proper maillist to write this kind of request.
Can please somebody review patch in bug report 
http://bugs.freepascal.org/view.php?id=27921 and if no objections commit 
them.

Thank you
-Laco.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Sven Barth
Am 13.10.2015 00:00 schrieb "Bo Berglund" :
> Oh, I see now that you invoke a make not as root! Are you supposed to
> be able to build Lazarus (and FPC) as a non-priviliged user?

Yes. Normally you need root only to do a "make install" into a system
directory.

Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Marcos Douglas
On Mon, Oct 12, 2015 at 1:03 PM, Anthony Walter  wrote:
> A small thing, but I would like it if the CodeTools in 2.0 worked with units
> that have dotted namespaces.
>
> Right now if you type "use CompanyName." and press CTRL+SPACE you don't get
> a code completion list of units which start with "CompanyName."

+1

Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Bo Berglund
On Mon, 12 Oct 2015 23:13:53 +0300, Juha Manninen
 wrote:

>On Mon, Oct 12, 2015 at 9:52 PM, Bo Berglund  wrote:
>> Is that version 1.5?
>
>Yes.
>
>> This is what I got when I followed an installation guide for putting
>> FPC/Lazarus on a Raspberry Pi2 (ARM Cortex 7).
>> Help/About says FPC 3.1.1 and Lazarus 1.5 (SVN 50023)
>>
>> If this is the beeding edge should I worry???
>
>No worries! Trunk works pretty well now.
>
>How many seconds does Lazarus take to start in Raspberry Pi2? The
>startup was sped up before 1.4 release, it has most effect in low-end
>machines.

Just measured it:
>From the Menu/Programming/Lazarus click to when Lazarus is on the
screen with the last project loaded: 7 s

>How long does it take to build Lazarus? For example :
> $  time make clean bigide

I cannot give a definite answer here even though I have done about 4-5
full clean installs on different size SDcards over the week-end.
But after the svn was done fetching sources and FPC was compiled I did
this to Lazarus:

# cd /usr/local/lazarus/source
# make all OPT=-dFPC_ARMHF
# make install OPT=-dFPC_ARMHF PREFIX=/usr/local

I had set swap to 1000MB and I had configured the Pi to boot to the
command line rather than the GUI for the FPC/Lazarus build operations.

I would say that it took upwards of an hour to do the make. But I went
out for coffee during the make operation, I should really have put it
into a shelscript with a command to save a timestamp into a file at
the start and end of the operation.
Will do so the next time around.

But that might perhaps not be what you asked?

Both FPC and Lazarus sources are retrieved as trunk from svn.

Oh, I see now that you invoke a make not as root! Are you supposed to
be able to build Lazarus (and FPC) as a non-priviliged user?


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Mattias Gaertner
On Mon, 12 Oct 2015 22:41:50 +0200
Ondrej Pokorny  wrote:

>[...]
> Question to FPC people: does FPC support defining namespaces as Delphi does?
> E.g. that a unit "MyCompany.MyLibrary.MyUnit.pas" I can be refered to 
> with only "MyUnit" in the uses clause if the namespace 
> "MyCompany.MyLibrary" is added to the project settings?

AFAIK there is no FPC flag yet for specifying namespaces.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Sven Barth
Am 12.10.2015 22:42 schrieb "Ondrej Pokorny" :
> Question to FPC people: does FPC support defining namespaces as Delphi
does?
> E.g. that a unit "MyCompany.MyLibrary.MyUnit.pas" I can be refered to
with only "MyUnit" in the uses clause if the namespace
"MyCompany.MyLibrary" is added to the project settings?

Not yet, but it's planned.

Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Ondrej Pokorny

On 12.10.2015 20:19, Anthony Walter wrote:
I'll looked at CodeTools, attempted changes, and rapidly gave up after 
trying to work through all kinds of confusion.


Just don't give up, otherwise Lazarus won't move forward!

Earlier this year I offered to try once again if only I could get a 
little help/tutelage but no follow up contact was made. The offer 
still stands. If the maintainer of CodeTools want some help, I'll be 
glad to do what I can but can we setup some time to chat (like on IRC) 
to help me get more familiar with however CodeTools is organized?


I cannot speak for Mattias but from my point of view (and I am at the 
same side as you - learning CodeTools code), you should not need or 
require such help. You can study by debugging the code. And I always got 
answers from Mattias to specific technical questions (I think I didn't 
have more than 3, though). One of my first patches for CodeTools was 
class helper support http://bugs.freepascal.org/view.php?id=28266 and it 
was 2 weeks of work. To support file names with dotted namespaces you 
won't probably need so much time but it should not be underestimated.


You probably will have to create a new structure for file namespaces, 
break filenames to pieces by dots and store the file information 
accordingly. Actually, thinking of it now, it should be possible with 
this approach.


Question to FPC people: does FPC support defining namespaces as Delphi does?
E.g. that a unit "MyCompany.MyLibrary.MyUnit.pas" I can be refered to 
with only "MyUnit" in the uses clause if the namespace 
"MyCompany.MyLibrary" is added to the project settings?


I have never used dotted names in FPC, only in Delphi, so forgive me if 
it is a dumb question.


Ondrej





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Juha Manninen
On Mon, Oct 12, 2015 at 9:52 PM, Bo Berglund  wrote:
> Is that version 1.5?

Yes.

> This is what I got when I followed an installation guide for putting
> FPC/Lazarus on a Raspberry Pi2 (ARM Cortex 7).
> Help/About says FPC 3.1.1 and Lazarus 1.5 (SVN 50023)
>
> If this is the beeding edge should I worry???

No worries! Trunk works pretty well now.

How many seconds does Lazarus take to start in Raspberry Pi2? The
startup was sped up before 1.4 release, it has most effect in low-end
machines.
How long does it take to build Lazarus? For example :
 $  time make clean bigide

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Bo Berglund
On Mon, 12 Oct 2015 15:54:02 +0300, Juha Manninen
 wrote:

>The development version (trunk) already has new features like
>configurable IDE Coolbar and configurable desktops + many other
>improvements. They will surely be in next release.

Is that version 1.5?
This is what I got when I followed an installation guide for putting
FPC/Lazarus on a Raspberry Pi2 (ARM Cortex 7).
Help/About says FPC 3.1.1 and Lazarus 1.5 (SVN 50023)

If this is the beeding edge should I worry???


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Built Lazarus on RPi2, warning on every project build

2015-10-12 Thread Bo Berglund
On Sun, 11 Oct 2015 20:10:26 +, Mark Morgan Lloyd
 wrote:


>>> to your /etc/fpc.cfg, or for Jessie add
>>>
>>> -Fl/usr/lib/gcc/arm-linux-gnueabihf/4.9

...

>> Where in the file do I add this line?
>> Or does it not matter?
>
>If it mattered, I'd have said :-) That file is basically just a list of 
>options that are appended most of the times FPC is run.
>
 I ended up putting the second line in at the end of the file since I
am on Jessie.
Worked fine! Warnings are now gone.
Thanks!


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Anthony Walter
I'll looked at CodeTools, attempted changes, and rapidly gave up after
trying to work through all kinds of confusion.

Earlier this year I offered to try once again if only I could get a little
help/tutelage but no follow up contact was made. The offer still stands. If
the maintainer of CodeTools want some help, I'll be glad to do what I can
but can we setup some time to chat (like on IRC) to help me get more
familiar with however CodeTools is organized?
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Ondrej Pokorny

On 12.10.2015 18:03, Anthony Walter wrote:
A small thing, but I would like it if the CodeTools in 2.0 worked with 
units that have dotted namespaces.


Right now if you type "use CompanyName." and press CTRL+SPACE you 
don't get a code completion list of units which start with "CompanyName."


I was investigating this and I have to say it is everything else than 
easy to get all parts of codetools working with unit scopes and dotted 
names. But I am sure Mattias will apply your patch if you create one!


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Leonardo M . Ramé

El 12/10/15 a las 09:03, JuuS escribió:

Hi,

Lazarus has had the number schemes 0.xxx to now of 1.4.xx

Before falling asleep it passed through my mind about a lazarus 2.xx and...

...I thought what could it be? Lazarus is already so good and so feature
filled that I struggled to understand what could possibly be in or
justify a Lazarus 2.xx

Any thoughts from anyone what a Laz 2 would be?

Julius



An api for command line .lpi handling, I user "lazbuild -B 
myproject.lpi" for command line compiling, and I wonder if there's 
something similar for project creation, package inclusion, etc.




--
Leonardo M. Ramé
http://leonardorame.blogspot.com

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor loses focus on Compile

2015-10-12 Thread Juha Manninen
On Mon, Oct 12, 2015 at 6:10 PM, Howard Page-Clark  wrote:
> In the IDE Options dialog under Environment->Messages Window node make sure
> the checkbox "Focus messages after compilation" is not checked.

Right, I forgot that one.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Vincenzo Campanella

Il 12.10.2015 17:58, Bart ha scritto:

Well, I would vote for 2.0 for the next stable release that comes with
the 3.0 compiler.
We can then get rid of all code that is win9x compatible etc.
This will cleanup the LCL a bit.
Especially if we also then decide that 2.0 will NOT support the fpc
2.6 branch (the cp-aware strings and "utf8 in lcl" tend to give plenty
of ifdef-ed code).

Just my 2 cents.



+2 (cents)... :)

---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Anthony Walter
A small thing, but I would like it if the CodeTools in 2.0 worked with
units that have dotted namespaces.

Right now if you type "use CompanyName." and press CTRL+SPACE you don't get
a code completion list of units which start with "CompanyName."
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Bart
On 10/12/15, Mattias Gaertner  wrote:

> And you are right, that FPC 3 is a big leap, especially for UTF-8
> applications. Some projects and packages need to check a lot of strings.
> If you see a Lazarus release as an unity of IDE and compiler, then the
> string change alone would require a 2.0. If you only see Lazarus, the
> amount of incompatibilities are far less than 1.2 to 1.4.

Well, I would vote for 2.0 for the next stable release that comes with
the 3.0 compiler.
We can then get rid of all code that is win9x compatible etc.
This will cleanup the LCL a bit.
Especially if we also then decide that 2.0 will NOT support the fpc
2.6 branch (the cp-aware strings and "utf8 in lcl" tend to give plenty
of ifdef-ed code).

Just my 2 cents.

Bart

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor loses focus on Compile

2015-10-12 Thread Ondrej Pokorny

On 12.10.2015 17:10, Howard Page-Clark wrote:

On 12/10/2015 15:37, Ondrej Pokorny wrote:

When I compile a project in the IDE with Ctrl+F9 the editor window loses
focus. Instead the message window is focused. When compiling is done,
message window is still focused (even after a successful compile).


In the IDE Options dialog under Environment->Messages Window node make 
sure the checkbox "Focus messages after compilation" is not checked.


Great! Thanks! You saved my day!

Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Anthony Walter
In fact I checked your code and it only tries to load libappindicator if
XDG_CURRENT_DESKTOP is Unity. With that variable set I can see the tray
icon (note that its normal value is KDE).

That's good then. I added 'KDE' to the allowed desktops when
libappindicator is present with the Gtk2 toolkit. I also recompiled the
64bit example program with this change and overwrote it in the repository.
So now if the fix it should also work on KDE, given XDG_CURRENT_DESKTOP
returns 'KDE'.

Thank for the link as well. It would seem, reading the information in the
link you posted, that Gtk3 uses libappindicator3-1. If anyone actively is
working on adding to Gtk3 lcl interface you may want to consider looking at
and copying some of the code I committed to github.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor loses focus on Compile

2015-10-12 Thread Howard Page-Clark

On 12/10/2015 15:37, Ondrej Pokorny wrote:

When I compile a project in the IDE with Ctrl+F9 the editor window loses
focus. Instead the message window is focused. When compiling is done,
message window is still focused (even after a successful compile).


In the IDE Options dialog under Environment->Messages Window node make 
sure the checkbox "Focus messages after compilation" is not checked.



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor loses focus on Compile

2015-10-12 Thread Juha Manninen
On Mon, Oct 12, 2015 at 5:37 PM, Ondrej Pokorny  wrote:
> When I compile a project in the IDE with Ctrl+F9 the editor window loses
> focus. Instead the message window is focused. When compiling is done,
> message window is still focused (even after a successful compile).

It has happened also before but only few people can reproduce.
  http://bugs.freepascal.org/view.php?id=18012

What does it depend on? Nobody knows.

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Editor loses focus on Compile

2015-10-12 Thread FreeMan
Same, when AnchorDocking is installed. I started work newly with 
AnchorDocking, maybe useto to freesparta. Long time ago I was write same 
idea. Message windows directly open and focused, can add option just 
bringtofront but not focused. Another think I remove warnings hint bla 
bla but still showing in :)


On 12.10.2015 17:37, Ondrej Pokorny wrote:
When I compile a project in the IDE with Ctrl+F9 the editor window 
loses focus. Instead the message window is focused. When compiling is 
done, message window is still focused (even after a successful compile).


-> For me this is extremly annoying because every time I compile I 
have to take the mouse in the hand and focus back the editor window.


Does anybody take advantage of this feature or is it only a bad 
side-effect of the fast that message window is shown before compiling?


(I am refering to non-docked IDE, maybe it does not happen when 
AnchorDocking is installed.)


Ondrej



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Luca Olivetti

El 12/10/15 a les 14:37, Anthony Walter ha escrit:

The exe is 64 bit and built with the Gtk2 widget set. So the thing to
test would be if the Qt/KDE desktop normally shows with Lazarus
applications built the Gtk2 tray icon.


No, as I said, it doesn't.
But, as per

http://blog.martin-graesslin.com/blog/2014/06/where-are-my-systray-icons/

if the gtk2 application uses libappindicator for unity compatibility, it 
should also work with plasma.
In fact I checked your code and it only tries to load libappindicator if 
XDG_CURRENT_DESKTOP is Unity. With that variable set I can see the tray 
icon (note that its normal value is KDE).



Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Play a sound/beep when compiling finished

2015-10-12 Thread Ondrej Pokorny

On 12.10.2015 14:00, Mattias Gaertner wrote:
Yes. There is no IDEIntf event yet for all tasks stopped, nor for 
building project stopped. Feel free to add one.


Done: http://bugs.freepascal.org/view.php?id=28839

Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Editor loses focus on Compile

2015-10-12 Thread Ondrej Pokorny
When I compile a project in the IDE with Ctrl+F9 the editor window loses 
focus. Instead the message window is focused. When compiling is done, 
message window is still focused (even after a successful compile).


-> For me this is extremly annoying because every time I compile I have 
to take the mouse in the hand and focus back the editor window.


Does anybody take advantage of this feature or is it only a bad 
side-effect of the fast that message window is shown before compiling?


(I am refering to non-docked IDE, maybe it does not happen when 
AnchorDocking is installed.)


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Mattias Gaertner
On Mon, 12 Oct 2015 14:07:10 +0100
Tony Whyman  wrote:

> This could be a good moment for someone to bring the Wiki up-to-date 
> (version 0.9.31 was a little while ago now). Also, the wiki page doesn't 
> give any policy rules for interpreting major, minor and patch(?) numbers.

The Lazarus patches are in the svn revision numbers.

The version scheme is major, minor, release.
The forth number (patch) is only used for release candidates and
special OS releases.

 
> Interesting, if you took a pretty common view in that:
> 
> - patch numbers are used for bug fix releases

s/patch/release/

> - minor numbers are changed for backwards but not forwards compatible 
> changes (i.e. a 1.2.x app should still work under 1.4.x but the other 
> way around is not true), and
> - major changes are used when existing apps may be broken,

Well, even bugfix releases may break apps, although it is unlikely.
And even major versions try to be backwards compatible. For example the
IDE can read old project files. When something is not backwards
compatible it is listed as incompatibility.
Every application is affected differently by the incompatibilities, so
the distinction in major and minor numbers is just the personal
decision of the Lazarus developers.

 
> then Lazarus 2.0.x is only just around the corner. That's because as 
> soon as FPC 3 becomes the required compiler there will be backwards 
> compatibility issues (e.g. the TBookmark type changes break any app that 
> uses it).

A "minor" change from 1.4 to 1.6 usually contains similar
incompatibilities like TBookmark.
And you are right, that FPC 3 is a big leap, especially for UTF-8
applications. Some projects and packages need to check a lot of strings.
If you see a Lazarus release as an unity of IDE and compiler, then the
string change alone would require a 2.0. If you only see Lazarus, the
amount of incompatibilities are far less than 1.2 to 1.4.


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Literature about REST

2015-10-12 Thread Luiz Americo Pereira Camara
2015-10-11 7:03 GMT-03:00 Koenraad Lelong :

> Op 08-10-15 om 17:23 schreef Luiz Americo Pereira Camara:
>
>>
>>  > Hi,
>>  >
>>  > I would like to know more about web-programming with REST. Can anyone
>> recommend books or web-sites to read about it ? I virtually know nothing
>> about it.
>>
>> I read this book
>>
>> http://shop.oreilly.com/product/mobile/9780596805838.do
>>
>> Its a good one, with a few shortcomings:
>>
>> It uses examples with XML
>> Has a focus in HATEOAS. Particularly i dont buy HATEOS stuff, so i read
>> only until the CRUD service chapter.
>>
>> I have some free books/resources about it. I can send later
>>
>> Luiz
>>
>
> Hi Luiz,
>
> I would like those extra resources you mentioned.
>


http://bitworking.org/news/How_to_create_a_REST_Protocol (search for its
archive for more articles)
https://dzone.com/refcardz/rest-foundations-restful (requires free
registration)
https://msdn.microsoft.com/en-us/library/dd203052.aspx (skip WCF specific
content)
https://pages.apigee.com/rs/apigee/images/api-design-ebook-2012-03.pdf
(more advanced, about best practices)

I have tons of bookmarks some very specific or redundant. I can share anyway

Meanwhile I read some articles on the web, but I need more knowledge about
> html.
>
>
While REST is mostly used in web apps, is not tied to it. It's possible to
use, for example in desktop applications


PS: in the last years i read a lot about REST just to learn that is not a
closed concept / interface. Is more an  architecture  style based in some
principles. So don't despair if you feel lost or if some "Restful way" of
doing things does not match what you need or do.
In my case i threw away all the HATEOAS stuff keeping the rules of using
nouns in resource identifiers, using HTTP verbs and return codes etc. If is
Restful or not i don't know and don't care. It works for me.

Luiz
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread JuuS


On 10/12/2015 03:53 PM, Graeme Geldenhuys wrote:
> On 2015-10-12 13:03, JuuS wrote:
>> Any thoughts from anyone what a Laz 2 would be?
> 
> Mind control Think of the program, and Lazarus writes it. ;-)
> 
> Regards,
>   - Graeme -
> 

All good replies thank you! But...

...This is the best one!

Anyway, yes I see. Major reorganization(s) would certainly justify a 2.

Standing outside the developer group these (thanks all) types of needs
were something I couldn't see.

So anyway what about a 3.xx :) just kidding!

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Graeme Geldenhuys
On 2015-10-12 13:03, JuuS wrote:
> Any thoughts from anyone what a Laz 2 would be?

Mind control Think of the program, and Lazarus writes it. ;-)

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Tony Whyman

Sorry forgot to add the link

http://wiki.freepascal.org/Version_Numbering

On 12/10/15 14:07, Tony Whyman wrote:

This could be a good moment for someone to bring the Wiki up-to-date



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Tony Whyman
This could be a good moment for someone to bring the Wiki up-to-date 
(version 0.9.31 was a little while ago now). Also, the wiki page doesn't 
give any policy rules for interpreting major, minor and patch(?) numbers.


Interesting, if you took a pretty common view in that:

- patch numbers are used for bug fix releases
- minor numbers are changed for backwards but not forwards compatible 
changes (i.e. a 1.2.x app should still work under 1.4.x but the other 
way around is not true), and

- major changes are used when existing apps may be broken,

then Lazarus 2.0.x is only just around the corner. That's because as 
soon as FPC 3 becomes the required compiler there will be backwards 
compatibility issues (e.g. the TBookmark type changes break any app that 
uses it).


Tony Whyman
MWA

http://wiki.freepascal.org/Version_Numbering

On 12/10/15 13:03, JuuS wrote:

Hi,

Lazarus has had the number schemes 0.xxx to now of 1.4.xx

Before falling asleep it passed through my mind about a lazarus 2.xx and...

...I thought what could it be? Lazarus is already so good and so feature
filled that I struggled to understand what could possibly be in or
justify a Lazarus 2.xx

Any thoughts from anyone what a Laz 2 would be?

Julius

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Fabio Luis Girardi
>
> Lazarus with support for dynamic packages? (once FPC supports them which
> isn't that far in the future anymore ;) )
>

+1


-- 
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Juha Manninen
On Mon, Oct 12, 2015 at 3:03 PM, JuuS  wrote:
> Lazarus has had the number schemes 0.xxx to now of 1.4.xx
>
> Before falling asleep it passed through my mind about a lazarus 2.xx and...
>
> ...I thought what could it be? Lazarus is already so good and so feature
> filled that I struggled to understand what could possibly be in or
> justify a Lazarus 2.xx
>
> Any thoughts from anyone what a Laz 2 would be?

Thanks for the positive thinking! Usually people complain how buggy
Lazarus is and how it still misses crucial features.
Did you dream about Lazarus 2.0 after falling asleep? How did it look like? :)

The development version (trunk) already has new features like
configurable IDE Coolbar and configurable desktops + many other
improvements. They will surely be in next release.
Also Projects Groups will be there most likely.
Improved Unicode support breaks some code and justifies the big version change.

Not sure what other features will be in time, but there surely is a
lot to improve!

Dynamic packages (mentioned by others).
Proper Right-To-Left support (mentioned by others).
Integrated Pascal debugger (fpdebug) to get rid of GDB and its bugs +
limitations.
A way to search and install online packages from global repositories.
Support more widgetsets.
Easier cross-compilation.
Fix the > 1700 open bug reports.
Better documentation.
Etc... etc...

Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread zeljko

On 10/12/2015 02:42 PM, Anthony Walter wrote:

""Maybe, but only in case if it's easy to extract information if we are
under unity wm or other wm (I guess that it should not be an issue)."

{ UnityAppIndicatorInit returns true if Unity is the current desktop and
   the required appindicator libraries can be loaded }

function UnityAppIndicatorInit: Boolean;

The relevant HOWTO:

https://github.com/sysrpl/Lazarus.UnityAppIndicators/blob/master/lazarus/lcl/interfaces/gtk2/unitywsctrls.pas#L263-L267
https://github.com/sysrpl/Lazarus.UnityAppIndicators/blob/master/changes.patch#L18


ok, thanks. Can you provide result of TGtk2WidgetSet.GetWindowManager 
when you running simple app under unity ?


zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Anthony Walter
""Maybe, but only in case if it's easy to extract information if we are
under unity wm or other wm (I guess that it should not be an issue)."

{ UnityAppIndicatorInit returns true if Unity is the current desktop and
  the required appindicator libraries can be loaded }

function UnityAppIndicatorInit: Boolean;

The relevant HOWTO:

https://github.com/sysrpl/Lazarus.UnityAppIndicators/blob/master/lazarus/lcl/interfaces/gtk2/unitywsctrls.pas#L263-L267
https://github.com/sysrpl/Lazarus.UnityAppIndicators/blob/master/changes.patch#L18
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Anthony Walter
The exe is 64 bit and built with the Gtk2 widget set. So the thing to test
would be if the Qt/KDE desktop normally shows with Lazarus applications
built the Gtk2 tray icon.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Mattias Gaertner
On Mon, 12 Oct 2015 14:03:57 +0200
JuuS  wrote:

> Hi,
> 
> Lazarus has had the number schemes 0.xxx to now of 1.4.xx
> 
> Before falling asleep it passed through my mind about a lazarus 2.xx and...
> 
> ...I thought what could it be? Lazarus is already so good and so feature
> filled that I struggled to understand what could possibly be in or
> justify a Lazarus 2.xx
> 
> Any thoughts from anyone what a Laz 2 would be?

Probably many incompatibilities (more than usual).

For example project groups, UTF-8/16 strings, dynamic packages deserve
some changes that will break old code.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Jamal Gabra
I can think of a version that supports Right-To-Left, out of the box. Not
necessarily Laz. 2 though :)

Right now FlipChildren() must be used. It works, but not on all the
controls. For instance it does not work over the DateTimePicker very well,
to my knowledge/experience, I would say.

Probably in version 2, "BiDiMode:= bdRightToLeft;" would be enough to do
the trick.

I offered to help in this regard before, but I got lost between been busy
and try to find where to start.

Jamal

On Mon, Oct 12, 2015 at 3:03 PM, JuuS  wrote:

> Hi,
>
> Lazarus has had the number schemes 0.xxx to now of 1.4.xx
>
> Before falling asleep it passed through my mind about a lazarus 2.xx and...
>
> ...I thought what could it be? Lazarus is already so good and so feature
> filled that I struggled to understand what could possibly be in or
> justify a Lazarus 2.xx
>
> Any thoughts from anyone what a Laz 2 would be?
>
> Julius
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Jamal
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread Sven Barth
Am 12.10.2015 14:04 schrieb "JuuS" :
>
> Hi,
>
> Lazarus has had the number schemes 0.xxx to now of 1.4.xx
>
> Before falling asleep it passed through my mind about a lazarus 2.xx
and...
>
> ...I thought what could it be? Lazarus is already so good and so feature
> filled that I struggled to understand what could possibly be in or
> justify a Lazarus 2.xx
>
> Any thoughts from anyone what a Laz 2 would be?

Lazarus with support for dynamic packages? (once FPC supports them which
isn't that far in the future anymore ;) )

Regards,
Sven
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Play a sound/beep when compiling finished

2015-10-12 Thread Mark Morgan Lloyd

Ondrej Pokorny wrote:

On 12.10.2015 00:31, Mark Morgan Lloyd wrote:

Ondrej Pokorny wrote:

Is it possible to play a sound or beep when compiling was finished?
Sometimes compiling takes some time and  I am struggling to get to 
know that it finished.


Put something in the "execute after" command (or whatever it's called).

I normally display a time there so that I can see I did actually run a 
build, if I've looked at something else meanwhile.


But this has to be defined for every project separately, true?


A command to always be run after a build has completed (and possibly 
another to be run before a build has started) would seem to be a viable 
thing for the IDE.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Theoretical question about future of Lazarus

2015-10-12 Thread JuuS
Hi,

Lazarus has had the number schemes 0.xxx to now of 1.4.xx

Before falling asleep it passed through my mind about a lazarus 2.xx and...

...I thought what could it be? Lazarus is already so good and so feature
filled that I struggled to understand what could possibly be in or
justify a Lazarus 2.xx

Any thoughts from anyone what a Laz 2 would be?

Julius

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Play a sound/beep when compiling finished

2015-10-12 Thread Mattias Gaertner
On Mon, 12 Oct 2015 13:35:16 +0200
Ondrej Pokorny  wrote:

> On 12.10.2015 00:31, Mark Morgan Lloyd wrote:
> > Ondrej Pokorny wrote:
> >> Is it possible to play a sound or beep when compiling was finished?
> >> Sometimes compiling takes some time and  I am struggling to get to 
> >> know that it finished.
> >
> > Put something in the "execute after" command (or whatever it's called).
> >
> > I normally display a time there so that I can see I did actually run a 
> > build, if I've looked at something else meanwhile.
> 
> But this has to be defined for every project separately, true?

Yes.
There is no IDEIntf event yet for all tasks stopped, nor for
building project stopped.
Feel free to add one.


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Play a sound/beep when compiling finished

2015-10-12 Thread Ondrej Pokorny

On 12.10.2015 00:31, Mark Morgan Lloyd wrote:

Ondrej Pokorny wrote:

Is it possible to play a sound or beep when compiling was finished?
Sometimes compiling takes some time and  I am struggling to get to 
know that it finished.


Put something in the "execute after" command (or whatever it's called).

I normally display a time there so that I can see I did actually run a 
build, if I've looked at something else meanwhile.


But this has to be defined for every project separately, true?

Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Play a sound/beep when compiling finished

2015-10-12 Thread FreeMan
Thank you for suggesstion, Maybe get out of follow hundred green line in 
messagebox  I'm using osx and after execute line I wrote "say compiling 
finished" now my macbook talk to me :)


On 12.10.2015 01:31, Mark Morgan Lloyd wrote:

Ondrej Pokorny wrote:

Is it possible to play a sound or beep when compiling was finished?
Sometimes compiling takes some time and  I am struggling to get to 
know that it finished.


Put something in the "execute after" command (or whatever it's called).

I normally display a time there so that I can see I did actually run a 
build, if I've looked at something else meanwhile.





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Luca Olivetti

El 12/10/15 a les 09:34, Anthony Walter ha escrit:


A linux x86_64 compiled executable example is included.



FWIW, that executable doesn't show any tray icon in kubuntu 15.04 with 
plasma 5.3.2.
As I reported before, trayicons in this environment don't work either 
with unpatched lazarus with the gtk2 widgetset but do work with the qt one.
Disclaimer: I don't usually need tryicons, but the various threads on 
them piqued my curiosity.


Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Google Docs for help documentation

2015-10-12 Thread Graeme Geldenhuys
On 2015-10-11 20:28, Richard Mace wrote:
> I was wondering what people thought about using a Google Doc as a help file?

I'm sorry to be blunt, but that is a terrible idea.

Personally I find it very annoying if applications don't include help -
and by that I mean "Context Sensitive Help". Simply supplying a massive
web page, or PDF document is just terrible for the end-user. It's as if
the developer or company forgot about the documentation or just made it
a afterthought. This seems to be the trend unfortunately - giving no
context sensitive help. I miss the attention to detail we saw in the
90's. If you include a PDF, it tells me there should be printed
documentation to, because that is what the PDF supplements.

When I press F1 or click the Help button in a dialog, I want help
specific to that dialog or the widget that had focus.

I want very fast help loading times - you will not get that with PDF's
or even worse, with Google Docs (shared document).

I want full text searching.

I want advanced searching functions.

I want annotation support. I so often add my own notes inside help so
that the topic is more clear to me. Sometimes I even include some source
code examples - depending what the help file relates too.

I suggest using something like INF (with DocView) or CHM help. DocView
has all the features (and more) listed above. Here is a complete example
showing how to use DocView with LCL applications. You need to be logged
in to the forum to see the actual attachment with source code.


http://forum.lazarus.freepascal.org/index.php/topic,27864.msg173887.html#msg173887


ps:
  I have nothing against Google Docs for generating documents like
letters, shared software specs etc. It is good in that sense, and works
really well - at least as long as the documents are not too big - in
which case it becomes really slow. eg: OpenOffice, LibreOffice and
MS-Word opens a 150 page spec in an instant, and it is fast to jump
around. With Google Docs, Office 365, Atlassian Confluence etc it is dog
slow.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread zeljko

On 10/12/2015 10:52 AM, Juha Manninen wrote:

A stupid question: what is the best Ubuntu version to test with?
I have avoided Unity desktop so far exactly because of the Lazarus
related problems.

Another question: what about Lazarus built with QT bindings but
running on Unity?


Don't know, but Qt handles such stuff and QTrayIcon is transparent to LCL.



Third question: would it be possible to unite the TrayIcon code for
Unity and other desktops? Now you have 2 separate implementations.


Maybe, but only in case if it's easy to extract information if we are 
under unity wm or other wm (I guess that it should not be an issue).


zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Suggestion for IDE

2015-10-12 Thread FreeMan

On 12.10.2015 11:28, Michael Van Canneyt wrote:

On Mon, 12 Oct 2015, Ondrej Pokorny wrote:


On 12.10.2015 09:37, Michael Van Canneyt wrote:


I actually like this "old view". The 'Alt-P' method is much slower 
for me. I even restore the 'old view' in Delphi XE 10.


Freeman's suggestions would not change anything about your settings. 
It is irrelevant if the component palette is visible or not for the 
splitter visibility.


I know. I just wanted to point out that preferences differ.



All person is unique, we have NOT fill, think etc. has to same. So I 
wrote "for me" :) My suggestion was if I can not resize why I show it, 
it can be hide, thats all, and this is not much importent . Other ones 
can be useful maybe




Btw. it's not "Delphi XE 10" but "Delphi 10". The 10 is the new 
product-line name - it replaced the XE product-line :) Yes, their 
marketing office was over-creative and almost nobody understands it 
:) So nice we have Lazarus 1.x.x!


It's in fact "Delphi 10 Seattle".

But with the sale of Embarcadero to Idera, maybe the name will change 
again; I have no idea.


Michael.


I saw this in forum, and I shared it in my forum as well. one membership 
asked good question, did any body see this on embarcadero?


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Michael Van Canneyt



On Mon, 12 Oct 2015, Juha Manninen wrote:


A stupid question: what is the best Ubuntu version to test with?
I have avoided Unity desktop so far exactly because of the Lazarus
related problems.

Another question: what about Lazarus built with QT bindings but
running on Unity?

Third question: would it be possible to unite the TrayIcon code for
Unity and other desktops? Now you have 2 separate implementations.


Ow, that is rather bad :(

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Juha Manninen
A stupid question: what is the best Ubuntu version to test with?
I have avoided Unity desktop so far exactly because of the Lazarus
related problems.

Another question: what about Lazarus built with QT bindings but
running on Unity?

Third question: would it be possible to unite the TrayIcon code for
Unity and other desktops? Now you have 2 separate implementations.

Regards,
Juha

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Suggestion for IDE

2015-10-12 Thread Michael Van Canneyt



On Mon, 12 Oct 2015, Ondrej Pokorny wrote:


On 12.10.2015 09:37, Michael Van Canneyt wrote:


I actually like this "old view". The 'Alt-P' method is much slower for me. 
I even restore the 'old view' in Delphi XE 10.


Freeman's suggestions would not change anything about your settings. It is 
irrelevant if the component palette is visible or not for the splitter 
visibility.


I know. I just wanted to point out that preferences differ.



Btw. it's not "Delphi XE 10" but "Delphi 10". The 10 is the new product-line 
name - it replaced the XE product-line :) Yes, their marketing office was 
over-creative and almost nobody understands it :) So nice we have Lazarus 
1.x.x!


It's in fact "Delphi 10 Seattle".

But with the sale of Embarcadero to Idera, maybe the name will change again; 
I have no idea.


Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Suggestion for IDE

2015-10-12 Thread Ondrej Pokorny

On 12.10.2015 09:37, Michael Van Canneyt wrote:


I actually like this "old view". The 'Alt-P' method is much slower for 
me. I even restore the 'old view' in Delphi XE 10.


Freeman's suggestions would not change anything about your settings. It 
is irrelevant if the component palette is visible or not for the 
splitter visibility.


Btw. it's not "Delphi XE 10" but "Delphi 10". The 10 is the new 
product-line name - it replaced the XE product-line :) Yes, their 
marketing office was over-creative and almost nobody understands it :) 
So nice we have Lazarus 1.x.x!


Ondrej

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Suggestion for IDE

2015-10-12 Thread Michael Van Canneyt



On Sun, 11 Oct 2015, FreeMan wrote:

I hide component palette, I don't need it every time, When I need any 
component "alt + P" show component search, its much easy and useful. of 
course for me. And Editor toolbar, add much used menu item on one line. This 
mean, Much more Source editor area and can see much source line without 
scroll. For me better then huge unuseful IDE main toolbar. This huge bulky 
view style similar from delphi 1


I actually like this "old view". The 'Alt-P' method is much slower for me. 
I even restore the 'old view' in Delphi XE 10.


Preferences vary wildly...

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Patch for TTrayIcon on Ubuntu's Unity

2015-10-12 Thread Anthony Walter
I create a fix for Lazarus TTrayIcon on Unity. if anyone wants to test it
out or add it to the LCL please do so. The fix is located here:

https://github.com/sysrpl/Lazarus.UnityAppIndicators

To use this fix get the code above and:

Add 'unitywsctrls.pas' to 'lazarus/lcl/interfaces/gtk2'
Apply patch to your 'lazarus' folder
Rebuild the 'lcl' package with the gtk2 widget set

A linux x86_64 compiled executable example is included.

A few notes:

It seems to me (which I say a lot because I'm not 100% positive) that app
indicators in Unity were designed to restrict programmers and guide the UI
design of Ubuntu in a specific direction. Namely to create more uniform
visual styles and user interaction with apps.

As such I believe the following restrictions to apply to Unity app
indicators:

  * You cannot receive click or any mouse events for icons in the tray.
  * A menu is required for an app indicator and the only action allowed is
to show the menu when the mouse clicks with either button on a tray icon.
  * An app can only have one app indicator and attempts to destroy or
create a new one fail.
  * You can only set the menu for an app indicator one time.
  * Icons can be set from files only (you are supposed to use
/usr/icons/share with themes).

More notes are in the source code.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus