X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkseparatormenuitem.c;h=da721297067eac0f0572bc7c821fdedf2e9c58d2;hb=bb3c56abe2e7916126bd4f8234dee080b5381941;hp=11da12fb5bc3ece4f41848498ae0efd95b764836;hpb=3e05518881a208e851e632a37f5dcc3926c6387d;p=~andy%2Fgtk diff --git a/gtk/gtkseparatormenuitem.c b/gtk/gtkseparatormenuitem.c index 11da12fb5..da7212970 100644 --- a/gtk/gtkseparatormenuitem.c +++ b/gtk/gtkseparatormenuitem.c @@ -12,9 +12,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ /* @@ -25,8 +23,11 @@ */ #include "config.h" + #include "gtkseparatormenuitem.h" +#include "gtkstylecontext.h" + /** * SECTION:gtkseparatormenuitem * @Short_description: A separator used in menus @@ -39,23 +40,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