After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 703910 - Entering then leaving Party Mode breaks the app menu; Party Mode status incorrectly reported
Entering then leaving Party Mode breaks the app menu; Party Mode status incor...
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: User Interface
3.3.x
Other Linux
: Normal major
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-07-10 02:35 UTC by Michael Catanzaro
Modified: 2016-06-13 22:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Video demonstrating broken View menu (587.09 KB, application/octet-stream)
2013-09-12 01:30 UTC, Michael Catanzaro
  Details
shell: Fix state of the "Party Mode" toggle item (1.68 KB, patch)
2016-05-20 14:03 UTC, Bastien Nocera
none Details | Review
shell: Fix state of the "Party Mode" toggle item (1.64 KB, patch)
2016-05-23 13:39 UTC, Bastien Nocera
committed Details | Review

Description Michael Catanzaro 2013-07-10 02:35:43 UTC
* Start Rhythmbox
* On the app menu, click View -> Party Mode
* Now on the gear menu that appears in Party Mode, go to View and note that Party Mode is not checked. It should be.
* Click on Party Mode and you do properly leave fullscreen.
* On the app menu, click View.  All of the View options are missing!

This is 100% reproducible in the sense that I did it six times in a row five minutes ago.  I haven't gotten a broken app menu since; I don't know why.  But I can still trivially get the gear menu and app menu to incorrectly display party mode status.  The gear menu should only ever show party mode as on, and the app menu should only show it as off, but this is not the case.
Comment 1 Jonathan Matthew 2013-07-10 12:12:51 UTC
(In reply to comment #0)
> * Start Rhythmbox
> * On the app menu, click View -> Party Mode
> * Now on the gear menu that appears in Party Mode, go to View and note that
> Party Mode is not checked. It should be.

I see this bit

> * Click on Party Mode and you do properly leave fullscreen.
> * On the app menu, click View.  All of the View options are missing!

Not this bit.
Comment 2 Michael Catanzaro 2013-07-10 13:37:30 UTC
Yeah, I just cannot reproduce it at all anymore.  I don't know what changed; it was really consistent at first.
Comment 3 Jean-François Fortin Tam 2013-09-12 01:05:19 UTC
Tested with the stable 3.0 release just now, and the first part of the bug can still be reproduced. The three ways (appmenu toggle, gear menu toggle, and the F11 key) to change this state are not synced with each other.

The "whole view submenu disappears" thing is not reproducible though.
Comment 4 Michael Catanzaro 2013-09-12 01:30:16 UTC
Created attachment 254751 [details]
Video demonstrating broken View menu

I was able to reproduce it again twice just now (rhythmbox-2.99.1-1.fc19)
Comment 5 Bastien Nocera 2016-05-20 11:10:14 UTC
Still happens with 3.3.1.
Comment 6 Bastien Nocera 2016-05-20 14:03:41 UTC
Created attachment 328260 [details] [review]
shell: Fix state of the "Party Mode" toggle item

The "Party Mode" menu item is a toggle menu item. If we only listen to
the "activate" signal, we'll listen for clicks, but we won't change the
state. So when the gear menu appears, the old state would be shown.

Listen to the state change instead, and update the action state.

http://bugzilla.gnome.org/show_bug.cgi?id=703910
Comment 7 Bastien Nocera 2016-05-20 14:11:54 UTC
Only problem being that the whole "View" section is unsensitive after switching off party mode, but that might be a gnome-shell or GLib bug, not sure.

1. rhythmbox git + the patch above, and run it in gnome-shell
2. select "Party Mode" in the app menu -> View
3. de-select "Party Mode" in the gear menu -> View
4. "Party Mode" in the app menu -> View (and the other items) look disabled...
Comment 8 Jonathan Matthew 2016-05-23 12:22:51 UTC
Review of attachment 328260 [details] [review]:

one minor question, but this looks good and works for me.

::: shell/rb-shell.c
@@ +2417,3 @@
 {
+	shell->priv->party_mode = g_variant_get_boolean (parameter);
+	g_simple_action_set_state (G_SIMPLE_ACTION (action), g_variant_new_boolean (shell->priv->party_mode));

why not just pass 'parameter' here?
Comment 9 Bastien Nocera 2016-05-23 13:39:24 UTC
Created attachment 328392 [details] [review]
shell: Fix state of the "Party Mode" toggle item

The "Party Mode" menu item is a toggle menu item. If we only listen to
the "activate" signal, we'll listen for clicks, but we won't change the
state. So when the gear menu appears, the old state would be shown.

Listen to the state change instead, and update the action state.

http://bugzilla.gnome.org/show_bug.cgi?id=703910
Comment 10 Jonathan Matthew 2016-05-23 21:12:35 UTC
Review of attachment 328392 [details] [review]:

ok
Comment 11 Jonathan Matthew 2016-06-13 22:27:53 UTC
Review of attachment 328392 [details] [review]:

pushed as commit 8f196bb