aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* cppcheck: Replace C-style casts by C++-style static_cast<> casts.Mike Gabriel2024-05-171-4/+4
| | | | See: https://stackoverflow.com/questions/40899581/is-it-always-safe-to-change-a-c-style-cast-to-a-static-cast
* cppcheck: Fix missingOverride complaints.Mike Gabriel2024-05-172-2/+2
|
* src/main.cpp: Initialize LC_NUMERIC with 'POSIX'.Mike Gabriel2024-05-151-0/+14
| | | | | | | | | | | | | This assures that float number conversions (from float to string via e.g. g_strdup_sprintf()) always use a dot in decimal numbers. This resolves blackening of the screen if users with e.g. de_DE.UTF-8 use the brightness slider and hand over a komma-decimal to the xsct executable (which only understands dot-decimals). As we don't use numbers / number conversions anywhere else in the display indicator, this global setting of LC_NUMERIC seems to be the easiest approach.
* src/service.cpp: Fix slider step and precisionRobert Tari2024-04-051-2/+4
|
* Fix access of unitialized variables in DisplayIndicator destructorGuido Berhoerster2024-03-041-2/+2
| | | | | | In the constructor nGreeterSubscription and pConnection are only initialized if bGreeter is true whereas the destructor always accesses them and possibly passes uninitialized values to functions.
* Remove USB manager and corresponding testsRatchanan Srirattanamet2023-12-1412-1364/+0
| | | | | | | | Since this is renamed, it has never worked correctly anyway. I've forked this part of code as "adbd-approver" [1], so this part can now be removed. [1] https://gitlab.com/ubports/development/core/adbd-approver
* src/service.cpp: Add AccountsService supportRobert Tari2023-12-041-15/+212
|
* Whitespace fixRobert Tari2023-12-041-1/+1
|
* src/service.cpp: Fix build with ENABLE_COLOR_TEMP offRobert Tari2023-12-031-11/+25
|
* src/service.cpp: Also switch metacity, icon and cursor themes when changing ↵Robert Tari2023-11-211-0/+177
| | | | | | theme fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/87
* src/service.cpp: Hide theme profiles and settings in the greeterRobert Tari2023-11-201-126/+158
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/83
* src/service.cpp: Handle missing org.gnome.desktop.interface::color-schemeRobert Tari2023-11-111-2/+11
|
* src/service.cpp: Fix string array translationRobert Tari2023-11-111-6/+7
|
* src/indicator.h: Fix multiple definitions of header propertyRobert Tari2023-10-091-4/+4
|
* Rename indicator class and service source filesRobert Tari2023-10-094-25/+25
|
* Remove orphan notify-osd remnantsRobert Tari2023-09-101-3/+2
|
* src/rotation-lock.cpp: Save last geographic location and use that at startupRobert Tari2023-09-071-2/+6
|
* src/exporter.cpp: Drop unused variableRobert Tari2023-09-061-2/+1
|
* src/rotation-lock.cpp: Add theme profilesRobert Tari2023-09-061-16/+182
|
* src/rotation-lock.cpp: Use singular profile in menu labelRobert Tari2023-09-061-1/+1
|
* src/rotation-lock.cpp: Simplify code and keep updater callback runningRobert Tari2023-09-061-53/+32
|
* src/rotation-lock.cpp: Add brightness action, slider and handlersRobert Tari2023-03-081-3/+33
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/72
* src/rotation-lock.cpp: Replace gclue_simple_new_with_thresholds functionsRobert Tari2023-03-081-2/+2
|
* Skip geoclue calls during the rotation lock testRobert Tari2023-02-041-1/+6
|
* Implement adaptive colour temperature profilesRobert Tari2023-02-042-77/+239
|
* src/solar.*: Add solar elevation calculation from RedshiftRobert Tari2023-02-042-0/+238
|
* src/rotation-lock.cpp: make MenuItem QMenuModel-compatibleRatchanan Srirattanamet2022-12-151-2/+2
| | | | | | | In a similar way as [1], make the rotation lock MenuItem QMenuModel- compatible by specifying a target in it. [1] https://github.com/AyatanaIndicators/ayatana-indicator-bluetooth/pull/40
* Allow building with(out) Lomiri featuresRobert Tari2022-12-152-14/+31
|
* src/rotation-lock.cpp: Hide the rotation switch on desktopsRobert Tari2022-11-171-8/+11
|
* Add colour temperature changing functionalityRobert Tari2022-11-071-1/+106
|
* src/rotation-lock.cpp: Prefer a symbolic panel iconRobert Tari2022-11-071-1/+1
| | | | | | | | | | | | | This changes the icon search order from display, [no icon] to display-panel, display, [no icon]
* src/exporter.cpp: Add missing tooltip to headerRobert Tari2022-10-091-0/+3
|
* src/rotation-lock.cpp: Add display setting menu itemRobert Tari2022-10-041-1/+32
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/54
* Fix failing cppcheckRobert Tari2022-10-021-1/+3
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/58
* src/rotation-lock.cpp: Add tooltip, rename indicator title from 'Rotation' ↵Mike Gabriel2022-07-222-1/+4
| | | | to 'Display' on desktops.
* src/adbd-client.cpp: Fix cppcheckJami Kettunen2022-07-051-5/+5
| | | | | | | | cppcheck test was failing both locally for me and on CI: .../src/adbd-client.cpp:128:80: style: C-style pointer casting [cstyleCast] g_debug("%s thread %p creating a client socket to '%s'", G_STRLOC, (void*)g_thread_self(), socket_path.c_str()); ^
* Drop pkglibexecdir and use native CMake file configurationRobert Tari2022-02-161-1/+1
|
* GSettings: Use org.ayatana.display.gschema.xml for non-Lomiri sessions and ↵Mike Gabriel2021-11-191-8/+17
| | | | | | | | unit tests. Additionally, internationalize the org.ayatana.display GSettings schema. Fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/39
* Rename Lomiri-specific properties to x-lomiriRobert Tari2021-11-091-3/+3
|
* Drop HAS_LOMIRI_TOUCH_SCHEMA, use native schema insteadRobert Tari2021-11-012-12/+32
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/8
* Rename com.ubuntu.touch.system to com.lomiri.touch.systemRobert Tari2021-11-012-4/+4
|
* Raname x-canonical properties to x-ayatanaRobert Tari2021-10-271-3/+3
|
* Fix schema pathRobert Tari2021-08-131-1/+1
|
* Check for ADBD socket before creating UsbManagerRobert Tari2021-08-131-7/+25
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/13
* Revert "Fix schema path"Mike Gabriel2021-08-131-1/+1
| | | | This reverts commit fb3029c0a3121b83f1bca05006e5f95512c709e2.
* Fix schema pathRobert Tari2021-08-131-1/+1
|
* Fix failing buildRobert Tari2021-08-121-15/+0
| | | | | | | | - src/rotation-lock.cpp: Fix double declaration of create_desktop_menu - tests/CMakeLists.txt: Add uninitDerivedMemberVar and unmatchedSuppression suppressions to cppcheck - tests/unit/rotation-lock-test.cpp: Fix and expand test fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/24
* Fix rotation lock switch displayRobert Tari2021-08-101-2/+25
| | | | | | | | - src/rotation-lock.cpp: Add missing rotation lock section to menu Fix wrong action parameter type - src/rotation-lock.cpp: Add missing GVariantType to g_simple_action_new_stateful
* Create desktop profileRobert Tari2021-08-102-10/+61
| | | | | | | - data/org.ayatana.indicator.rotation_lock: Add desktop profile - src/rotation-lock.cpp: Create separate functions and icon for Desktop - CMakeLists.txt: Add libayatana-common dependency - src/main.cpp: Run the ADBD handler on Lomiri only
* cppcheck: Add several missing override statements to make cppcheck happy ↵Mike Gabriel2021-08-042-6/+6
| | | | (which is one of our unit tests).