/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-06-13 11:43:17 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140613114317-b39077ndls9e8a4y
* added moar random information to the about dialoug.

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
 
 
9
8
const Gio = imports.gi.Gio;
10
9
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
 
 
19
16
/**
20
17
 * Please use this function when getting the settings data object. It is not
21
18
 * good to have multiple instances of the settings data object, it may
197
194
    if (typeof setting != "string") {
198
195
      print ("ERROR: The \"setting\" parameter must be a string.");
199
196
      ret_data.ok = false;
200
 
      return ret_data;
 
197
      return ret_data.ok;
201
198
    }
202
199
    
203
200
    switch (setting) {