[gtk+] Remove gail_widget_new()



commit a0790f10002066254d3dee44f766d9b7ae267e8e
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jun 23 00:09:18 2011 -0400

    Remove gail_widget_new()
    
    The function was unused and unnecessary.

 gtk/a11y/gailwidget.c |   16 ----------------
 gtk/a11y/gailwidget.h |    2 --
 2 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/gtk/a11y/gailwidget.c b/gtk/a11y/gailwidget.c
index 358c084..e2b1c3d 100644
--- a/gtk/a11y/gailwidget.c
+++ b/gtk/a11y/gailwidget.c
@@ -188,22 +188,6 @@ gail_widget_real_initialize (AtkObject *obj,
   obj->role = ATK_ROLE_UNKNOWN;
 }
 
-AtkObject* 
-gail_widget_new (GtkWidget *widget)
-{
-  GObject *object;
-  AtkObject *accessible;
-
-  g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-
-  object = g_object_new (GAIL_TYPE_WIDGET, NULL);
-
-  accessible = ATK_OBJECT (object);
-  atk_object_initialize (accessible, widget);
-
-  return accessible;
-}
-
 /*
  * This function specifies the function to be called when the widget
  * is destroyed
diff --git a/gtk/a11y/gailwidget.h b/gtk/a11y/gailwidget.h
index ddc8f3a..438f6e4 100644
--- a/gtk/a11y/gailwidget.h
+++ b/gtk/a11y/gailwidget.h
@@ -58,8 +58,6 @@ struct _GailWidgetClass
 
 };
 
-AtkObject*     gail_widget_new         (GtkWidget       *widget);
-
 G_END_DECLS
 
 #endif /* __GAIL_WIDGET_H__ */



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