Merge lp:~mblayman/entertainer/0.4-bugfix into lp:entertainer

Proposed by Matt Layman
Status: Merged
Approved by: Matt Layman
Approved revision: 357
Merged at revision: not available
Proposed branch: lp:~mblayman/entertainer/0.4-bugfix
Merge into: lp:entertainer
Diff against target: None lines
To merge this branch: bzr merge lp:~mblayman/entertainer/0.4-bugfix
Reviewer Review Type Date Requested Status
Samuel Buffet (community) Approve
Review via email: mp+4764@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Matt Layman (mblayman) wrote :

This is a three line branch. One line to restore the TOGGLE_FULLSCREEN key and two lines to show/hide the mouse cursor when coming in and out of fullscreen.

Revision history for this message
Samuel Buffet (samuel-buffet) wrote :

Hi Matt,

I'd rather see something like we hide the mouse if we don't move it after a delay of a few seconds.

Also in the future we may need an option *show_pointer = True/False*

* mouse => we need to see the pointer when we move it and then hide it.
* finger + keyboard + remote control => always hidden

Cheers,
Samuel

Revision history for this message
Matt Layman (mblayman) wrote :

"Hi Matt,

I'd rather see something like we hide the mouse if we don't move it after a delay of a few seconds.

Also in the future we may need an option *show_pointer = True/False*

* mouse => we need to see the pointer when we move it and then hide it.
* finger + keyboard + remote control => always hidden

Cheers,
Samuel"

Samuel,

I think that those are very good points. However, since we don't do anything with pointer handling yet, would you be okay with this solution for now? I think that this fix is a good "half-way" solution until we can put a better one in place. And since it's only a couple of lines, it will be easy to remove later.

What do you think?

-Matt

Revision history for this message
Samuel Buffet (samuel-buffet) wrote :

Hi Matt,

"What do you think?"

Indeed the full code can be added later when will need it.

Samuel,

review: Approve
Revision history for this message
Matt Layman (mblayman) wrote :

Commit Message: Toggling fullscreen was fixed and the mouse cursor will now hide when in fullscreen mode. (Matt Layman)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'entertainerlib/frontend/gui/user_interface.py'
2--- entertainerlib/frontend/gui/user_interface.py 2009-03-21 20:31:35 +0000
3+++ entertainerlib/frontend/gui/user_interface.py 2009-03-22 21:00:43 +0000
4@@ -159,6 +159,7 @@
5 UserEvent.NAVIGATE_PREVIOUS_PAGE : self._handle_default,
6 UserEvent.NAVIGATE_NEXT_PAGE : self._handle_default,
7 UserEvent.NAVIGATE_LAST_PAGE : self._handle_default,
8+ UserEvent.TOGGLE_FULLSCREEN : self._handle_toggle_fullscreen,
9 UserEvent.PLAYER_PLAY_PAUSE : self._handle_player_play_pause,
10 UserEvent.PLAYER_STOP : self._handle_player_stop,
11 UserEvent.USE_ASPECT_RATIO_1 : self._handle_aspect_ratio,
12@@ -176,6 +177,7 @@
13
14 def _fullscreen(self):
15 '''Set the window, stage, and config to fullscreen dimensions.'''
16+ self.stage.hide_cursor()
17 self.window.fullscreen()
18 self.stage.fullscreen()
19 width, height = self.stage.get_size()
20@@ -215,6 +217,7 @@
21 if self.is_fullscreen:
22 self.stage.unfullscreen()
23 self.window.unfullscreen()
24+ self.stage.show_cursor()
25 self.config.set_stage_width(self.old_width)
26 self.config.set_stage_height(self.old_height)
27 self.is_fullscreen = False

Subscribers

People subscribed via source and target branches