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 388648 - button to turn off visualization
button to turn off visualization
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: User Interface
HEAD
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 389186 399483 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-12-22 15:31 UTC by William Jon McCann
Modified: 2007-03-11 06:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
UI update (26.01 KB, patch)
2007-01-17 21:44 UTC, Jonathan Matthew
none Details | Review
updated UI update (29.56 KB, patch)
2007-01-23 22:33 UTC, Jonathan Matthew
none Details | Review
more fixes (31.76 KB, patch)
2007-01-24 22:58 UTC, Jonathan Matthew
none Details | Review
another update (35.02 KB, patch)
2007-01-25 14:15 UTC, Jonathan Matthew
none Details | Review
work around 0 size bug (34.84 KB, patch)
2007-02-25 06:45 UTC, James "Doc" Livingston
none Details | Review
add (ugly) icon (38.47 KB, patch)
2007-03-03 09:54 UTC, Jonathan Matthew
none Details | Review
rethink icon things (38.15 KB, patch)
2007-03-07 12:04 UTC, Jonathan Matthew
committed Details | Review
the icon (1.01 KB, image/png)
2007-03-07 12:05 UTC, Jonathan Matthew
  Details

Description William Jon McCann 2006-12-22 15:31:47 UTC
Jonathan the visualization stuff is really nicely done!

It might be nice to have a quick way to disable the visualization.  Perhaps we could add a button next to the Fullscreen button when the mouse is moved?
Comment 1 Jonathan Matthew 2006-12-23 04:05:39 UTC
Sounds like a good idea to me.  I find myself using the source list to disable embedded visualisation, which is a bit ugly.  

I think it also makes sense to add a way to go directly between fullscreen mode and no visualisation.  I'm not sure if the fullscreen state should persist across sessions, though.
Comment 2 Jonathan Matthew 2007-01-17 21:44:38 UTC
Created attachment 80549 [details] [review]
UI update

- adds a 'disable' button to the visualiser controls (probably needs a better label)
- adds a windowed visualiser mode (bug 389186)
- replaces the various fullscreen/leave fullscreen/desktop buttons with a combo box for choosing between embedded, fullscreen, window, and desktop modes
- moves the menu item from 'control' to 'view' (bug 388650)
Comment 3 James "Doc" Livingston 2007-01-21 00:49:20 UTC
Looks good to me, although we need to handle the delete event on the external window. It currently kills RB if you close it.
Comment 4 Alex Lancaster 2007-01-21 12:52:10 UTC
Looks good and works for me (modulo the usual redrawing problems with compiz/beryl, but that's a compiz problem).
Comment 5 Jonathan Matthew 2007-01-21 22:23:33 UTC
I think we'll need to create our own window for the external window case.  Currently it's just letting the sink create one, which exposes us to bug 393975.  The fix for that bug may not do what we want.
Comment 6 Jonathan Matthew 2007-01-23 22:33:09 UTC
Created attachment 81022 [details] [review]
updated UI update

Now sort of handles the external window mode properly - closing the window just hides it and disables visualisation.  The initial size of the window is calculated badly, though, and switching from fullscreen to window mode sucks too.

In desktop and embedded modes, this hides the 'disable' button in favour of the toolbar button (bug 399483).  The toolbar button definitely needs a better icon.
Comment 7 Jonathan Matthew 2007-01-24 22:58:03 UTC
Created attachment 81132 [details] [review]
more fixes

tries to get the window size right (but sort of doesn't), fixes a few other UI glitches.
Comment 8 Jonathan Matthew 2007-01-25 14:15:04 UTC
Created attachment 81190 [details] [review]
another update

now gets the window size more or less correct.
Comment 9 James "Doc" Livingston 2007-01-26 02:54:08 UTC
A couple more potential issues with windowed mode:

1) you can resize the window down to nothing, which results in the following crash. This is also a bug in GStreamer, but we shouldn't let people do that.

  • #0 vs_image_scale_nearest_RGB565
    at vs_image.c line 635
  • #1 gst_video_scale_transform
    at gstvideoscale.c line 755
  • #2 gst_base_transform_handle_buffer
    at gstbasetransform.c line 1448
  • #3 gst_base_transform_chain
    at gstbasetransform.c line 1542
  • #4 gst_pad_chain_unchecked
    at gstpad.c line 3407
  • #5 gst_pad_push
    at gstpad.c line 3573
  • #6 gst_base_transform_chain
    at gstbasetransform.c line 1548
  • #7 gst_pad_chain_unchecked
    at gstpad.c line 3407
  • #8 gst_pad_push
    at gstpad.c line 3573
  • #9 gst_base_transform_chain
    at gstbasetransform.c line 1548
  • #10 gst_pad_chain_unchecked
    at gstpad.c line 3407
  • #11 gst_pad_push
    at gstpad.c line 3573
  • #12 gst_proxy_pad_do_chain
    at gstghostpad.c line 191
  • #13 gst_pad_chain_unchecked
    at gstpad.c line 3407
  • #14 gst_pad_push
    at gstpad.c line 3573
  • #15 gst_proxy_pad_do_chain
    at gstghostpad.c line 191
  • #16 gst_pad_chain_unchecked
    at gstpad.c line 3407
  • #17 gst_pad_push
    at gstpad.c line 3573
  • #18 gst_base_transform_chain
    at gstbasetransform.c line 1548
  • #19 gst_pad_chain_unchecked
    at gstpad.c line 3407
  • #20 gst_pad_push
    at gstpad.c line 3573
  • #21 gst_goom_chain
    at gstgoom.c line 517
  • #22 gst_pad_chain_unchecked
    at gstpad.c line 3407
  • #23 gst_pad_push
    at gstpad.c line 3573
  • #24 gst_proxy_pad_do_chain
    at gstghostpad.c line 191
  • #25 gst_pad_chain_unchecked
    at gstpad.c line 3407
  • #26 gst_pad_push
    at gstpad.c line 3573
  • #27 gst_base_transform_chain
    at gstbasetransform.c line 1548
  • #28 gst_pad_chain_unchecked
    at gstpad.c line 3407



2) When the control is not visible, you can resize the window to be thinner than the controls would be. When you next move the cursor over the window, it suddenly expands to fit the controls (which looks odd). A similar thing probably happens with the embedded visualisation.
Comment 10 James "Doc" Livingston 2007-02-25 06:45:03 UTC
Created attachment 83290 [details] [review]
work around 0 size bug

This works around the zero-size bug by setting the minimum size to 2x2. The other bit from my last comment still happens, but this looks good enough to me to commit.
Comment 11 James "Doc" Livingston 2007-02-25 06:45:25 UTC
*** Bug 399483 has been marked as a duplicate of this bug. ***
Comment 12 James "Doc" Livingston 2007-02-25 06:45:47 UTC
*** Bug 389186 has been marked as a duplicate of this bug. ***
Comment 13 Jonathan Matthew 2007-03-03 09:54:37 UTC
Created attachment 83795 [details] [review]
add (ugly) icon

I gimped up a fairly ugly icon for the visualization toggle button.  It gets inlined into the plugin binary, and it's also installed in $plugindir/icons/hicolor/22x22/actions/ which gets appended to the gtk icon search path, so the icon can be overridden by icon themes.
Comment 14 Jonathan Matthew 2007-03-07 12:04:34 UTC
Created attachment 84154 [details] [review]
rethink icon things

This version installs the icon in $pkgdatadir/icons and adds that directory to the icon search path in lib/rb-stock-icons.c, rather than each plugin having its own installed icon path.  I'm not sure what to do about plugins under ~/.gnome2/rhythmbox - maybe add ~/.gnome2/rhythmbox/icons/ to the icon search path?

For uninstalled builds, the plugin source directory is added to the icon path.
Comment 15 Jonathan Matthew 2007-03-07 12:05:38 UTC
Created attachment 84155 [details]
the icon

the icon (currently goes in plugins/visualizer/icons/hicolor/22x22/actions/)
Comment 16 James "Doc" Livingston 2007-03-11 03:27:07 UTC
Looks good to me.
Comment 17 Jonathan Matthew 2007-03-11 06:15:02 UTC
committed to svn.