[gtk+] a11y: Make treeview header and caption no longer settable



commit 44e4b94acba4df4fe7e88bf366c893d407ce90de
Author: Benjamin Otte <otte redhat com>
Date:   Thu Jun 23 20:58:51 2011 +0200

    a11y: Make treeview header and caption no longer settable
    
    It's not exposed in AT-SPI so we don't need it.

 gtk/a11y/gailtreeview.c |   91 -----------------------------------------------
 gtk/a11y/gailtreeview.h |    2 -
 2 files changed, 0 insertions(+), 93 deletions(-)
---
diff --git a/gtk/a11y/gailtreeview.c b/gtk/a11y/gailtreeview.c
index 89639d4..e4e990c 100644
--- a/gtk/a11y/gailtreeview.c
+++ b/gtk/a11y/gailtreeview.c
@@ -102,13 +102,6 @@ static void             gail_tree_view_set_column_header
                                                         (AtkTable               *table,
                                                          gint                   column,
                                                          AtkObject              *header);
-static AtkObject*
-                        gail_tree_view_get_caption      (AtkTable               *table);
-static void             gail_tree_view_set_caption      (AtkTable               *table,
-                                                         AtkObject              *caption);
-static AtkObject*       gail_tree_view_get_summary      (AtkTable               *table);
-static void             gail_tree_view_set_summary      (AtkTable               *table,
-                                                         AtkObject              *accessible);
 static const gchar*
                         gail_tree_view_get_column_description
                                                         (AtkTable               *table,
@@ -314,13 +307,6 @@ static GQuark quark_column_desc_object = 0;
 static GQuark quark_column_header_object = 0;
 static gboolean editing = FALSE;
 
-struct _GailTreeViewRowInfo
-{
-  GtkTreeRowReference *row_ref;
-  gchar *description;
-  AtkObject *header;
-};
-
 struct _GailTreeViewCellInfo
 {
   GailCell *cell;
@@ -424,8 +410,6 @@ gail_tree_view_real_initialize (AtkObject *obj,
   ATK_OBJECT_CLASS (gail_tree_view_parent_class)->initialize (obj, data);
 
   view = GAIL_TREE_VIEW (obj);
-  view->caption = NULL;
-  view->summary = NULL;
   view->col_data = NULL;
   view->focus_cell = NULL;
   view->old_hadj = NULL;
@@ -617,11 +601,6 @@ gail_tree_view_finalize (GObject	    *object)
   if (view->idle_expand_id)
     g_source_remove (view->idle_expand_id);
 
-  if (view->caption)
-    g_object_unref (view->caption);
-  if (view->summary)
-    g_object_unref (view->summary);
-
   if (view->tree_model)
     disconnect_model_signals (view);
 
@@ -1104,10 +1083,6 @@ atk_table_interface_init (AtkTableIface *iface)
   iface->get_row_extent_at = NULL;
   iface->get_column_header = gail_tree_view_get_column_header;
   iface->set_column_header = gail_tree_view_set_column_header;
-  iface->get_caption = gail_tree_view_get_caption;
-  iface->set_caption = gail_tree_view_set_caption;
-  iface->get_summary = gail_tree_view_get_summary;
-  iface->set_summary = gail_tree_view_set_summary;
   iface->get_column_description = gail_tree_view_get_column_description;
   iface->set_column_description = gail_tree_view_set_column_description;
 }
@@ -1504,39 +1479,6 @@ gail_tree_view_set_column_header (AtkTable  *table,
                          &values, NULL);
 }
 
-static AtkObject*
-gail_tree_view_get_caption (AtkTable	*table)
-{
-  GailTreeView* obj = GAIL_TREE_VIEW (table);
-
-  return obj->caption;
-}
-
-static void
-gail_tree_view_set_caption (AtkTable	*table,
-                            AtkObject   *caption)
-{
-  GailTreeView* obj = GAIL_TREE_VIEW (table);
-  AtkPropertyValues values = { NULL };
-  AtkObject *old_caption;
-
-  old_caption = obj->caption;
-  obj->caption = caption;
-  if (obj->caption)
-    g_object_ref (obj->caption);
-  g_value_init (&values.old_value, G_TYPE_POINTER);
-  g_value_set_pointer (&values.old_value, old_caption);
-  g_value_init (&values.new_value, G_TYPE_POINTER);
-  g_value_set_pointer (&values.new_value, obj->caption);
-
-  values.property_name = "accessible-table-caption-object";
-  g_signal_emit_by_name (table, 
-                         "property_change::accessible-table-caption-object", 
-                         &values, NULL);
-  if (old_caption)
-    g_object_unref (old_caption);
-}
-
 static const gchar*
 gail_tree_view_get_column_description (AtkTable	  *table,
                                        gint       in_col)
@@ -1603,39 +1545,6 @@ gail_tree_view_set_column_description (AtkTable	   *table,
                          &values, NULL);
 }
 
-static AtkObject*
-gail_tree_view_get_summary (AtkTable	*table)
-{
-  GailTreeView* obj = GAIL_TREE_VIEW (table);
-
-  return obj->summary;
-}
-
-static void
-gail_tree_view_set_summary (AtkTable    *table,
-                            AtkObject   *accessible)
-{
-  GailTreeView* obj = GAIL_TREE_VIEW (table);
-  AtkPropertyValues values = { NULL };
-  AtkObject *old_summary;
-
-  old_summary = obj->summary;
-  obj->summary = accessible;
-  if (obj->summary)
-    g_object_ref (obj->summary);
-  g_value_init (&values.old_value, G_TYPE_POINTER);
-  g_value_set_pointer (&values.old_value, old_summary);
-  g_value_init (&values.new_value, G_TYPE_POINTER);
-  g_value_set_pointer (&values.new_value, obj->summary);
-
-  values.property_name = "accessible-table-summary";
-  g_signal_emit_by_name (table, 
-                         "property_change::accessible-table-ummary",
-                         &values, NULL);
-  if (old_summary)
-    g_object_unref (old_summary);
-}
-
 /* atkselection.h */
 
 static void atk_selection_interface_init (AtkSelectionIface *iface)
diff --git a/gtk/a11y/gailtreeview.h b/gtk/a11y/gailtreeview.h
index 01c1e2e..a3a823a 100644
--- a/gtk/a11y/gailtreeview.h
+++ b/gtk/a11y/gailtreeview.h
@@ -40,8 +40,6 @@ struct _GailTreeView
 {
   GailContainer parent;
 
-  AtkObject*	caption;
-  AtkObject*	summary;
   gint          n_children_deleted;
   gint          n_rows;
   gint          n_cols;



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