Skip to content

Commit 224da6d

Browse files
authored
Fix spelling behaviour->behavior (#4298)
1 parent bdc5c02 commit 224da6d

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/app/application_ipc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void Application::initIpc() {
231231
});
232232

233233
m_ipcService.bind(noctalia::cli::msg::notificationInvokeLatest, [this](const std::string&) -> std::string {
234-
// Mirror the toast left-click behaviour for the most recent active notification:
234+
// Mirror the toast left-click behavior for the most recent active notification:
235235
// invoke its "default" action so the source application raises/focuses its window.
236236
// all() stores notifications oldest-first (push_back), so iterate in reverse for newest.
237237
const auto& notifications = m_notificationManager.all();

src/shell/panel/plugin_panel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class PluginPanel : public Panel, public scripting::PluginIpcEndpoint {
7777
[[nodiscard]] bool dismissTransientUi() override;
7878

7979
// Delivers a manifest-declared capture_keys chord to the script's onKey(chord, pressed) and
80-
// reports it consumed. Declared chords only: everything else keeps its host behaviour, and a
80+
// reports it consumed. Declared chords only: everything else keeps its host behavior, and a
8181
// focused text input still wins printable keys (PanelManager reserves those before calling).
8282
[[nodiscard]] bool handleGlobalKey(std::uint32_t sym, std::uint32_t modifiers, bool pressed, bool preedit) override;
8383

src/system/system_monitor_service.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ void SystemMonitorService::samplingLoop() {
12781278
const bool historyEnabled = historyPollSeconds > 0.0F;
12791279
// Per-core is opt-in via retainCpuCores() and runs on a fixed 1s cadence, deliberately
12801280
// independent of cpu_poll_seconds (default 2s): consumers want per-second resolution, and
1281-
// pinning it here leaves aggregate CPU behaviour untouched whatever the user configures.
1281+
// pinning it here leaves aggregate CPU behavior untouched whatever the user configures.
12821282
const bool cpuCoresEnabled = m_cpuCoreRefs.load(std::memory_order_relaxed) > 0;
12831283
// Resuming after a pause: the previous sample predates the gap, so a delta against it would
12841284
// cover the whole pause rather than one second. Drop it and seed afresh.

src/ui/controls/context_menu_popup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct ContextMenuPopupRequest {
5151
// pointer capture (scrollbar thumb drags leaving the popup). Defaults to parent.wlSurface.
5252
wl_surface* pointerParentSurface = nullptr;
5353
// Serial of the input event that requested this popup. When absent, legacy
54-
// callers retain the previous last-input-serial behaviour.
54+
// callers retain the previous last-input-serial behavior.
5555
std::optional<std::uint32_t> inputSerial = std::nullopt;
5656
std::optional<ContextMenuPopupPlacement> placement = std::nullopt;
5757
};

tests/ical_parser_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ int main() {
494494
// All-day (VALUE=DATE) MONTHLY on the 1st, over a one-year window, is exactly 12 - one per month.
495495
// The old code derived the day-of-month from floor<days> of the UTC instant, which for a zone east
496496
// of UTC rolls back to the previous civil day (the 31st of Dec), so months without a 31st were
497-
// dropped. Correct behaviour is zone-independent. Window is padded ±half-month so each local-midnight
497+
// dropped. Correct behavior is zone-independent. Window is padded ±half-month so each local-midnight
498498
// occurrence lands inside regardless of the running zone's UTC offset.
499499
{
500500
const std::string ics = "BEGIN:VEVENT\r\nUID:ad\r\nSUMMARY:s\r\nDTSTART;VALUE=DATE:20240101\r\n"

tests/ui_tree_reconciler_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2316,7 +2316,7 @@ int main() {
23162316
}
23172317

23182318
// Graph: no pointer callback declared -> plain Graph, no InputArea wrapper
2319-
// (existing values/size behaviour is unaffected by the new capability).
2319+
// (existing values/size behavior is unaffected by the new capability).
23202320
{
23212321
ui::UiTreeReconciler reconciler;
23222322
Flex host;

tests/widget_definition_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#include <string_view>
4747

4848
// The battery definition's finalize hook reaches into the warning-threshold helper, which would drag
49-
// UPower, notifications and i18n into a test about definition well-formedness. Threshold behaviour is
49+
// UPower, notifications and i18n into a test about definition well-formedness. Threshold behavior is
5050
// not under test here, so stand the helper in rather than link that tree.
5151
int batteryWarningThresholdForSelector(
5252
const BatteryConfig& /*config*/, const UPowerService* /*upower*/, std::string_view /*selector*/

0 commit comments

Comments
 (0)