[hafqa] [hafqa] [Bug 3736] New: hildon Volumebar doesn't allow unsetting "CAN_FOCUS"

From: bugzilla-daemon at maemo.org bugzilla-daemon at maemo.org
Date: Wed Sep 24 09:30:38 EEST 2008
https://bugs.maemo.org/show_bug.cgi?id=3736

           Summary: hildon Volumebar doesn't allow unsetting "CAN_FOCUS"
           Product: System software
           Version: 4.1.1
          Platform: All
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Low
         Component: hildon-libs
        AssignedTo: nobody at maemo.org
        ReportedBy: thp at perli.net
         QAContact: hildon-libs-bugs at maemo.org


SOFTWARE VERSION: Revision 16197 on https://stage.maemo.org/svn/maemo/

STEPS TO REPRODUCE THE PROBLEM:

Run the following script in python:

==============
import gtk
import hildon

widget = hildon.VVolumebar()
widget.unset_flags(gtk.CAN_FOCUS)

w = gtk.Window()
w.add(widget)
w.show_all()
w.connect('destroy', gtk.main_quit)
gtk.main()
==============

EXPECTED OUTCOME:
The hildon VVolumebar cannot be focused, and therefore, not be controlled with
the keyboard (no keyboard input for this widget!).

ACTUAL OUTCOME:
The hildon VVolumebar is still focusable and reacts to keyboard input (up, down
to control volume, and Enter to press the mute toggle button).

REPRODUCIBILITY:
always, just run the above script. When setting "widget=gtk.Button('testing')"
instead of the VVolumebar, you can see that for normal GTK widgets, the above
procedure really makes the button not being able to receive input focus.

EXTRA SOFTWARE INSTALLED:
Not relevant

OTHER COMMENTS:
Happens on the tablets as well as on hildon on the desktop. The problem is
probably in hildon-1/src/hildon-volumebar.c - you have two child widgets that
get their "can-focus" property set depending on the mute state (see the
function hildon_volumebar_set_mute() in hildon-volumebar.c).

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.2)
Gecko/2008092313 Ubuntu/8.04 (hardy) Firefox/3.0.2


-- 
Configure bugmail: https://bugs.maemo.org/userprefs.cgi?tab=email
Replies to this email are NOT read, instead please add comments at
https://bugs.maemo.org/show_bug.cgi?id=3736
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the hafqa mailing list