forked from AuroraMiddleware/gtk
Use gtk_widget_get_tooltip_text for gtk_tooltips_data_get in Gail
This commit is contained in:
parent
435606a5bf
commit
99f63451e0
@ -243,7 +243,6 @@ gail_widget_get_description (AtkObject *accessible)
|
||||
{
|
||||
/* Get the tooltip from the widget */
|
||||
GtkAccessible *obj = GTK_ACCESSIBLE (accessible);
|
||||
GtkTooltipsData *data;
|
||||
|
||||
gail_return_val_if_fail (obj, NULL);
|
||||
|
||||
@ -255,11 +254,7 @@ gail_widget_get_description (AtkObject *accessible)
|
||||
|
||||
gail_return_val_if_fail (GTK_WIDGET (obj->widget), NULL);
|
||||
|
||||
data = gtk_tooltips_data_get (obj->widget);
|
||||
if (data == NULL)
|
||||
return NULL;
|
||||
|
||||
return data->tip_text;
|
||||
return gtk_widget_get_tooltip_text (obj->widget);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user