Re: [orca-list] Notification Icons Question



On Wed, Dec 08, 2010 at 02:55:07PM EST, Luke Yelavich wrote:
It is, but if an icon is the only thing used to represent an option/button/menu etc, then of course GTK 
can't tell the user what it is, so its up to the developer to label the icon. In some instances, its simply 
a matter of adding a simple line of code, something along these lines. Note in this example, I am assuimg 
that the pointer/variable is already of type GtkWidget:

atk_object_set_name(icon_widget, "label for icon);

Actually, thats not quite correct, it should be this:

atk_object_set_name(gtk_widget_get_accessible(icon_widget), "label for icon);

Luke



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