Use gtk_widget_get_tooltip_text for gtk_tooltips_data_get in Gail

This commit is contained in:
Christian Dywan 2009-12-17 10:41:11 +01:00
parent 435606a5bf
commit 99f63451e0

View File

@ -243,7 +243,6 @@ gail_widget_get_description (AtkObject *accessible)
{ {
/* Get the tooltip from the widget */ /* Get the tooltip from the widget */
GtkAccessible *obj = GTK_ACCESSIBLE (accessible); GtkAccessible *obj = GTK_ACCESSIBLE (accessible);
GtkTooltipsData *data;
gail_return_val_if_fail (obj, NULL); gail_return_val_if_fail (obj, NULL);
@ -254,12 +253,8 @@ gail_widget_get_description (AtkObject *accessible)
return NULL; return NULL;
gail_return_val_if_fail (GTK_WIDGET (obj->widget), NULL); 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);
} }
} }