Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-25 Thread Tim Janik
On Mon, 25 Jun 2007, Kristian Rietveld wrote: > On Mon, Jun 25, 2007 at 09:34:56PM +0100, Damon Chaplin wrote: >> Tim said we get motion hints everywhere now anyway (though I can't see >> where that is done in the code). See the last paragraph here: >> http://mail.gnome.org/archives/gtk-devel-li

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-25 Thread Kristian Rietveld
On Mon, Jun 25, 2007 at 09:34:56PM +0100, Damon Chaplin wrote: > Tim said we get motion hints everywhere now anyway (though I can't see > where that is done in the code). See the last paragraph here: > http://mail.gnome.org/archives/gtk-devel-list/2007-March/msg00230.html I don't think Tim was t

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-25 Thread Damon Chaplin
On Mon, 2007-06-25 at 15:38 +0200, Kristian Rietveld wrote: > On Sat, Jun 16, 2007 at 12:18:34AM +0100, Damon Chaplin wrote: > > Is "has-tooltip" needed for anything besides the efficiency issue? (e.g. > > a11y or something?) > > In order for the tooltips implementation to work, we need to monitor

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-25 Thread Kristian Rietveld
On Sat, Jun 16, 2007 at 12:18:34AM +0100, Damon Chaplin wrote: > Is "has-tooltip" needed for anything besides the efficiency issue? (e.g. > a11y or something?) In order for the tooltips implementation to work, we need to monitor motion and related events on the widget's windows. When has-tooltip

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-16 Thread Damon Chaplin
On Sat, 2007-06-16 at 01:59 +0200, Tim Janik wrote: > On Sat, 16 Jun 2007, Damon Chaplin wrote: > > > On Fri, 2007-06-15 at 11:25 +0200, Tim Janik wrote: > >> please read Kris' description again. > >> if you set ::tooltip-markup, ::has-tooltip is set automatically, and > >> you don't need to worry

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-15 Thread Tim Janik
On Sat, 16 Jun 2007, Damon Chaplin wrote: > On Fri, 2007-06-15 at 11:25 +0200, Tim Janik wrote: >> please read Kris' description again. >> if you set ::tooltip-markup, ::has-tooltip is set automatically, and >> you don't need to worry about it. this is *not* the case if you connect to >> ::query-t

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-15 Thread Damon Chaplin
On Fri, 2007-06-15 at 11:25 +0200, Tim Janik wrote: > On Thu, 14 Jun 2007, Damon Chaplin wrote: > > > On Tue, 2007-06-12 at 13:59 +0200, Kristian Rietveld wrote: > > > >> 2. When you need a tooltip with a little more fancy contents, like > >> adding an image, or you want the tooltip to have d

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-15 Thread Emmanuele Bassi
On Tue, 2007-06-12 at 13:59 +0200, Kristian Rietveld wrote: > 1. If everything you need is a tooltip displaying a simple text string, > with or without Pango markup, the only thing you have to do is > just setting the "tooltip-markup" property. just a small add-on, fresh from the commit

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-15 Thread Tim Janik
On Thu, 14 Jun 2007, BJörn Lindqvist wrote: On 6/12/07, Kristian Rietveld <[EMAIL PROTECTED]> wrote: On Sun, Jun 10, 2007 at 10:38:44AM +0200, Murray Cumming wrote: There's also a new GtkTooltip object. Could we have some more information about how this should be used and if it replaces any ex

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-15 Thread Tim Janik
On Thu, 14 Jun 2007, Damon Chaplin wrote: > On Tue, 2007-06-12 at 13:59 +0200, Kristian Rietveld wrote: > >> 2. When you need a tooltip with a little more fancy contents, like >> adding an image, or you want the tooltip to have different contents >> per GtkTreeView row or cell, you will h

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-14 Thread Yevgen Muntyan
Kristian Rietveld wrote: > [snip] > In the GTK+ source code you will find a test app testing all of the > above methods in gtk+/tests/testtooltips.c. There are examples for > simple tooltips on buttons (also insensitive buttons!), tooltips on > GtkTreeView rows, tooltips on GtkTextView tags and a

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-14 Thread Jeff Waugh
> A new API called "GtkTooltip" replaces an API called "GtkTooltips"? Seems > like that could become very confusing.. especially when using two or more > GtkTooltips. Couldn't you have came up with something a little more > imaginative? :) Perhaps "GtkTooltipEx"?

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-14 Thread BJörn Lindqvist
On 6/12/07, Kristian Rietveld <[EMAIL PROTECTED]> wrote: > On Sun, Jun 10, 2007 at 10:38:44AM +0200, Murray Cumming wrote: > > There's also a new GtkTooltip object. Could we have some more information > > about how this should be used and if it replaces any existing API, please? > > Sure ;) As Mat

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-14 Thread Damon Chaplin
On Tue, 2007-06-12 at 13:59 +0200, Kristian Rietveld wrote: > 2. When you need a tooltip with a little more fancy contents, like > adding an image, or you want the tooltip to have different contents > per GtkTreeView row or cell, you will have to do a little more work: > > - Set th

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-14 Thread Tshepang Lekhonkhobe
On 6/12/07, Kristian Rietveld <[EMAIL PROTECTED]> wrote: > On Sun, Jun 10, 2007 at 10:38:44AM +0200, Murray Cumming wrote: > > There's also a new GtkTooltip object. Could we have some more information > > about how this should be used and if it replaces any existing API, please? > > Sure ;) As Mat

Re: The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-12 Thread Murray Cumming
On Tue, 2007-06-12 at 13:59 +0200, Kristian Rietveld wrote: > On Sun, Jun 10, 2007 at 10:38:44AM +0200, Murray Cumming wrote: > > There's also a new GtkTooltip object. Could we have some more information > > about how this should be used and if it replaces any existing API, please? > > Sure ;) A

The new tooltips API in 5 minutes [Was: Re: Whats coming in GTK+ 2.12, continued]

2007-06-12 Thread Kristian Rietveld
On Sun, Jun 10, 2007 at 10:38:44AM +0200, Murray Cumming wrote: > There's also a new GtkTooltip object. Could we have some more information > about how this should be used and if it replaces any existing API, please? Sure ;) As Matthias pointed out in one of his other mails, GTK+ 2.12 has a bran