[gtk+/font-chooser] separatormenuitem: Use gtk_widget_class_accessible_set_role()



commit e343cf301067200623074150168ebd5f6e5ab92e
Author: Benjamin Otte <otte gnome org>
Date:   Mon Jul 18 14:23:31 2011 +0200

    separatormenuitem: Use gtk_widget_class_accessible_set_role()

 gtk/gtkseparatormenuitem.c |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkseparatormenuitem.c b/gtk/gtkseparatormenuitem.c
index 11da12f..934ac86 100644
--- a/gtk/gtkseparatormenuitem.c
+++ b/gtk/gtkseparatormenuitem.c
@@ -39,23 +39,12 @@
 
 G_DEFINE_TYPE (GtkSeparatorMenuItem, gtk_separator_menu_item, GTK_TYPE_MENU_ITEM)
 
-static AtkObject *
-gtk_separator_menu_item_get_accessible (GtkWidget *widget)
-{
-  AtkObject *obj;
-
-  obj = GTK_WIDGET_CLASS (gtk_separator_menu_item_parent_class)->get_accessible (widget);
-
-  atk_object_set_role (obj, ATK_ROLE_SEPARATOR);
-
-  return obj;
-}
-
 static void
 gtk_separator_menu_item_class_init (GtkSeparatorMenuItemClass *class)
 {
   GTK_CONTAINER_CLASS (class)->child_type = NULL;
-  GTK_WIDGET_CLASS (class)->get_accessible = gtk_separator_menu_item_get_accessible;
+
+  gtk_widget_class_set_accessible_role (GTK_WIDGET_CLASS (class), ATK_ROLE_SEPARATOR);
 }
 
 static void 



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