[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#798206: gnome-orca: Binding to report notifications does not work



Package: gnome-orca
Version: 3.16.2-1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

I use orca 3.16 here, with MATE desktop.


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

1. ins-space
2. Create 3 bindings in Bindings tab:
- ins-f8 for speaking previous notification message;
- ins-f9 for speaking latest notif message
- ins-f10 to have notif messages list

3. Save. 
4. On an IRC client in MATE, be highlighted by someone. O!ca reads the notif.

   * What was the outcome of this action?

If you issue ins-f8 f9 f10, orca says: "not notification message"

   * What outcome did you expect instead?

It should speak the latest message, at least.

*** End of the template - remove these template lines ***

Attached a patch which will likely be applied upst!eam. Could you apply it to the Debian release?
It fixes the problem. This feature is quite useful. The Debian sackage should
ship it via patch before the next Orca release. All the more as it's a small
patch, I applied in /usr/lib/python3/dist-packages/orca/scripts/apps/notification-daemon/script.py
I also pasted it here:
http://sprunge.us/EbWJ


Minor change. Really it'd be nice to apply. You could apply too for Jessie.

Thanks

Regards,



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnome-orca depends on:
ii  gir1.2-glib-2.0            1.44.0-1+b2
ii  gir1.2-gtk-3.0             3.16.6-1
ii  gir1.2-pango-1.0           1.36.8-3
ii  gir1.2-wnck-3.0            3.14.0-2
ii  gsettings-desktop-schemas  3.16.1-1
ii  python3                    3.4.3-4
ii  python3-brlapi             5.2~20141018-5
ii  python3-cairo              1.10.0+dfsg-4+b1
ii  python3-gi                 3.16.2-1
ii  python3-louis              2.6.2-2
ii  python3-pyatspi            2.16.0+dfsg-1
ii  python3-speechd            0.8-7
pn  python3:any                <none>
ii  speech-dispatcher          0.8-7

Versions of packages gnome-orca recommends:
ii  libgail-common  2.24.28-1
ii  xbrlapi         5.2~20141018-5

gnome-orca suggests no packages.

-- no debconf information
>From 648659be997efef806c9db6ff35fb27aa3e3d43c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Vilmar=20Est=C3=A1cio=20de=20Souza?=
 <vilmar@invormal.com.br>
Date: Sun, 6 Sep 2015 00:30:59 -0300
Subject: [PATCH] Add save messages to notification-daemon script

---
 src/orca/scripts/apps/notification-daemon/script.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/orca/scripts/apps/notification-daemon/script.py b/src/orca/scripts/apps/notification-daemon/script.py
index ebe4a06..b9fbd79 100644
--- a/src/orca/scripts/apps/notification-daemon/script.py
+++ b/src/orca/scripts/apps/notification-daemon/script.py
@@ -30,7 +30,7 @@ import pyatspi
 import orca.messages as messages
 import orca.scripts.default as default
 import orca.speech as speech
-
+import orca.notification_messages as notification_messages
 
 ########################################################################
 #                                                                      #
@@ -48,3 +48,4 @@ class Script(default.Script):
         texts = [self.utilities.displayedText(acc) for acc in allLabels]
         text = '%s %s' % (messages.NOTIFICATION, ' '.join(texts))
         speech.speak(text, None, True)
+        notification_messages.saveMessage(text)
-- 
2.5.1


Reply to: