aboutsummaryrefslogtreecommitdiff
path: root/lib/ibus-menu.vala
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2015-02-19 11:23:59 -0500
committerWilliam Hua <william.hua@canonical.com>2015-02-19 11:23:59 -0500
commitc34cf40e28eed1842ee691603fe6940f04302e10 (patch)
tree045ca7d117baf7f62e8f44cf4466619d82a274bb /lib/ibus-menu.vala
parent8b470a48be727a59e557c532ead6c549e075eb02 (diff)
downloadayatana-indicator-keyboard-c34cf40e28eed1842ee691603fe6940f04302e10.tar.gz
ayatana-indicator-keyboard-c34cf40e28eed1842ee691603fe6940f04302e10.tar.bz2
ayatana-indicator-keyboard-c34cf40e28eed1842ee691603fe6940f04302e10.zip
Don't handle activate signal when the default behaviour will do.
Diffstat (limited to 'lib/ibus-menu.vala')
-rw-r--r--lib/ibus-menu.vala8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/ibus-menu.vala b/lib/ibus-menu.vala
index a74782ed..a240f00b 100644
--- a/lib/ibus-menu.vala
+++ b/lib/ibus-menu.vala
@@ -128,10 +128,6 @@ public class Indicator.Keyboard.IBusMenu : MenuModel {
var state = new Variant.boolean (property.state == IBus.PropState.CHECKED);
var action = new SimpleAction.stateful (name, null, state);
- action.activate.connect ((parameter) => {
- action.change_state (new Variant.boolean (!action.get_state ().get_boolean ()));
- });
-
action.change_state.connect ((value) => {
if (value != null) {
action.set_state ((!) value);
@@ -158,10 +154,6 @@ public class Indicator.Keyboard.IBusMenu : MenuModel {
var name = @"-private-radio-$radio_counter";
var action = new SimpleAction.stateful (name, VariantType.STRING, new Variant.string (""));
- action.activate.connect ((parameter) => {
- action.change_state (parameter);
- });
-
action.change_state.connect ((value) => {
if (value != null) {
var key = ((!) value).get_string ();