~grabli66-r/+junk/translator

« back to all changes in this revision

Viewing changes to src/TranslatorApplication.vala

  • Committer: grabli66 at gmail
  • Date: 2014-10-04 10:51:37 UTC
  • Revision ID: grabli66@gmail.com-20141004105137-7ytpw5xrzymxov6s
+ init

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
internal class TranslateApplication : Granite.Application {
 
2
    public TranslateWindow mainWindow; 
 
3
 
 
4
    public TranslateApplication() {
 
5
        GLib.Object(application_id: "skyprojects.eos.translate", flags: ApplicationFlags.HANDLES_OPEN);
 
6
    }
 
7
    
 
8
    public override void activate () {
 
9
        if (this.get_windows() == null) {
 
10
            this.mainWindow = new TranslateWindow();
 
11
            this.mainWindow.set_application(this);
 
12
        }
 
13
        
 
14
        this.mainWindow.show_all();
 
15
    }
 
16
}
 
 
b'\\ No newline at end of file'