/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk

« back to all changes in this revision

Viewing changes to src/app.js

  • Committer: Gustav Hartvigsson
  • Date: 2014-06-09 17:42:01 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140609174201-9j752hye8k69m9ze
* UI for preferences done, it is still not functional.
  * TODO: bind some functions to the different buttons and switches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
 
15
15
const SettingsData = imports.settings_data;
 
16
const PreferencesUI = imports.preferences_ui;
16
17
 
17
18
const Application = new Lang.Class ({
18
19
  Name: "Application",
101
102
    }));
102
103
    this.add_action (quit_action);
103
104
    
 
105
    let preferences_action = new Gio.SimpleAction ({name: "preferences"});
 
106
    preferences_action.connect ('activate', Lang.bind (this, function (){
 
107
      let pref_dialog = new PreferencesUI.PreferencesUI ();
 
108
      pref_dialog.run ();
 
109
    }));
 
110
    this.add_action (preferences_action)
104
111
  },
105
112
  
106
113
  /**