[gtk+/gtk-3-14] Drop nonworking code to set a11y roles of tooltips
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] Drop nonworking code to set a11y roles of tooltips
- Date: Wed, 25 Feb 2015 02:26:27 +0000 (UTC)
commit ffeda6ffec646a08dae809983876864980a6f0b2
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 18 17:24:29 2015 -0500
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 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/gtk/a11y/gtkwindowaccessible.c b/gtk/a11y/gtkwindowaccessible.c
index 7cb0f2b..83bb05b 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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]