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
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.
* 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
> 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
> 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
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
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_
* 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
> 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
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
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
* 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.
12 matches
Mail list logo