planner r880 - in trunk: . src
- From: mvdpot svn gnome org
- To: svn-commits-list gnome org
- Subject: planner r880 - in trunk: . src
- Date: Mon, 11 Feb 2008 19:35:05 +0000 (GMT)
Author: mvdpot
Date: Mon Feb 11 19:35:04 2008
New Revision: 880
URL: http://svn.gnome.org/viewvc/planner?rev=880&view=rev
Log:
2008-02-11 Maurice van der Pot <griffon26 kfk4ever com>
* src/planner-sidebar.c: (planner_sidebar_append):
Created a LABEL_FOR relation for buttons in the sidebar to improve
accessibility as suggested in bug #337382 by Rich Burridge
<rich burridge sun com>.
Modified:
trunk/ChangeLog
trunk/src/planner-sidebar.c
Modified: trunk/src/planner-sidebar.c
==============================================================================
--- trunk/src/planner-sidebar.c (original)
+++ trunk/src/planner-sidebar.c Mon Feb 11 19:35:04 2008
@@ -452,6 +452,11 @@
GtkWidget *vbox;
GtkWidget *image;
+ AtkObject *atk_label;
+ AtkRelationSet *relation_set;
+ AtkRelation *relation;
+ AtkObject *targets[1];
+
g_return_if_fail (PLANNER_IS_SIDEBAR (sidebar));
priv = sidebar->priv;
@@ -497,6 +502,16 @@
FALSE,
TRUE,
6);
+
+ /* Set a LABEL_FOR relation between the label and the button for accessibility */
+ atk_label = gtk_widget_get_accessible (GTK_WIDGET (entry->label));
+ relation_set = atk_object_ref_relation_set (atk_label);
+
+ targets[0] = gtk_widget_get_accessible (GTK_WIDGET (entry->button));
+ relation = atk_relation_new (targets, 1, ATK_RELATION_LABEL_FOR);
+
+ atk_relation_set_add (relation_set, relation);
+ g_object_unref (G_OBJECT (relation));
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]