2008-03-19 Michael Natterer <mitch@imendio.com>
authorMichael Natterer <mitch@imendio.com>
Wed, 19 Mar 2008 15:56:58 +0000 (15:56 +0000)
committerMichael Natterer <mitch@imendio.com>
Wed, 19 Mar 2008 15:56:58 +0000 (15:56 +0000)
commit0d467f2660305932cf61626a480258dd1608c944
tree91b895336cc47d3f904f94229e9f679eae6cf6b0
parentc0afd0f872e54eb9086a577b3cb0a7cd15c11376
2008-03-19 Michael Natterer <mitch@imendio.com>

Fixes: NB#79791: Cannot set focus to Master volume using stylus

* src/hildon-volumebar.c
* src/hildon-vvolumebar.c
* src/hildon-hvolumebar.c (init): remove UNSET_FLAGS(CAN_FOCUS) so
the widget becomes focussable at all.

* src/hildon-volumebar.c: implement GtkWidget::grab_focus() and
set the focus to wither the mute button or the volumebar.

Remove own "can-focus" property and instead listen to
notify::can-focus in order to update the widget's state.

Implement GtkWidget::focus() and make sure we can also *leave* the
widget, not only enter it, depending on volumebar orientation and
requested focus direction.

Clean up set_mute() to cooperate nicely with all the above.
ChangeLog
src/hildon-hvolumebar.c
src/hildon-volumebar.c
src/hildon-vvolumebar.c