From 7624418ddffdadf894c7db943708d6100800cde3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 18 Feb 2015 17:24:29 -0500 Subject: [PATCH] Drop nonworking code to set a11y roles of tooltips This code relied on widget names, and we don't set those anymore. --- gtk/a11y/gtkwindowaccessible.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/gtk/a11y/gtkwindowaccessible.c b/gtk/a11y/gtkwindowaccessible.c index 7cb0f2bb90..83bb05bb0f 100644 --- a/gtk/a11y/gtkwindowaccessible.c +++ b/gtk/a11y/gtkwindowaccessible.c @@ -90,25 +90,16 @@ gtk_window_accessible_initialize (AtkObject *obj, gpointer data) { GtkWidget *widget = GTK_WIDGET (data); - const gchar *name; ATK_OBJECT_CLASS (gtk_window_accessible_parent_class)->initialize (obj, data); g_signal_connect (data, "window-state-event", G_CALLBACK (window_state_event_cb), NULL); _gtk_widget_accessible_set_layer (GTK_WIDGET_ACCESSIBLE (obj), ATK_LAYER_WINDOW); - name = gtk_widget_get_name (widget); - - if (!g_strcmp0 (name, "gtk-tooltip")) - obj->role = ATK_ROLE_TOOL_TIP; - else if (gtk_window_get_window_type (GTK_WINDOW (widget)) == GTK_WINDOW_POPUP) + if (gtk_window_get_window_type (GTK_WINDOW (widget)) == GTK_WINDOW_POPUP) obj->role = ATK_ROLE_WINDOW; else obj->role = ATK_ROLE_FRAME; - - /* Notify that tooltip is showing */ - if (obj->role == ATK_ROLE_TOOL_TIP && gtk_widget_get_mapped (widget)) - atk_object_notify_state_change (obj, ATK_STATE_SHOWING, 1); } static GtkWidget *