Programmatically popup a tooltip

2005-05-13 Thread ofey aikon
Is there a way to programmatically popup a tooltip using Gtk2::Tooltip ? I tried the force_window() api but that doesn't seem to be meant for this purpose. If you are wondering what I am upto, I want to move my mouse over a Gtk2::Image and based on the co-ordinates, I want to popup a toolti

Re: Programmatically popup a tooltip

2005-05-13 Thread muppet
ofey aikon said: > Is there a way to programmatically popup a tooltip using Gtk2::Tooltip > ? I tried the force_window() api but that doesn't seem to be meant for > this purpose. Hrm. Try gtk-app-devel-list. Certainly someone there has solved to this problem already.

Re: Programmatically popup a tooltip

2005-05-13 Thread A. Pagaltzis
* ofey aikon <[EMAIL PROTECTED]> [2005-05-13 17:40]: > Is there a way to programmatically popup a tooltip using > Gtk2::Tooltip ? I tried the force_window() api but that doesn't > seem to be meant for this purpose. : <http://developer.gnome.org/doc/API/2

Re: Programmatically popup a tooltip

2005-05-13 Thread ofey aikon
> Hrm. Try gtk-app-devel-list. Certainly someone there has solved to this > problem already. Googling gave me this thread... Not too helpful for me though. http://mail.gnome.org/archives/gtk-app-devel-list/2004-May/msg00201.html ___ gtk-perl-list mail

Re: Programmatically popup a tooltip

2005-05-13 Thread ofey aikon
> This doesn't seem very satisfactory, but despite a > good amount of searching I can't see how widgets and tooltips > interface with each other, so there seems not to be any easier > approach. I tried a ugly hack like this... my $TOOLTIP = Gtk2::Window->new('toplevel'); $TOOLTIP->set_decorated(0

Re: Programmatically popup a tooltip

2005-05-13 Thread muppet
A. Pagaltzis said: > * ofey aikon <[EMAIL PROTECTED]> [2005-05-13 17:40]: >> If you are wondering what I am upto, I want to move my mouse >> over a Gtk2::Image and based on the co-ordinates, I want to >> popup a tooltip and display different text. > > The only straightforward solution seems to be

Re: Programmatically popup a tooltip

2005-05-13 Thread muppet
ofey aikon said: > my $TOOLTIP = Gtk2::Window->new('toplevel'); ... > 2. Since this is another window altogether, it'll show up on my win32 > taskbar (I guess same for other OS too). That's ugly for such an > insignificant tooltip popup window :) >From the C API reference: "In GTK+, GTK_WINDOW_

Re: Programmatically popup a tooltip

2005-05-13 Thread A. Pagaltzis
* muppet <[EMAIL PROTECTED]> [2005-05-13 18:40]: > That sounds like a recipe for resource starvation. I know. If you only want to display a couple different tooltips as in an imagemap, though, it might be workable. > The solution is big changes to the design of tooltips to allow > a widget to par

Re: Programmatically popup a tooltip

2005-05-13 Thread ofey aikon
> popup windows are not controlled by the window manager." > Of course, that means you have to position the window manually, which helps > work around your other gripe, that you didn't like the position so much. ;-) Well ! Here is a complete example to display popup tooltips on the hotspots in a

Re: Programmatically popup a tooltip

2005-05-13 Thread Quentin
I've got something almost working : my $tooltips=Gtk2::Tooltips->new; $tooltips->set_tip($eventbox,''); my $timeout; $eventbox->signal_connect(enter_notify_event => sub { warn "@_"; $timeout=Glib::Timeout->add(1000,sub { my ($x,$y)=$image->get_pointer; warn "$x,$y\n

Re: Programmatically popup a tooltip

2005-05-13 Thread muppet
A. Pagaltzis said: > * muppet <[EMAIL PROTECTED]> [2005-05-13 18:40]: >> That sounds like a recipe for resource starvation. > > I know. If you only want to display a couple different tooltips > as in an imagemap, though, it might be workable. > >> The solution is big changes to the design of toolt

Re: Programmatically popup a tooltip

2005-05-13 Thread A. Pagaltzis
* muppet <[EMAIL PROTECTED]> [2005-05-13 21:25]: > http://bugzilla.gnome.org/show_bug.cgi?id=50619 > http://bugzilla.gnome.org/show_bug.cgi?id=80980 > > The problem is that it's public API change, and the team is > being very careful about it. This discussion has been going on > for a long time.