~charlesk/indicator-network/lp-1233679

« back to all changes in this revision

Viewing changes to network/network-action-manager.vala

  • Committer: Tarmac
  • Author(s): Ted Gould
  • Date: 2013-08-26 22:00:02 UTC
  • mfrom: (269.2.7 settings-links)
  • Revision ID: tarmac-20130826220002-xqydt67d09xt5fzf
Adds settings items for cellular and Wifi.

Approved by Charles Kerr, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
                        /* Make sure this is last as it'll set the state of the
76
76
                           icon, so everything needs to be ready */
77
77
                        add_network_status_action ();
 
78
 
 
79
                        var settings_action = new SimpleAction("settings", VariantType.STRING);
 
80
                        settings_action.activate.connect((value) => {
 
81
                                URLDispatcher.send("settings://system/" + value.get_string(), (url, success) => {
 
82
                                        if (!success) {
 
83
                                                warning(@"Unable to activate settings URL: $url");
 
84
                                        }
 
85
                                });
 
86
                        });
 
87
                        actions.insert(settings_action);
78
88
                }
79
89
 
80
90
                ~ActionManager ()