~kroq-gar78/unity-lens-music/fix-972987

« back to all changes in this revision

Viewing changes to src/daemon.vala

  • Committer: Tarmac
  • Author(s): David Callé, Michal Hruby
  • Date: 2012-03-21 12:40:37 UTC
  • mfrom: (69.1.33 rb-scope)
  • Revision ID: tarmac-20120321124037-p1lsomndx12g9qt7
Implement a Rhythmbox scope.. Fixes: https://bugs.launchpad.net/bugs/948860. Approved by Michal Hruby, Mikkel Kamstrup Erlandsen, Neil J. Patel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  {
29
29
    private Unity.Lens lens;
30
30
    private BansheeScopeProxy banshee;
 
31
    private RhythmboxScope rb;
31
32
     
32
33
    construct
33
34
    {
34
35
      banshee = new BansheeScopeProxy ();
 
36
      rb = new RhythmboxScope ();
35
37
 
36
38
      lens = new Unity.Lens("/com/canonical/unity/lens/music", "music");
37
39
      lens.search_in_global = true;
38
40
      lens.search_hint = _("Search Music Collection");
 
41
      lens.sources_display_name = _("Sources");
39
42
      lens.visible = true;
40
43
      
41
44
      populate_categories ();
42
45
      populate_filters();
43
46
 
44
47
      lens.add_local_scope (banshee.scope);
 
48
      lens.add_local_scope (rb.scope);
45
49
 
46
50
      try {
47
51
        lens.export ();