Re: [g-a-devel]Accessibility for gperfmeter]



Hema Seetharamaiah wrote:
> 
> > I generally don't think the tooltip approach is the right way
> > to go (though it might be useful); Marc's suggestion that every meter is
> > an AtkValue-implementing child sounds much more correct.
> 
> A meter in the gperfmeter is not a separate Gtk widget. The meters are
> all drawn into the single GtkDrawing area's drawable at different pixel
> positions (either horizonally or vertically) using gdk calls.
> 
> I am not sure if there is direct way to implement an accessible object
> for each of the meter and a bit of rewriting of the gperfmeter code may
> be required to have individual drawable child for each of the meter?.

Not required: you can easily create an accessible object for each meter,
whether it has a corresponding drawable or not.  The meters don't
even have to have GObjects associated with them, though it'd be easier
if they did.

The trick is to override get_n_children and ref_child in the parent 
container, then return the AtkObjects constructed for the "meters"
(whatever they are, as I said they don't have to be structures or
objects of any particular type).

-Bill
 
> Is my understanding correct or am I missing something?
> 
> Regards,
> Hema



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]