[gtk+/gtk-2-90] Use gtk_widget_get_tooltip_text for gtk_tooltips_data_get in Gail



commit 1e2a73160e56b9f3e618681a2159ec880bc3e407
Author: Christian Dywan <christian twotoasts de>
Date:   Thu Dec 10 12:29:23 2009 +0100

    Use gtk_widget_get_tooltip_text for gtk_tooltips_data_get in Gail

 modules/other/gail/gailwidget.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/modules/other/gail/gailwidget.c b/modules/other/gail/gailwidget.c
index 1b0cc31..39f6670 100644
--- a/modules/other/gail/gailwidget.c
+++ b/modules/other/gail/gailwidget.c
@@ -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);
 
@@ -254,12 +253,8 @@ gail_widget_get_description (AtkObject *accessible)
         return 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);
     }
 }
 



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