~unity-team/unity-lens-files/browse-in-nautilus

« back to all changes in this revision

Viewing changes to src/daemon.vala

  • Committer: Mikkel Kamstrup Erlandsen
  • Date: 2010-08-25 11:40:00 UTC
  • Revision ID: mikkel.kamstrup@gmail.com-20100825114000-n422ok8gh62wqk7h
Update return value of activate() from bool to uint32.

Bump depends to Unity trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
854
854
     * Override of the default activation handler. The files place daemon
855
855
     * can handle activation of folders which puts it into "folder browsing mode"
856
856
     */
857
 
    public async bool activate (string uri)
 
857
    public async uint32 activate (string uri)
858
858
    {
859
859
      // FIXME (big fixme): revert to normal when done browsing
860
860
      
863
863
      if (f.query_file_type (0, null) != FileType.DIRECTORY)
864
864
        {
865
865
          debug ("Declined activation of URI '%s': Not a directory", uri);
866
 
          return false;
 
866
          return ActivationStatus.NOT_ACTIVATED;
867
867
        }
868
868
      
869
869
      debug ("Browsing folder: %s", uri);
895
895
       
896
896
      browse_folder.begin (f);
897
897
 
898
 
      return true;
 
898
      return ActivationStatus.ACTIVATED_SHOW_DASH;
899
899
      
900
900
    }
901
901