Forum: Ruby-Gnome 2 Gtk::Tooltip

Posted by Marc Heiler (shevegen)
on 2011-09-26 22:53
Lately I've been playing with Tooltips a bit.

As in, subclass a button who also shows a tooltip:

  desc = 'To restart the game you can also click ALT+R.'
  Gtk::Tooltips.new.set_tip(self, desc, nil)

Now I compared this to HTML and Javascript. Perhaps you know the fancy
popup boxes you can do in HTML and Javascript?

With colours and a coloured border. And they even move a bit when the
mouse moves.

I was wondering whether there is a very easy way to style those Tooltip
boxes in GTK, perhaps in ruby-gtk3?

HTML, CSS and Javascript gives me a lot of freedom, I feel that quite
often the same is much much harder in Gtk, at least up to version 2 (I
have not played much with GTK 3 yet)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.