/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/settings_data.js

  • Committer: Gustav Hartvigsson
  • Date: 2014-11-18 20:53:37 UTC
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: gustav.hartvigsson@gmail.com-20141118205337-j6opehfighclrkqc
* added 'make gettext' for generating gettext information
* updated 'messages.po' to fit the resent changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * in the file lgpl-3.0.txt in the root of this project.
6
6
 */
7
7
 
 
8
 
8
9
const Gio = imports.gi.Gio;
9
10
const GLib = imports.gi.GLib;
10
 
 
11
11
const Lang = imports.lang;
12
12
const System = imports.system;
13
13
 
14
14
let _default_settings_object = null;
15
15
 
 
16
/** @file
 
17
 */
 
18
 
16
19
/**
17
20
 * Please use this function when getting the settings data object. It is not
18
21
 * good to have multiple instances of the settings data object, it may
194
197
    if (typeof setting != "string") {
195
198
      print ("ERROR: The \"setting\" parameter must be a string.");
196
199
      ret_data.ok = false;
197
 
      return ret_data.ok;
 
200
      return ret_data;
198
201
    }
199
202
    
200
203
    switch (setting) {