~indicator-multiload/indicator-multiload/trunk

« back to all changes in this revision

Viewing changes to src/main.vala

  • Committer: Michael Hofmann
  • Date: 2011-08-18 21:30:47 UTC
  • Revision ID: mh21@piware.de-20110818213047-w4rxb6ewo102fyrm
Network debug stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
            (void*) evaluateexpression, N_("Evaluate an expression"), null },
34
34
        { "list-identifiers", 'l', OptionFlags.NO_ARG, OptionArg.CALLBACK,
35
35
            (void*) listidentifiers, N_("List available expression identifiers"), null },
36
 
        { "debug", 'd', OptionFlags.NO_ARG, OptionArg.CALLBACK,
37
 
            (void*) debug, N_("Increase debug level"), null },
 
36
        { "verbose", 'v', OptionFlags.NO_ARG, OptionArg.CALLBACK,
 
37
            (void*) debug, N_("Show debug messages"), null },
38
38
        { null }
39
39
    };
40
40
 
263
263
 
264
264
    [CCode (instance_pos = 3)]
265
265
    private bool debug(string optionname, string? optionvalue) throws Error {
266
 
        // Utils.debuglevel = 1;
 
266
        Utils.enabledebugmessages = true;
267
267
        return true;
268
268
    }
269
269
 
371
371
        Environment.set_variable("XDG_DATA_DIRS",
372
372
                xdgdatadirs + Main.datadirectory, true);
373
373
 
 
374
        Utils.initdebug();
 
375
 
374
376
        Gtk.init(ref args);
375
377
        Gtk.Window.set_default_icon_name("utilities-system-monitor");
376
378