From d2a92200067a393c4b36f1fc7ab1d76c920c340a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 15 Dec 2011 23:20:40 +0100 Subject: [PATCH] a11y: remove now unused property lists --- gtk/a11y/gtkbooleancellaccessible.c | 8 ------ gtk/a11y/gtkimagecellaccessible.c | 6 ----- gtk/a11y/gtkrenderercellaccessible.c | 2 -- gtk/a11y/gtkrenderercellaccessible.h | 1 - gtk/a11y/gtktextcellaccessible.c | 38 ---------------------------- 5 files changed, 55 deletions(-) diff --git a/gtk/a11y/gtkbooleancellaccessible.c b/gtk/a11y/gtkbooleancellaccessible.c index d9182227b6..c9d73d9b92 100644 --- a/gtk/a11y/gtkbooleancellaccessible.c +++ b/gtk/a11y/gtkbooleancellaccessible.c @@ -23,13 +23,6 @@ #include "gtkbooleancellaccessible.h" -static gchar *property_list[] = { - "active", - "radio", - "sensitive", - NULL -}; - G_DEFINE_TYPE (GtkBooleanCellAccessible, _gtk_boolean_cell_accessible, GTK_TYPE_RENDERER_CELL_ACCESSIBLE) @@ -78,7 +71,6 @@ _gtk_boolean_cell_accessible_class_init (GtkBooleanCellAccessibleClass *klass) GtkRendererCellAccessibleClass *renderer_cell_class = GTK_RENDERER_CELL_ACCESSIBLE_CLASS (klass); renderer_cell_class->update_cache = gtk_boolean_cell_accessible_update_cache; - renderer_cell_class->property_list = property_list; } static void diff --git a/gtk/a11y/gtkimagecellaccessible.c b/gtk/a11y/gtkimagecellaccessible.c index e87eaabbcc..d2413b7e2a 100644 --- a/gtk/a11y/gtkimagecellaccessible.c +++ b/gtk/a11y/gtkimagecellaccessible.c @@ -22,11 +22,6 @@ #include #include "gtkimagecellaccessible.h" -static gchar *property_list[] = { - "pixbuf", - NULL -}; - static void atk_image_interface_init (AtkImageIface *iface); G_DEFINE_TYPE_WITH_CODE (GtkImageCellAccessible, _gtk_image_cell_accessible, GTK_TYPE_RENDERER_CELL_ACCESSIBLE, @@ -57,7 +52,6 @@ _gtk_image_cell_accessible_class_init (GtkImageCellAccessibleClass *klass) gobject_class->finalize = gtk_image_cell_accessible_finalize; renderer_cell_class->update_cache = gtk_image_cell_accessible_update_cache; - renderer_cell_class->property_list = property_list; } static void diff --git a/gtk/a11y/gtkrenderercellaccessible.c b/gtk/a11y/gtkrenderercellaccessible.c index 381ac46ee4..165a746b21 100644 --- a/gtk/a11y/gtkrenderercellaccessible.c +++ b/gtk/a11y/gtkrenderercellaccessible.c @@ -85,8 +85,6 @@ _gtk_renderer_cell_accessible_class_init (GtkRendererCellAccessibleClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - klass->property_list = NULL; - gobject_class->get_property = gtk_renderer_cell_accessible_get_property; gobject_class->set_property = gtk_renderer_cell_accessible_set_property; gobject_class->finalize = gtk_renderer_cell_accessible_finalize; diff --git a/gtk/a11y/gtkrenderercellaccessible.h b/gtk/a11y/gtkrenderercellaccessible.h index 6d11538d3d..d913d0615a 100644 --- a/gtk/a11y/gtkrenderercellaccessible.h +++ b/gtk/a11y/gtkrenderercellaccessible.h @@ -44,7 +44,6 @@ struct _GtkRendererCellAccessible struct _GtkRendererCellAccessibleClass { GtkCellAccessibleClass parent_class; - gchar **property_list; gboolean (*update_cache) (GtkRendererCellAccessible *cell, gboolean emit_change_signal); }; diff --git a/gtk/a11y/gtktextcellaccessible.c b/gtk/a11y/gtktextcellaccessible.c index 194da5787b..deb0b4a42e 100644 --- a/gtk/a11y/gtktextcellaccessible.c +++ b/gtk/a11y/gtktextcellaccessible.c @@ -83,43 +83,6 @@ static void add_attr (PangoAttrList *attr_li static gboolean gtk_text_cell_accessible_update_cache (GtkRendererCellAccessible *cell, gboolean emit_change_signal); -static gchar *property_list[] = { - /* Set font_desc first since it resets other values if it is NULL */ - "font-desc", - "attributes", - "background-gdk", - "editable", - "family", - "foreground-gdk", - "rise", - "scale", - "size", - "size-points", - "stretch", - "strikethrough", - "style", - "text", - "underline", - "variant", - "weight", - - /* Also need the sets */ - "background-set", - "editable-set", - "family-set", - "foreground-set", - "rise-set", - "scale-set", - "size-set", - "stretch-set", - "strikethrough-set", - "style-set", - "underline-set", - "variant-set", - "weight-set", - NULL -}; - static void atk_text_interface_init (AtkTextIface *iface); G_DEFINE_TYPE_WITH_CODE (GtkTextCellAccessible, _gtk_text_cell_accessible, GTK_TYPE_RENDERER_CELL_ACCESSIBLE, @@ -229,7 +192,6 @@ _gtk_text_cell_accessible_class_init (GtkTextCellAccessibleClass *klass) GtkRendererCellAccessibleClass *renderer_cell_class = GTK_RENDERER_CELL_ACCESSIBLE_CLASS (klass); renderer_cell_class->update_cache = gtk_text_cell_accessible_update_cache; - renderer_cell_class->property_list = property_list; atk_object_class->get_name = gtk_text_cell_accessible_get_name; atk_object_class->ref_state_set = gtk_text_cell_accessible_ref_state_set;