1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-16 05:15:36 +00:00
Commit graph

1865 commits

Author SHA1 Message Date
Evangelos Ribeiro Tzaras
9209a7801c history-box: Allow transition from non-empty to empty history
Since call records may be deleted, the transition from non-empty to
empty is also possible.
2022-07-27 16:45:42 +02:00
Evangelos Ribeiro Tzaras
a6faac2940 history-box: Dynamically adjust slice list model size
The slice get's increased by 50 items if scrolled to the bottom
and reset to the initial 75 items if scrolled back to the top.

The defined threshholds make sure that the UX still feels smooth.
2022-07-27 16:29:39 +02:00
Evangelos Ribeiro Tzaras
8ae03a1321 history-box: Switch to GtkSliceListModel
Having more than ~200 widgets in a GtkListBox comes with a very
performance impact. This is especially noticable during while the main
window is being realized (even if Calls already runs in daemon mode).

We can limit the amount of widgets by using a slice list model.

Fixes: #374
2022-07-27 16:27:07 +02:00
Evangelos Ribeiro Tzaras
3568af8553 meson: Add gtk sources to build 2022-07-27 16:26:25 +02:00
Evangelos Ribeiro Tzaras
44c892b6f7 Drop use of volatile
The volatile qualifier was mostly used for historical reasons,
the documentation for `g_once_init_enter()` and `g_once_init_leave()`
has the following to say:

While `location` has a `volatile` qualifier,
this is a historical artifact and the pointer passed to it
should not be volatile.

See also https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719
2022-07-27 16:26:25 +02:00
Evangelos Ribeiro Tzaras
fd5a24f853 history-box: Chain up to constructed() early 2022-07-27 16:26:24 +02:00
Evangelos Ribeiro Tzaras
01aa8c04c2 Add various gtk list models
This is an exact copy from GTK4.
as grabbed by chattys commit 1ed5084fb965908e3ee0304781b0de06479c869b

Slightly adapted for Calls.

Based on GTKs 01bd4cc4e18a1ea697fe61791ba710d0d55e8290
2022-07-27 16:06:57 +02:00
Evangelos Ribeiro Tzaras
4188af73af sip: origin: Drop comparison that always evaluates as true
This avoids the following warning:

../plugins/sip/calls-sip-origin.c: In function ‘sip_r_register’:
../plugins/sip/calls-sip-origin.c:483:26: warning: the comparison will always evaluate as ‘true’ for the address of ‘m_url’ will never be NULL [-Waddress]
  483 |     if (sip->sip_contact && sip->sip_contact->m_url && sip->sip_contact->m_url->url_host) {
      |                          ^~
In file included from /usr/include/sofia-sip-1.12/sofia-sip/nua.h:47,
                 from ../plugins/sip/calls-sip-util.h:28,
                 from ../plugins/sip/calls-sip-call.h:30,
                 from ../plugins/sip/calls-sip-origin.c:31:
/usr/include/sofia-sip-1.12/sofia-sip/sip.h:477:23: note: ‘m_url’ declared here
  477 |   url_t               m_url[1];     /**< SIP URL */
      |                       ^~~~~
../plugins/sip/calls-sip-origin.c: In function ‘sip_callback’:
../plugins/sip/calls-sip-origin.c:779:23: warning: the comparison will always evaluate as ‘true’ for the address of ‘a_url’ will never be NULL [-Waddress]
  779 |     if (sip->sip_from && sip->sip_from->a_url &&
      |                       ^~
/usr/include/sofia-sip-1.12/sofia-sip/sip.h:386:22: note: ‘a_url’ declared here
  386 |   url_t              a_url[1];      /**< URL */
      |                      ^~~~~
2022-07-27 16:06:57 +02:00
Zurab Kargareteli
76148fc4f1 Update Georgian translation 2022-07-25 16:52:46 +00:00
Yosef Or Boczko
f2f4ea71ba Update Hebrew translation 2022-07-14 11:20:32 +00:00
Evangelos Ribeiro Tzaras
74beff0c98 ci: Allow flatpak failures
That does of course not mean that we shouldn't investigate,
but I like to have passing CI in the meantime.
2022-07-06 07:12:05 +02:00
Daniel Șerbănescu
990ffdf2b6 Update Romanian translation 2022-07-03 12:47:05 +00:00
Мирослав Николић
f8997f6b46 Update Serbian translation 2022-07-03 01:51:57 +00:00
Danial Behzadi
d431d627c7 Update Persian translation 2022-06-28 11:17:16 +00:00
Vittorio Monti
647f9bf7ab Update Italian translation 2022-06-28 06:28:55 +00:00
Evangelos Ribeiro Tzaras
5fc07678d1 d/gbp.conf: Adjust debian-tag-msg
Tag messages have been a bit inconsistent in the past, because we
created signed tags by hand.

With this change we can just `gbp tag` and get consistently named tags
and messages.
2022-06-27 04:37:38 +02:00
Evangelos Ribeiro Tzaras
03543142e6 Post release bump
According to the schedule
https://wiki.gnome.org/FortyThree
the next version will be 43.beta.0
2022-06-27 04:36:53 +02:00
Evangelos Ribeiro Tzaras
3d7c671034 Document and release 43.alpha.2 2022-06-26 15:47:47 +02:00
Piotr Drąg
98efbd235f Update Polish translation 2022-06-26 14:32:03 +02:00
Aleksandr Melman
335b330919 Update Russian translation 2022-06-25 18:25:15 +00:00
Nathan Follens
00f10c3267 Update Dutch translation 2022-06-24 11:13:29 +00:00
Evangelos Ribeiro Tzaras
879a214baf dir-locals: Use the linux coding style 2022-06-22 10:17:30 +02:00
Evangelos Ribeiro Tzaras
fae760c541 dir-locals: Exhaustive projectile setup
This expands on the minimal projectile setup we had before by including
compilation directory, configure and run commands.
2022-06-22 10:17:30 +02:00
Evangelos Ribeiro Tzaras
36b10bc764 new-call-box: Don't auto select offline accounts 2022-06-21 12:19:38 +02:00
Evangelos Ribeiro Tzaras
ee64b33e24 new-call-box: Fix memory leak
calls_new_call_box_dial was taking a reference it never released.
2022-06-21 11:52:40 +02:00
Evangelos Ribeiro Tzaras
581c82fcd7 new-call-box: Order includes alphabetically 2022-06-21 11:52:40 +02:00
Guido Günther
8d3a3dc65d data: Indicate that we're using feedbackd
This will allow configuration tools to pick up that intent.
2022-06-21 01:37:22 +00:00
Evangelos Ribeiro Tzaras
e5e19fcd5f doc: Add call state diagram
Having this makes it easier to reason about the call states.
2022-06-20 15:59:17 +00:00
Anders Jonsson
38e18ba245 Update Swedish translation 2022-06-20 15:53:02 +00:00
Yuri Chornoivan
8d37f7698d Update Ukrainian translation 2022-06-20 15:19:26 +00:00
Evangelos Ribeiro Tzaras
82a03ac0b1 record-store: Add debug statement for call state changes
This can help debugging issues such as #463 and #455
2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
7094363894 sip: origin: Reduce logspam from REGISTER keep-alives 2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
bf8bc5db3c sip: origin: Only set own IP if it has changed
This helps to reduce some logspam.
2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
2c7569c608 sip: origin: Don't fetch the contact header repeatedly
This somewhat reduces the logspam:
response to get_params: 200 OK

origin->contact_header
2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
6d7feec690 mm: call: Better debugging
Including the error domain should help in identifying errors.
Use the DBus object path as the primary identifier for a call.
2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
07aa990601 mm: call: Use correct enum type
They both have the same value (=0), and things worked because of
implicit conversion, but was still confusing and technically wrong.
2022-06-20 13:00:37 +00:00
Evangelos Ribeiro Tzaras
654664799b data: Add D-Bus service file
Heavily inspired by
cf329d0a05

Fixes #464
2022-06-20 05:39:31 +02:00
Aleksandr Melman
5782b2b46d Update Russian translation 2022-06-18 21:23:15 +00:00
Jiri Grönroos
d190c000f3 Update Finnish translation 2022-06-16 15:35:51 +00:00
Andrey Skvortsov
e8895e9387 application: fix 'tel:' URL handling with escaped symbols
It's common to have spaces or other separator characters in telephone
numbers. If tel: link (example: tel:+1 855-698-1150) is clicked in browser all
unsupported characters are escaped (example: tel:+1%20(855)%20698-11-50).
2022-06-15 07:39:37 +00:00
Evangelos Ribeiro Tzaras
01b214c5fb sip: origin: Don't mix code and declarations
Move (and reorder) declarations to avoid warnings triggered by
-Wdeclaration-after-statement

Closes #459
2022-06-14 17:48:43 +00:00
Evangelos Ribeiro Tzaras
7847c72560 sip: origin: Codestyle 2022-06-14 17:48:43 +00:00
Chris Talbot
e91d6258ad calls-ui-call-data: change DELAY_UI_MS to 100 ms
15 ms does not seem to be enough time for phosh-antispam to be able
to hang up before the incoming call screen shows up. In my experiement,
90 looks to be the minimum time needed for the incoming call to not show up.

I put it to 100 ms just to be safe.
2022-06-11 18:56:46 -04:00
Daniel Șerbănescu
70edd671fb Update Romanian translation 2022-06-11 09:41:04 +00:00
Evangelos Ribeiro Tzaras
35eebcbfe7 debian: Install manpage 2022-06-08 08:25:36 +00:00
Evangelos Ribeiro Tzaras
8cb6c3e5a9 flatpak: Don't build manpage 2022-06-08 08:25:36 +00:00
Evangelos Ribeiro Tzaras
6738962073 meson: Build manpage with rst2man
Closes #457
2022-06-08 08:25:36 +00:00
Evangelos Ribeiro Tzaras
c86df0f564 ci: Update debian bookworm image for rst2man 2022-06-08 08:25:36 +00:00
Evangelos Ribeiro Tzaras
73109fb235 Add python3-docutils as build dependency
We want to use rst2man for generating manpages.
2022-06-08 08:25:36 +00:00
Evangelos Ribeiro Tzaras
0d6ceca324 doc: Add manpage as reStructuredText 2022-06-08 08:25:36 +00:00