~ubuntu-branches/ubuntu/raring/banshee/raring

« back to all changes in this revision

Viewing changes to src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2012-02-18 22:17:24 UTC
  • mfrom: (6.3.23 experimental)
  • Revision ID: package-import@ubuntu.com-20120218221724-cnwdvn490wjjue8t
Tags: 2.3.5-1ubuntu1
* Merge from Debian Experimental, remaining changes:
  + Enable and recommend SoundMenu and Disable NotificationArea by default
  + Disable boo and karma extensions
  + Move desktop file for Meego UI to /usr/share/une/applications
  + Change the url for the Amazon store redirector

Show diffs side-by-side

added added

removed removed

Lines of Context:
387
387
                /*UpdateAction ("NewSmartPlaylistFromSearchAction", (source is LibrarySource || source.Parent is LibrarySource),
388
388
                        !String.IsNullOrEmpty (source.FilterQuery), source);*/
389
389
 
 
390
                IFilterableSource filterable_source = source as IFilterableSource;
 
391
                bool has_browser = filterable_source != null && filterable_source.AvailableFilters.Count > 0;
 
392
 
390
393
                ActionGroup browser_actions = Actions.FindActionGroup ("BrowserView");
391
394
                if (browser_actions != null) {
392
 
                    IFilterableSource filterable_source = source as IFilterableSource;
393
 
                    bool has_browser = filterable_source != null && filterable_source.AvailableFilters.Count > 0;
394
395
                    UpdateAction (browser_actions["BrowserTopAction"], has_browser);
395
396
                    UpdateAction (browser_actions["BrowserLeftAction"], has_browser);
396
397
                    UpdateAction (browser_actions["BrowserVisibleAction"], has_browser);
397
398
                }
398
399
 
 
400
                ActionGroup browser_config_actions = Actions.FindActionGroup ("BrowserConfiguration");
 
401
                if (browser_config_actions != null) {
 
402
                    // TODO: Be more specific than has_browser. Those actions have no effect
 
403
                    // on some sources that have a browser, like podcasts or radio.
 
404
                    UpdateAction (browser_config_actions["BrowserContentMenuAction"], has_browser);
 
405
                }
 
406
 
399
407
                last_source = source;
400
408
            }
401
409