Small a11y improvements
This commit is contained in:
parent
44639475df
commit
0be80450ce
53
gedit-2.16.0-a11y.patch
Normal file
53
gedit-2.16.0-a11y.patch
Normal file
@ -0,0 +1,53 @@
|
||||
--- gedit-2.16.0/gedit/gedit-commands-file.c.a11y 2006-11-29 15:34:43.000000000 -0500
|
||||
+++ gedit-2.16.0/gedit/gedit-commands-file.c 2006-11-29 15:39:53.000000000 -0500
|
||||
@@ -1151,6 +1151,7 @@
|
||||
gchar *primary_msg;
|
||||
gchar *secondary_msg;
|
||||
glong seconds;
|
||||
+ AtkObject *atk_obj, *win_atk_obj;
|
||||
|
||||
gedit_debug (DEBUG_COMMANDS);
|
||||
|
||||
@@ -1258,6 +1259,15 @@
|
||||
gtk_dialog_set_default_response (GTK_DIALOG (dialog),
|
||||
GTK_RESPONSE_CANCEL);
|
||||
|
||||
+ atk_obj = gtk_widget_get_accessible (dialog);
|
||||
+ win_atk_obj = gtk_widget_get_accessible (GTK_WIDGET (window));
|
||||
+ if (GTK_IS_ACCESSIBLE (atk_obj))
|
||||
+ {
|
||||
+ atk_object_set_name (atk_obj, "Question");
|
||||
+ atk_object_set_role (atk_obj, ATK_ROLE_ALERT);
|
||||
+ atk_object_add_relationship (atk_obj, ATK_RELATION_POPUP_FOR, win_atk_obj);
|
||||
+ }
|
||||
+
|
||||
return dialog;
|
||||
}
|
||||
|
||||
--- gedit-2.16.0/gedit/gedit-view.c.a11y 2006-11-29 15:06:30.000000000 -0500
|
||||
+++ gedit-2.16.0/gedit/gedit-view.c 2006-11-29 15:12:29.000000000 -0500
|
||||
@@ -1468,7 +1468,7 @@
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *toplevel;
|
||||
GtkEntryCompletion *completion;
|
||||
-
|
||||
+ AtkObject *atk_obj, *win_atk_obj;
|
||||
|
||||
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (view));
|
||||
|
||||
@@ -1507,6 +1507,15 @@
|
||||
G_CALLBACK (search_window_scroll_event),
|
||||
view);
|
||||
|
||||
+ atk_obj = gtk_widget_get_accessible (view->priv->search_window);
|
||||
+ win_atk_obj = gtk_widget_get_accessible (toplevel);
|
||||
+ if (GTK_IS_ACCESSIBLE (atk_obj))
|
||||
+ {
|
||||
+ atk_object_set_name (atk_obj, "Line number popup");
|
||||
+ atk_object_set_role (atk_obj, ATK_ROLE_ALERT);
|
||||
+ atk_object_add_relationship (atk_obj, ATK_RELATION_POPUP_FOR, win_atk_obj);
|
||||
+ }
|
||||
+
|
||||
frame = gtk_frame_new (NULL);
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_widget_show (frame);
|
||||
@ -19,7 +19,7 @@
|
||||
Summary: gEdit is a small but powerful text editor for GNOME
|
||||
Name: gedit
|
||||
Version: 2.16.2
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Epoch: 1
|
||||
License: GPL
|
||||
Group: Applications/Editors
|
||||
@ -51,6 +51,9 @@ Patch2: gedit-2.15.1-python.patch
|
||||
# gtk_widget_show()
|
||||
Patch3: gedit-2.15.1-bgo-341055-workaround.patch
|
||||
|
||||
# http://bugzilla.gnome.org/show_bug.cgi?id=380784
|
||||
Patch4: gedit-2.16.0-a11y.patch
|
||||
|
||||
BuildRequires: glib2-devel >= %{glib2_version}
|
||||
BuildRequires: pango-devel >= %{pango_version}
|
||||
BuildRequires: gtk2-devel >= %{gtk2_version}
|
||||
@ -115,6 +118,7 @@ Install gedit-devel if you want to write plug-ins for gEdit.
|
||||
|
||||
%patch2 -p1 -b .python
|
||||
%patch3 -p1 -b .bgo-341055-workaround
|
||||
%patch4 -p1 -b .a11y
|
||||
|
||||
%build
|
||||
autoreconf
|
||||
@ -199,6 +203,9 @@ fi
|
||||
%{_datadir}/gtk-doc/html/gedit/
|
||||
|
||||
%changelog
|
||||
* Thu Nov 30 2006 Matthias Clasen <mclasen@redhat.com> - 1:2.16.2-2
|
||||
- Small accessibility improvements
|
||||
|
||||
* Sat Nov 4 2006 Matthias Clasen <mclasen@redhat.com> - 1:2.16.2-1
|
||||
- Update to 2.16.2
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user