ratbagd_button: emit property changed on ActionType when setting mappings

This commit is contained in:
Jente Hidskes
2017-07-31 14:32:25 +02:00
committed by Peter Hutterer
parent 022dc74354
commit 282398493b

View File

@@ -100,6 +100,12 @@ static int ratbagd_button_set_button(sd_bus_message *m,
RATBAGD_NAME_ROOT ".Button",
"ButtonMapping",
NULL);
sd_bus_emit_properties_changed(bus,
button->path,
RATBAGD_NAME_ROOT ".Button",
"ActionType",
NULL);
}
return sd_bus_reply_method_return(m, "u", r);
@@ -142,6 +148,12 @@ static int ratbagd_button_set_special(sd_bus_message *m,
RATBAGD_NAME_ROOT ".Button",
"SpecialMapping",
NULL);
sd_bus_emit_properties_changed(bus,
button->path,
RATBAGD_NAME_ROOT ".Button",
"ActionType",
NULL);
}
return sd_bus_reply_method_return(m, "u", r);
@@ -229,6 +241,12 @@ static int ratbagd_button_set_key(sd_bus_message *m,
RATBAGD_NAME_ROOT ".Button",
"KeyMapping",
NULL);
sd_bus_emit_properties_changed(bus,
button->path,
RATBAGD_NAME_ROOT ".Button",
"ActionType",
NULL);
}
return sd_bus_reply_method_return(m, "u", r);
@@ -374,6 +392,12 @@ static int ratbagd_button_set_macro(sd_bus_message *m,
RATBAGD_NAME_ROOT ".Button",
"Macro",
NULL);
sd_bus_emit_properties_changed(bus,
button->path,
RATBAGD_NAME_ROOT ".Button",
"ActionType",
NULL);
}
return sd_bus_reply_method_return(m, "u", r);