diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-02-18 17:24:29 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-02-18 17:28:07 -0500 |
commit | 7624418ddffdadf894c7db943708d6100800cde3 (patch) | |
tree | d17724d9aab635897023e275aa3d3043d3e339a8 /gtk/a11y | |
parent | e1100813e6c49d8b1ecf22c8b9228764003fb4e3 (diff) | |
download | gtk+-7624418ddffdadf894c7db943708d6100800cde3.tar.gz |
Drop nonworking code to set a11y roles of tooltips
This code relied on widget names, and we don't set those anymore.
Diffstat (limited to 'gtk/a11y')
-rw-r--r-- | gtk/a11y/gtkwindowaccessible.c | 11 |
1 files changed, 1 insertions, 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 * |