Commit Graph

2291 Commits

Author SHA1 Message Date
Evangelos Ribeiro Tzaras
4be9b38994 ci: Use ci-fairy to check commit messages
Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/798>
2025-10-28 13:33:28 +00:00
Evangelos Ribeiro Tzaras
36fc47b663 ci: Check meson format
Use check-meson from meta-phosh as of
eb1c7f3c602f93e50ba0f1b7da31c936c771a75c

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/798>
2025-10-28 13:33:28 +00:00
Evangelos Ribeiro Tzaras
7baa515707 build: Sort tests alphabetically
Gbp-Dch: Ignore

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/798>
2025-10-28 13:33:28 +00:00
Evangelos Ribeiro Tzaras
e4a75a0844 tests: Add dbus server binary to dependencies
Otherwise we `meson test` will not compile the server
required for the DBus tests.

Closes: https://gitlab.gnome.org/GNOME/calls/-/issues/719

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/798>
2025-10-28 13:33:28 +00:00
Evangelos Ribeiro Tzaras
3184fa3af0 tests: Depend on .plugin files to exist
When .plugin files are missing, the plugins will not be discoverable.
These were only getting built when run with `meson compile`,
but not for `meson test`.

Helps: https://gitlab.gnome.org/GNOME/calls/-/issues/719

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/798>
2025-10-28 13:33:28 +00:00
Evangelos Ribeiro Tzaras
93a5c1911d build: Modernize and deduplicate setting up test targets
Get rid of the duplication by rolling (almost) every test into a loop.
We now iterate over an array containing at least the name and list of sources.
To account for some differences between individual tests, we allow an
optional third array consisting of a dictionary for extra arguments.

In particular we ensure that the `test()` target now always depends on
the test binary, so that it will get properly rebuilt on changes to
the sources.

Note, that we're resorting in a separate commit, to ease reviewing.

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/798>
2025-10-28 13:33:28 +00:00
Evangelos Ribeiro Tzaras
fec9e953ae treewide: Reformat meson files
Ran `meson format -e -i -r`.

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/798>
2025-10-28 13:33:28 +00:00
Guido Günther
50b34aec53 log: Make G_MESSAGES_DEBUG=something work out of the box
calls wouldn't match the glib docs as setting `G_MESSAGES_DEBUG`
also required to pass `-vvv` for things to work. Enable debug logs
as soon as that variable is set.

Closes: https://gitlab.gnome.org/GNOME/calls/-/issues/720
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/800>
2025-10-20 13:13:02 +02:00
Guido Günther
f98f2871de emergency-call-types: Test get_numbers_by_country_code
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
6f44a7c7fd emergency-call-types: Add emergency numbers from service provider db
This scales better than using a built in array.

Closes: https://gitlab.gnome.org/GNOME/calls/-/issues/714
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
8de3c90b66 emergency-call-types: Use lower case country codes
The provider info db has it that way.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
07d751f958 service-providers: Add parsing for service provider info
We currently only need the emergency number information

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
5d751f3143 emergency-calls-manager: Init emergency type database
We so far did this on first access. Let's rather do it explicitly
so we notice problems early on startup.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
f95370eddc emergency-call-types: Make data structures public
This allows us to use them in tests

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
b5e944193e emergency-call-types: Make emergency data hash table dynamic
So far we referenced all compiled in data but we want to add
entries from the provider info database soon so use allocated
memories for all entries.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
ee198d2073 emergency-call-types: Make hash table static
This is only meant to be used from this compilation unit

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
467111ad14 build: Add gmobile
We'll use it for the provider info parsing

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
401d02f47d build: Depend on mobile-broadband-provider-info
This will be used for emergency number lookup

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
52555030fb emergency-call-types: Use strv builder
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
3e7f5e77ab emergency-call-types: Fix copyright year and holder
The files were created 2022, the header stating 2021 is a copy and paste
error. Fix a typo while at that.

Gbp-Dch: Ignore
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Guido Günther
e617599ef0 flatpak: Use newer libfeedback
Let's have the bug fixes

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/790>
2025-10-16 13:45:49 +00:00
Evangelos Ribeiro Tzaras
798c698463 treewide: Document changes and release 49.1.1
Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/797>
2025-10-14 16:07:54 +02:00
Evangelos Ribeiro Tzaras
9fab9ec7a5 plugin-manager: Add API to unload all plugins
And add tests for it.

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/796>
2025-10-14 11:11:56 +02:00
Evangelos Ribeiro Tzaras
33e5b193a0 test-application: Check for expected plugins to be loaded
These tests helps ensure the application will always have plugins
loaded and prevent regressions.

Helps: https://gitlab.gnome.org/GNOME/calls/-/issues/718

Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/796>
2025-10-14 11:09:24 +02:00
Guido Günther
7103f18e48 application: Load plugins early
Fixes: 574e1f79 ("application: Drop ignore_activation flag")
Closes: https://gitlab.gnome.org/GNOME/calls/-/issues/718
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/795>
2025-10-13 21:31:16 +02:00
Guido Günther
e608c83273 app: Use automatic cleanup
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/795>
2025-10-13 21:31:16 +02:00
Guido Günther
8f6b8bc6b9 application: Actually test for write ahead log
While the test was correct and checked if there is only
`record.db` in a given dir (and no other files) it wouldn't
tell us whether the file wasn't there or there were additional
files found. Hence replace the test by assertions that tell
use exactly what failed easing debugging in CI.

Fixes: e4bd4580 ("tests: Add application shutdown tests")
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/795>
2025-10-13 21:31:16 +02:00
Guido Günther
85b65d030d tests: Make the application test depend on the binary
Otherwise it is not rebuilt when it changes

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/795>
2025-10-13 21:26:23 +02:00
Guido Günther
32a88ecd80 application: Wait until all async database operations finished
When shutting down make sure there are no in-flight database operations.
Otherwise the database might not be closed correctly.

Improves fix for https://gitlab.gnome.org/GNOME/calls/-/issues/508

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/795>
2025-10-13 21:26:23 +02:00
Guido Günther
a56f43b036 record-store: Track async operations
We need to be able to tell when all async operations finished.
Otherwise we might shut down the daemon with in flight operations
leaving a open database around.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/795>
2025-10-13 21:26:23 +02:00
Guido Günther
57b99a3a55 main-window: Drop confusing cast
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/795>
2025-10-13 11:59:02 +02:00
Markus Göllnitz
3d5ff3dbdc contacts-box: adjust search bar's margin inside toolbar
A toolbar view, per its docs, expects its toolbar
children to either be of a set of known widget types that
are supported by default, or otherwise be a Gtk.Box-like
container with the .toolbar CSS style class.

This expectation was not met, but instead similar, but
not identical margins manually applied. These similar yet
different margins made it look off.

While this now adheres to the toolbar child requirements
of libadwaita, and the margins look more familiar, it
still breaks with libadwaita's assumption that toolbars
are not stacked. Its stylesheet allows for stacking
toolbar views only if one is providing the top and the
other the bottom one.

This view, especially, deserves a more thorough design
overhaul, regardless of this. Thus, I will leave it at
this.

Link: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.ToolbarView.html

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/791>
2025-10-10 18:37:07 +00:00
Markus Göllnitz
cab52d464c new-call-box: wrap dialer in scrolled window
It was possible to increase the window's size below the
minimum size of the dialer view. As such it is important
to wrap it in a scrolled window in order not to lose
access to otherwise hidden interface components.

This is, of course, not a replacement for a better
adapting dialer.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/791>
2025-10-10 18:37:07 +00:00
Markus Göllnitz
f7da8ecfbb main-window: move bottom switcher to toolbar
The toolbar view is meant for these. This allows
libadwaita's style to apply the way it can be seen in
basically every other GNOME app.

The differences are with the scroll dependent undershoot
instead of an unconditional border.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/791>
2025-10-10 18:37:07 +00:00
Markus Göllnitz
ba3e0b47ed main-window: increase width of switcher breakpoint
The current breakpoint is more or less perfect for
English. However, there are other languages with longer
strings there, such as German. Increasing the width at
which the breakpoint sits to switch the switcher location
enables most languages to have no or minimal ellipses
while not looking too spacious with English.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/791>
2025-10-10 18:37:07 +00:00
Guido Günther
a02ff9504c doap: Update Evangelos email
The dropped one isn't used since ages

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/794>
2025-10-10 11:49:13 +02:00
Guido Günther
ec64f4939f doap: Add Guido as co-maintainer
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/794>
2025-10-10 11:49:13 +02:00
Evangelos Ribeiro Tzaras
08b61594df treewide: Document changes and release 49.1
Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/793>
2025-10-10 11:29:04 +02:00
Zayar Lwin
2d7c27bc06 Update Burmese translation 2025-10-03 02:35:59 +00:00
Emilio Sepúlveda
3d878cb1e0 Add Interlingua translation 2025-10-01 18:01:24 +00:00
Iverson Briones
0c9c6d469f Add Filipino translation 2025-09-28 12:45:45 +00:00
Markus Göllnitz
4b5a217431 flatpak: update to resolve build errors
This also aligns it a bit more with the Flathub build
description.

It also builds more dependencies from main or master
branches, especially GNOME ones. That should allow (a)
future breaking changes be found early, and (b) to let
the Flatpak build description sit otherwise with less
maintenance for simple version bumps.

Signed-off-by: Markus Göllnitz <camelcasenick@bewares.it>
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/792>
2025-09-25 12:17:42 +00:00
Abduqadir Abliz
5f49fdf5b4 Add Uighur translation 2025-09-23 15:12:06 +00:00
Ziri Sut
aa76cb31f8 Update Kabyle translation 2025-09-23 08:56:55 +00:00
Sabri Ünal
35cb76b9db Update Turkish translation 2025-09-20 15:41:38 +00:00
Kristjan SCHMIDT
62300f6299 Update Esperanto translation 2025-09-20 09:17:24 +00:00
Bjørn Mørkedal
74fc49404a Add Norwegian Nynorsk translation 2025-09-05 05:57:23 +00:00
Guido Günther
574e1f79a3 application: Drop ignore_activation flag
Rather use gapplication service. This makes the flow similar to what
Chatty does and makes us hold/release rather than having an application
window.

It also allows us to drop the --daemon.

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/760>
2025-08-30 10:52:20 +00:00
Guido Günther
fbfe680f6a application: Validate daemon flag only on first startup
The activate method is used when the application is activated via
various means - e.g. via the `Activate` DBus method. We don't want to
ignore that activation just because calls was started with the
`--daemon` option. Rename the variable to better match what it means.

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/760>
2025-08-30 10:52:20 +00:00
Guido Günther
0c3adf840b data: Switch calls to DBus activation
This makes sure it gets correctly activated when launched e.g. in
phosh while calls is running in `--daemon` mode as the necessary
platform data containing the activation token is now passed via DBus.

This also helps situations when e.g. pressing the call button in chatty
or contacts.

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/760>
2025-08-30 10:52:20 +00:00