GNOME Bugzilla – Bug 437938
In mini mode, clicking the close button on the window quits the program
Last modified: 2009-07-19 19:51:48 UTC
This behaviour is inconsistent: Open Banshee Load Notification Area Icon plug in (Edit->Plug-ins) Play a song, click the close window button. Song continues to play, but Banshee is only displayed as notification area icon Click notification area icon to view the window again Load mini mode plugin (Edit->plug-ins) Set View->Mini mode Click the close window button. Banshee quits! This surprised me when it happened because I am not used to mini mode, and it seems to me that Banshee should not behave differently in those two cases. This is on Ubuntu 7.04. Thank you.
I can confirm this behaviour, and I also agree, it shouldn't exit when closing the window while in mini mode.
Created attachment 94361 [details] [review] Modifies Minimode to use NotificationArea plugin if active.
Thanks for the patch on this inconsistency.
This issue is still present in SVN trunk, but the patch doesn't apply anymore.
Created attachment 128878 [details] [review] Updated to the trunk This is my first patch for Banshee, please let me know if it doesn't look good. The patch was updated to compile when applied to the trunk. I also added a call to `base.Hide ();` to the delete event handler. Without it, the mini-mode window is not really hidden when clicking on the close button. The only issue that wasn't addressed by the patch is the following: When the user clicks on the notification icon after closing the mini-mode window, the main window is shown, not the mini-mode one. I'm not sure if this should be fixed or if it's an expected behaviour.
Thanks Alex, your patch was pretty good, but it inspired me to do a bit more complete fix, including unaddressed issue you mentioned. To do that, I changed the MiniModeWindow to sublcass from BaseClientWindow, and set the minimode window as the PrimaryWindow when it is enabled. I also fixed up some bugs in the save/restore size/position logic so it should work better/more consistently. Thanks for the patch/inspiration.
No worries mate
*** Bug 589018 has been marked as a duplicate of this bug. ***