On 5/18/06, A.J. Venter <[EMAIL PROTECTED]> wrote:
For what it helps, I did quite a bit of research and couldn't actually find
anything in the GTK1.2 docs - in fact there is no mention of a trayicon
component there (I assume it comes from somewhere close by though).

I found at a gtk mailling list some info about tray icons on gtk 2. Here it is:

http://mail.gnome.org/archives/gtk-devel-list/2005-August/msg00168.html

Also some info about it on KDE:

http://bugs.kde.org/show_bug.cgi?id=108076

I reckon the answer here is to go look at the code for something like an old
version of gaim or such that uses gtk1 status mesages, and then implement it
with calls to the handle - if I find the answer, I'll send you a patch.

I think the best solution here is not to copy or work on top of them,
but to implement our own notification system. I think that a small,
borderless LCL Window could do the trick. We can add some methods on
TTrayIcon to interact with this window.

Here is a list of things we might want in out notification system:

* text
* popup title
* icon (picture)
* time until the notification expires (add possibility to never
expire?). Add a possibility to link this to hint expire time?
* a X button to close the notification

The appearance is another question. Simple rectangle is the most obvious.

Some way to change the appearance could be good. Since I´m thinking of
using a TForm for this, we could just give the TForm for the user and
let it play with it to create better looking notifications.

A bigger issue for me right now is that it no longer works with GTK2 - it
causes an instant segfault - oddly the backtrace shows it's calling on the
GTK1 units !
I don't know why it would be linking they tray icon against gtk1 if my app is
being linked to gtk2 - possibly because I run lazarus in gtk1, but I cannot
test this theory since the current lazarus builds segfault in gtk2

No, this isn´t the cause. I just noticed this too. Until recently my
gtk1 Lazarus was correctly compiling TTrayIcon for Gtk2. Maybe Gtk2
define changed? I am not on Linux now, but latter I will take a look.

--
Felipe Monteiro de Carvalho

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to