[gtk+] a11y: remove implementation for component->get_size



commit 79ed2b790a228d243c030f3a104cf2066b681518
Author: Alejandro PiƱeiro <apinheiro igalia com>
Date:   Fri Feb 7 17:44:14 2014 +0100

    a11y: remove implementation for component->get_size
    
    Recently get_size was removed because it was redundant, as
    you can get the same information from get_extents.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723863

 gtk/a11y/gtkwidgetaccessible.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/gtk/a11y/gtkwidgetaccessible.c b/gtk/a11y/gtkwidgetaccessible.c
index 8c4d0c5..dc6bce9 100644
--- a/gtk/a11y/gtkwidgetaccessible.c
+++ b/gtk/a11y/gtkwidgetaccessible.c
@@ -604,21 +604,6 @@ gtk_widget_accessible_get_extents (AtkComponent   *component,
     }
 }
 
-static void
-gtk_widget_accessible_get_size (AtkComponent *component,
-                                gint         *width,
-                                gint         *height)
-{
-  GtkWidget *widget;
-
-  widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (component));
-  if (widget == NULL)
-    return;
-
-  *width = gtk_widget_get_allocated_width (widget);
-  *height = gtk_widget_get_allocated_height (widget);
-}
-
 static AtkLayer
 gtk_widget_accessible_get_layer (AtkComponent *component)
 {
@@ -760,7 +745,6 @@ static void
 atk_component_interface_init (AtkComponentIface *iface)
 {
   iface->get_extents = gtk_widget_accessible_get_extents;
-  iface->get_size = gtk_widget_accessible_get_size;
   iface->get_layer = gtk_widget_accessible_get_layer;
   iface->grab_focus = gtk_widget_accessible_grab_focus;
   iface->set_extents = gtk_widget_accessible_set_extents;


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