Forum: Ruby-Gnome 2 Gtk::Tooltip - delay?

4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2013-09-09 11:50
Hi,

I like Tooltips but they are displayed almost instantly.

I want to set a custom delay, like "wait 3 seconds before displaying a
tooltip", where the number 3 can be toggled by me or the user
eventually.

Any idea how to achieve this?
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2013-09-14 14:38
(Received via mailing list)
Hi,

In <7f212449cc854c6007db524b8c19ce22@ruby-forum.com>
  "[ruby-gnome2-devel-en] Gtk::Tooltip - delay?" on Mon, 09 Sep 2013
11:50:35 +0200,
  Marc Heiler <ruby-forum-incoming@andreas-s.net> wrote:

> I like Tooltips but they are displayed almost instantly.
>
> I want to set a custom delay, like "wait 3 seconds before displaying a
> tooltip", where the number 3 can be toggled by me or the user
> eventually.
>
> Any idea how to achieve this?

It seems that you can customize the timeout by
"gtk-tooltip-timeout" configuration in GTK+ 3:

  https://developer.gnome.org/gtk3/stable/GtkSetting...


For example:

  require "gtk3"
  # "wait 3 seconds before displaying a tooltip"
  Gtk::Settings.default.gtk_tooltip_timeout = 3000
  window = Gtk::Window.new
  window.tooltip_text = "Hello"
  window.show_all
  Gtk.main

Thanks,
--
kou
4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2013-09-27 22:25
Thanks a lot kou!
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2013-09-28 02:37
(Received via mailing list)
In <85bcc3585e342f7ef4fb17d178b31dc3@ruby-forum.com>
  "Re: [ruby-gnome2-devel-en] Gtk::Tooltip - delay?" on Fri, 27 Sep 2013
22:25:19 +0200,
  Marc Heiler <ruby-forum-incoming@andreas-s.net> wrote:

> Thanks a lot kou!

You're welcome. :-)

--
kou
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.