in reply to Re^2: Icon generation on the fly
in thread Icon generation on the fly

If you can't build Gtk2, then you could use SystemTray::Applet. It doesn't require Gtk2, and it doessn't require any specialized knowledge of the user's toolkit.
#!/usr/bin/perl use strict; use warnings; use SystemTray::Applet; my $num = 10; my $applet = SystemTray::Applet->new( "text" => $num, "callback" => sub { my ($self) = @_; $self->{"text"} = $num; } );

Replies are listed 'Best First'.
Re^4: Icon generation on the fly
by chessgui (Scribe) on Feb 01, 2012 at 05:36 UTC
    SystemTray::Applet can't be built in the legal way (it detects a circular dependency with SystemTray::Applet::Win32). If the module is built with force it prints '10' on STDOUT then freezes. If I build SystemTray::Applet::Win32 with force and use it instead of SystemTray::Applet it creates an empty icon in the system tray over which if I hover with the cursor it pops up a bubble saying '10'. I would rather like it to represent '10' in the tray permanently.