~evfool/ubuntuone-control-panel/fix729530

« back to all changes in this revision

Viewing changes to bin/ubuntuone-control-panel-gtk

  • Committer: Tarmac
  • Author(s): eric.casteleijn at canonical
  • Date: 2011-03-07 20:01:36 UTC
  • mfrom: (90.2.9 attention-seeking)
  • Revision ID: tarmac-20110307200136-i2v07kwr60xto5db
Adds a command line option (--alert) to open the window with an urgency hint

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                      help="Start the Ubuntu One Control Panel (GTK) in the "
41
41
                           "PANEL_NAME tab. Possible values are: "
42
42
                           "dashboard, volumes, devices, applications")
 
43
    result.add_option("-a", "--alert", dest="alert", action="store_true",
 
44
                      help="Start the Ubuntu One Control Panel (GTK) alerting "
 
45
                      "the user to its presence.")
43
46
    return result
44
47
 
45
48
 
46
49
if __name__ == "__main__":
47
50
    parser = parser_options()
48
51
    (options, args) = parser.parse_args(sys.argv)
49
 
 
50
 
    gui = ControlPanelWindow(switch_to=options.switch_to)
 
52
    gui = ControlPanelWindow(switch_to=options.switch_to, alert=options.alert)
51
53
    gui.main()