~santi698/gazette/gazette

« back to all changes in this revision

Viewing changes to src/Plugs/RecentFiles.vala

  • Committer: Santiago Ocamica
  • Date: 2013-04-20 20:02:02 UTC
  • mfrom: (32.1.5 gazette)
  • Revision ID: santi6982@gmail.com-20130420200202-7aupiy0p4yusieb9
Added update-interval to dconf

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
namespace Gazette {
 
2
    
 
3
    public class RecentFiles : Gazette.Service {
 
4
        
 
5
        public RecentFiles (){
 
6
            base (_("Files"), "x-office-document");
 
7
            
 
8
            this.container.attach (new Gtk.Label (_("No settings yet.")), 0, 0, 1, 1);
 
9
        }
 
10
        
 
11
        public override void run (File file){
 
12
            /*
 
13
            string content;
 
14
            try{
 
15
                FileUtils.get_contents (file.get_path (), out content);
 
16
            }catch (Error e){warning (e.message);}
 
17
            
 
18
            var command = "xdg-open 'http://www.wikipedia.org/wiki/"+content+"'";
 
19
            
 
20
            string ret;
 
21
            try{
 
22
                Process.spawn_command_line_sync (command, out ret);
 
23
            }catch (Error e){error (e.message);}
 
24
*/
 
25
        }
 
26
    }
 
27
}