[gnome-control-center] notifications: add mnemonic_widget property for better accessibility
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] notifications: add mnemonic_widget property for better accessibility
- Date: Wed, 23 Jan 2013 04:21:19 +0000 (UTC)
commit ed9099a74dc6b44e7b2242f52c723084f8240426
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Tue Jan 22 01:31:21 2013 -0500
notifications: add mnemonic_widget property for better accessibility
https://bugzilla.gnome.org/show_bug.cgi?id=692256
panels/notifications/cc-edit-dialog.c | 1 +
panels/notifications/notifications.ui | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/notifications/cc-edit-dialog.c b/panels/notifications/cc-edit-dialog.c
index 9c9c91f..0cc337e 100644
--- a/panels/notifications/cc-edit-dialog.c
+++ b/panels/notifications/cc-edit-dialog.c
@@ -104,6 +104,7 @@ cc_build_edit_dialog (CcNotificationsPanel *panel,
}
_switch = gtk_switch_new ();
+ gtk_label_set_mnemonic_widget (GTK_LABEL (label), _switch);
g_settings_bind (settings, policy_settings[i].setting_key,
_switch, "active",
G_SETTINGS_BIND_DEFAULT);
diff --git a/panels/notifications/notifications.ui b/panels/notifications/notifications.ui
index a002f2d..a3710fd 100644
--- a/panels/notifications/notifications.ui
+++ b/panels/notifications/notifications.ui
@@ -19,6 +19,7 @@
<property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Show Pop Up Banners</property>
+ <property name="mnemonic_widget">ccnotify-switch-banners</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -34,6 +35,7 @@
<property name="hexpand">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Show in Lock Screen</property>
+ <property name="mnemonic_widget">ccnotify-switch-lock-screen</property>
</object>
<packing>
<property name="left_attach">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]